Detect the Centers for the circles

4 ビュー (過去 30 日間)
Pankaja Tanjore
Pankaja Tanjore 2015 年 7 月 29 日
Hello ,
I have this image. I need to find the center of the four holes that is marked with Red.(InputImage.png)
I applied some image processing algorithms to preprocess the image.Then apply canny edge detection algorithm to detect the edges(CannyEdge.png).
I simplified the image so that only four holes are retained.I have marked this four holes with red line.
I used imfincircles() to find the center and radius.But as they are not circular i am not able to detect these.
[centers, radii] = imfindcircles(bw2,[40 160],'Sensitivity',0.88,'ObjectPolarity','dark');
%corail Trilogy
[h,x,y]=viscircles_1(centers, radii,'EdgeColor','b');
It would be grateful if you let me know the method to find the centers for these circles.
Looking forward to hear from you at the earliest.
Thanks
Pankaja

回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by