Simple two-pass algorithm with union-find data structure for connected component labeling.
Make sure relevant packages are present (like OpenCV). To build with cmake run the following commands:
chmod +x build.sh
./build.shTo run on an image:
./results/bin/ccl ./data/moon.jpgOutput 1:
Output 2:



