Distance Transform computed using Meijster distance algorithm.
http://fab.cba.mit.edu/classes/S62.12/docs/Meijster_distance.pdf
- OpenCV
Using Package config
g++ dt.cpp -o dt `pkg-config --cflags --libs opencv`
./dt <imageName> <Method>
Methods Available :
EDT- Euclidean distance transform
MDT- Manhattan distance transform
CDT- Chessboard distance transform
Example:
./dt 4_1_map.png EDT