/Opencv-FloodFill

Priority-flood flood-fill Algorithm no. 2 as described in article: Barnes, Lehman, Mulla. "Priority-Flood: An Optimal Depression-Filling and Watershed-Labeling Algorithm for Digital Elevation Models". Computers & Geosciences. Vol 62, Jan 2014

Primary LanguageC++MIT LicenseMIT

FloodFill

This code implements the priority-flood flood-fill Algorithm no. 2 described in article:Barnes, Lehman, Mulla. "Priority-Flood: An Optimal Depression-Filling and Watershed-Labeling Algorithm for Digital Elevation Models". Computers & Geosciences. Vol 62, Jan 2014, pp. 117–127, doi: 10.1016/j.cageo.2013.04.024.

To compile, type "cmake ." and then make

Usage: ./FloodFill -i input-image -o output-image