MATLAB Answers

Which all the different methods available to find center of an object in an image?

3 views (last 30 days)
Hi, Pls let me know different methods available to find center of an object in an image. Thanks in advance Rakshi

  0 Comments

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 2 Dec 2013
regionprops() will return the center of a blob based on just its coordinates as 'Centroid'. It will also return the center of mass which is like the centroid but weighted by the intensity of each pixel in the blob. For that, ask regionprops() for 'WeightedCentroid'.

  6 Comments

Show 3 older comments
Rakshitha
Rakshitha on 9 Dec 2013
Thanks a lot :) What is the limitation of this method? like the shape of the object on which it can be applied n image quality etc!!
Image Analyst
Image Analyst on 9 Dec 2013
It's a general formula. No limitation. Of course there may be a slight deviation from the "true" mean due to spatial quanitization.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!