How to find the centroid of specified intensiity?

2 views (last 30 days)
I have two color white and black in the image. I have to find the center point of the white color.
  1 Comment
Sami
Sami on 15 Dec 2013
The image i have attached with it. In this image my target is to determine the center of balloons. I have converted this image into Black and White color and the shaded area is also be covered by the bwboundaries() function and regionprop() function. Now do you have anyother suggestion for it.

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 11 Dec 2013
This is shown in detail in my Image Segmentation Tutorial http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862. Basically you threshold and then call regionprops().
  4 Comments
Image Analyst
Image Analyst on 15 Dec 2013
Now that you've posted your image and added explanation, I can see that you want to find the red balloons. Did you not notice my color demos in my File Exchange. Look at this one: http://www.mathworks.com/matlabcentral/fx_files/31118/1/DeltaE_Screenshot.png It can find the red regions.
Image Analyst
Image Analyst on 26 Dec 2013
So are you done asking me questions (is so, please accept), or do you still have something you need to resolve? I'm really puzzled as to why my code could not be adapted to find your balloons.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!