welcom how find center this image
Afficher commentaires plus anciens
welcom how find center this image...i find top,bottom,left side,right side this image...how find center of image depends on top,bottom,left side,right side this image thanks
3 commentaires
John D'Errico
le 24 Déc 2014
Without definition of what you mean, the "center" of an irregular shape is a meaningless concept.
Of course, since an image is generally a rectangular collection of pixels, the center of the image is trivial to find. And you did ask for the center of an image.
fatima ali
le 24 Déc 2014
John D'Errico
le 24 Déc 2014
That is my point. The center of a rectangular image is trivial, because you need merely count pixels.
My other point was a more significant one, that you need to define what it means to find the center of a foot, or ANY irregular object. There are many ways one might define "center". What that word means to you is probably not what it means to me.
Réponses (1)
Image Analyst
le 24 Déc 2014
1 vote
Threshold it. Throw out small blobs with bwareaopen() or other methods. Then call regionprops() and ask for centroid. See attached m-file.

Catégories
En savoir plus sur Image Arithmetic dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!