How to find out center of in the foreground region of a binary image
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
hosse
am 10 Dez. 2015
Kommentiert: Image Analyst
am 14 Dez. 2015
I have an binary image, (1 for white, 0 for black pixel value), all are black except a circular like pure white object in the image.
How to find out the center of the white region (it is foreground region), not the center of the image. Finally how to segment the white region only?
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 10 Dez. 2015
Please attach the original image here, not as a .mat file, and not on some third party site.
You can look at my Image Segmentation Tutorial http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 and see how finding the centroid(s) is done.
1 Kommentar
Image Analyst
am 14 Dez. 2015
The weighted centroid is done by regionprops() - it doesn't matter if the array is 2D or 3D, it will work for both.
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Image Segmentation and Analysis finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!