Find centroid of an image?
Mostra commenti meno recenti
I want to find the centroid of an image mainly the face. The centroid should be on the nose of the face but I am not able to find it. Please help. Thanks in advance.
2 Commenti
Image Analyst
il 28 Ott 2013
Modificato: Image Analyst
il 28 Ott 2013
Can you attach the image again - I accidentally deleted it when I tried to click on it's name. Very sorry about that. Randy - can you make it pop up a confirmation before deleting an attachment so this doesn't happen again (this is now the second time I've accidentally done that)?
Dhrubajyoti Das
il 28 Ott 2013
Risposte (2)
Image Analyst
il 28 Ott 2013
0 voti
See my image segmentation tutorial http://www.mathworks.com/matlabcentral/answers/contributors/1343420-image-analyst/answers
6 Commenti
Image Analyst
il 28 Ott 2013
See attached file test.m below. It finds the centroid of the head in your image. Of course you know that the nose is not always guaranteed to under the centroid of the image don't you? Just think about it. Go here if you want to know how to robustly find features on a face: http://iris.usc.edu/Vision-Notes/bibliography/contentspeople.html#Face%20Recognition,%20Detection,%20Tracking,%20Gesture%20Recognition,%20Fingerprints,%20Biometrics
Dhrubajyoti Das
il 29 Ott 2013
Image Analyst
il 29 Ott 2013
The code I gave does 90% of that. What follows, and is clipped off, is what I said about that centroid not always being on the nose. I don't know what they plan on doing in that case because it's clipped off.
Dhrubajyoti Das
il 30 Ott 2013
Image Analyst
il 30 Ott 2013
Sorry but I doubt I'll have time for that.
Dhrubajyoti Das
il 31 Ott 2013
komal
il 31 Mag 2019
0 voti
Sir please tell me how to find the centroid of the skin region in an image
1 Commento
Image Analyst
il 31 Mag 2019
Try the color thresholder app on the Apps tab of the tool ribbon. Export the function then apply it to your image. Take the resulting binary image and pass it to regionprops() like I did in my tuorial.
Categorie
Scopri di più su Image Processing Toolbox in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!