Skip to content

Extraction of connected components from the images with PGM file format using Otsu's thresholding and BFS/DFS methods

Notifications You must be signed in to change notification settings

sujitahirrao/connected-components

Repository files navigation

Connected-Components

Extraction of connected components from the images with PGM file format using Otsu's thresholding and BFS/DFS methods.

To run the code:

cd x64\Release\
ExtractConnectedComponents.exe <input.pgm> <threshold=50> <method=1>

Threshold is the size of the components below which all the connected components are blackened (removed). The default is 50. Method is either 1 for BFS or 2 for DFS. The default is 1.

Output image after Otsu-thresholding is stored in data/output.

(BFS/DFS are yet to be implemented.)

About

Extraction of connected components from the images with PGM file format using Otsu's thresholding and BFS/DFS methods

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published