length of forehead of a person
Show older comments
Hello all, I am currently working some project in which i need to calculate the length of forehead in the face of a person is a part. I took the BW of the image, but how to calculate the max(lenth of white pixels between 2 black pixels) which actually gives the length of the forehead. Thanks in advance
2 Comments
Walter Roberson
on 3 Aug 2011
You can calculate the number of pixels, but you will need to find a way to relate that number of pixels to a physical distance.
vinu prasad
on 4 Aug 2011
Answers (2)
Image Analyst
on 3 Aug 2011
0 votes
You could use any() to get that info on a column-by-column basis across the blob, or you could pass your binary image into bwconncomp and regionprops to get the bounding box of the blob.
Sean de Wolski
on 3 Aug 2011
Or
sum(Your_bw_image(forehead_row,:))
Categories
Find more on Video Formats and Interfaces 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!