Finding X and Y coordinates of a single white blob on a black background

3 views (last 30 days)
I have a series of images which I need to find the x,y coordinates for a single white blob on black background. I would like coordinates to be taken from the center of the image. Thank you.

Accepted Answer

Image Analyst
Image Analyst on 18 Sep 2013
The blobs are the coins from the standard MATLAB demo image. It finds the centroids of all of them. You just need to subtract the number of rows and columns divided by 2 to get the coordinates referenced to a new coordinate system where the origin is in the middle of the picture.
  6 Comments

Sign in to comment.

More Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!