image binaryzation

asked 2019-01-18 06:44:57 -0600

Hello All: Source Image image description

Code here: cvtColor(Src, gray, COLOR_BGR2GRAY); threshold(gray, binary, 0, 255, THRESH_BINARY_INV | THRESH_OTSU);

Destination Imageimage description

I want to extract the contours of seven circles,What shall I do? thanks! image description

edit retag flag offensive close merge delete

Comments

Few suggestions: You can try Hough Circles detection method. Another observation, the circles are present the edges of the image. So, you can limit your search region.

vps gravatar imagevps ( 2019-01-18 07:00:50 -0600 )edit