How to find the length of an object in an image?

1 次查看(过去 30 天)
Hi,
I am new to image processing and I am looking for a way to find the length in cm of an object in an image. In particular, I am dealing with images of human body segments like feet, hands etc.
Thanks

采纳的回答

Image Analyst
Image Analyst 2014-11-18
You can use regionprops. See a Image Segmentation Tutorial demo in my File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862.
Also see VisionBib http://www.visionbib.com/bibliography/contents.html to find papers on body part segmentation.
  2 个评论
Brahm
Brahm 2014-11-28
Hi Image Analyst, with your help I have gotten to the point of obtaining perimeter and area of the surface of objects I need.
But, how do i convert the area from number of pixels to cm^2 and in what units does matlab calculate the perimeter and how can you convert the perimeter into cm?
Image Analyst
Image Analyst 2014-11-28
It's all in pixels. To get into some other units you need to multiply by the spatial calibration factor. Measure something of known length, say 1 meter. Then see how many pixels it is. Divide the two and you have your factor. See attached demo.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by