How to find the centroid of specified intensiity?

I have two color white and black in the image. I have to find the center point of the white color.

1 Comment

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)

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

Sami - did you try my demo? Did it work for you? Were you able to adapt it to your own image? Please answer.
Yeah i try the demo but that's not what i want.
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.
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.

Categories

Asked:

on 11 Dec 2013

Commented:

on 26 Dec 2013

Community Treasure Hunt

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

Start Hunting!