项目作者: saeedghsh

项目描述 :
2D Map Alignment With Region Decomposition
高级语言: Python
项目地址: git://github.com/saeedghsh/Map-Alignment-2D.git
创建时间: 2017-03-16T10:55:42Z
项目社区:https://github.com/saeedghsh/Map-Alignment-2D

开源协议:GNU General Public License v3.0

下载


Map-Alignment-2D

This package has been developed for 2D Map Alignment With Region Decomposition.
animate

The following article presents the method:

  • Saeed Gholami Shahbandi, Martin Magnusson, 2D Map Alignment With Region Decomposition, CoRR, abs/1709.00309, 2017. URL

And Nonrigid Optimization of Multimodal 2D Map Alignment builds on this work.

Dependencies and Download

Download, installing dependencies, and install package

  1. # Download
  2. git clone https://github.com/saeedghsh/Map-Alignment-2D.git
  3. cd Map-Alignment-2D
  4. # Install dependencies
  5. pip install -r requirements.txt
  6. # Install the package [optional]
  7. python setup.py install

Most dependencies are listed in requirements.txt.
But there are three more, namely opencv, Polygon and arrangement, which should be installed separately.

Usage Example

For simplicity and convenience, we assume both maps are provided as bitmap (occupancy grid maps).
For more examples, see Halmstad Map Collection.
Run this:

  1. python demo.py --img_src 'map_sample/map_src.png' --img_dst 'map_sample/map_dst.png' -multiprocessing -visualize

And you should see this:
example

Simplified Algorithm (without decomposition and arrangement)

The following psudo-code presents the gist of the alignment algorithm proposed in the paper.

  1. # modeling
  2. 1a) perform region segmentation
  3. 1b) find the oriented minimum bounding box (OMBB) for each region (e.g. rotating calipers)
  4. # hypotehsis generation
  5. 2a) generate hypotheses (affine transformations), by matching every pairs of OMBB from the two maps
  6. 2b) reject hypothesis that are non-similarity transformation
  7. # match score and select a winner
  8. 3a) for each hypothesis: find the correspondence between all OMBB from one map to another
  9. 3b) calculate the match-score for each hypothesis, and select the one with highest value

Laundry List

  • dump unused methods from mapali and plotting.
  • api documentation.
  • full test suite.
  • profile for speed-up.
  • python3 compatible.

License

Distributed with a GNU GENERAL PUBLIC LICENSE; see LICENSE.

  1. Copyright (C) Saeed Gholami Shahbandi