imfindcircles() doesn't find circle although radius is within the specified range and circle was succesfully detected before
Mostrar comentarios más antiguos
Hi there,
I have following issue with the imfindcircles() function:
I'm trying to detect circles in a row of images to track the movement of a ball. For the examplary image in the attachement when I use this code:
image1 = imread("TestIMG.jpg");
imshow(image1)
[center, radius] = imfindcircles(image1,[25 35], "Sensitivity",0.9)
viscircles(center, radius);
the ball is detected correctly and the output is
center = [133.8004 122.4886] and radius = 31.8116
When I use the same image and the same code, but change the radius range to [27 37] I would expect the same circle to be found as the radius of the detected circle from above is still in the given range. However, doing so returns empty center and empty radius. I experienced this issue in similar way for several different images and I have no clue how that can happen. I tried to find some explanation in the imfindcircles() documentation, but couldn't find any solution.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Hough Transform en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!