How to identify object inside an image and find its position in that image

I have 3 circles of same size with colours yellow blue and red inside the image.I would like to identify coloured circles inside an image and get their positions in terms of x and y coordinates.

1 Comment

Post the image to the web somewhere (e.g. tinypic.com), and post the link to it here. That will help us give you specific information.

Sign in to comment.

Answers (2)

See my Image Segmentation Tutorial: BlobsDemo - it does that using the standard coins demo. There is also a Mathworks demo on Steve's blog using imfindcircle: http://blogs.mathworks.com/steve/2012/09/04/detecting-circular-objects-in-images/
I think this blog post by Steve Eddins should be directly relevant to what you're trying to achieve:

Asked:

on 29 May 2013

Commented:

on 3 Oct 2017

Community Treasure Hunt

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

Start Hunting!