Giter Site home page Giter Site logo

gitlars / rclgeolocalization-2.0 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flyalcode/rclgeolocalization-2.0

0.0 0.0 0.0 85 KB

Geolocalization aerial images taken under any camera pose with roads matching.

License: MIT License

C++ 89.95% Python 1.63% C 6.93% CMake 1.49%

rclgeolocalization-2.0's Introduction

Introduction

This is the implementation (version 2.0) for our paper "Road network based fast geolocalization", where the road networks in the aerial images are used to localize the images in the reference geographical coordinate system by registering the road map to the reference road map.

Build

The project depends on the OpenCV, shapelib and the nanoflann. You can install the nanoflann following introdcution in: https://github.com/jlblancoc/nanoflann. And you should change the opencv path in the top cmakelist file to your own opencv path. The shapelib is used to read .shp files, and convert them into images. We provide the lib in the directory ‘third_lib’.

After all the dependences have been install, you can build the project:

$ mkdir build

$ cd build

$ cmake ../

$ make ./

Run

  1. Detect all road intersections and compute their tangents with:

    $ ./make_reference_map [shp_file] [cross_file_name]

    shp_file --- the reference road vector map save in .shp format

    cross_file_name --- the file to save the road intersections and their tangents

  2. Compute the Voronoi surface for reference road map

    $ ./shp_to_voronoi [shp_file] [info_file] [tile_img_path] [gsd] [tile_size]

    [shp_file] --- the reference road vector map save in .shp format

    [info_file] [tile_img_path] --- the file to store the Voronoi surface

    [gsd] --- the gsd of the Voronoi

    [tile_size] --- the maximum size of each Voronoi image

  3. Perform geolocalization with:

    $ ./single_img_localization [map_file_name] [ref_vor_file] [shp_file] [query_img_dir] [result_file]

    [map_file_name] --- the file to save the road intersections, which can be get with step one above

    [ref_vor_file] --- The files where the Voronoi surface of the reference road map are stored

    [shp_file] --- The reference road map in the .shp file

    [query_img_dir] --- the directory where the query road map are

    [result_file] --- the file to save the geolocalization result

rclgeolocalization-2.0's People

Contributors

flyalcode avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.