I am using 'imfindcircles' to detect bright circles but I am trying to refine it so that it will filter out green coloured circles. Is this possible?
Thank you

5 Comments

Can't you just filter out the green circles as a 2nd step, using the first result as a mask into the original image?
Please can you give me some guidance or direct me to any material on how to use a 'mask'?
Thank you
Attach the image....
The issue arises when the function begins to detect 'circles' around the object due to varous curves. I want it to only detect the yellow/green circles. I have already adjusted the sensitivity and cannot change it more without it stopping detecting certain markers. Thanks

Sign in to comment.

 Accepted Answer

Image Analyst
Image Analyst on 3 Jul 2017

0 votes

See the Color Thresholder on the Apps tab of the tool ribbon.
See my File Exchange for a few color segmentation demos.
See the attached zip file where I track a green Sharpie.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!