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

4 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

Image Analyst
Image Analyst il 18 Nov 2014
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 Commenti
Brahm
Brahm il 28 Nov 2014
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 il 28 Nov 2014
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.

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by