How to find the centroid of specified intensiity?
Show older comments
I have two color white and black in the image. I have to find the center point of the white color.
Answers (1)
Image Analyst
on 11 Dec 2013
0 votes
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
on 14 Dec 2013
Sami - did you try my demo? Did it work for you? Were you able to adapt it to your own image? Please answer.
Sami
on 15 Dec 2013
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
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.
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!