Ask Your Question

Revision history [back]

i advise you taking a look at Morphology_2.cpp . maybe you will find an easy way after pre-processing like

image description

i advise you taking a look at Morphology_1.cpp and Morphology_2.cpp . maybe you will find an easy way after pre-processing like

image descriptioninput image

image description

image description image description

i think second image is better. you can find contours and analyze them.