-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
217691d
commit 771b6a9
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<div align="center"> | ||
<h1>Data association and registration tools</h1> | ||
<br /> | ||
</div> | ||
|
||
# Install using `pip` | ||
You can download/install MAD-ICP using `pip` | ||
```bash | ||
pip install mad-icp | ||
``` | ||
|
||
# Usage | ||
`nn_search.py` allows computing the data association between either: | ||
- a query point and a reference cloud; | ||
- a query cloud and a reference cloud. | ||
|
||
For each query point, the nearest-neighbor search returns the corresponding reference point with the estimated normal. | ||
Notice that the pybind of the tree build method has `b_max` parameter set to `1e-5` by default (check `src/pybind/tools/pymadtree.cpp`). A MAD tree built with such a parameter has exactly one leaf for each point of the original cloud, thus providing the most dense possible reference. | ||
Indeed, the total matching error printed by running `nn_search.py` as it is is zero. Highering `b_max` in the tree building leads to a shallower tree with fewer leaves, thus making the reference less dense than the query cloud, consequently increasing the total matching error. | ||
To run this module: | ||
```bash | ||
python3 nn_search.py | ||
``` | ||
|
||
`mad_registration.py` registers a query cloud on a reference cloud, providing the estimated transformation between them. This module also allows us to visualize the cloud alignment at the end of each iteration, and the data reassociations between the two. | ||
You can run this module with the option `--viz` for toggling visualization. | ||
```bash | ||
python3 mad_registration.py --viz | ||
``` |