Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Calculating area of a shape in an image

Asked by Ahmed

Ahmed (view profile)

on 29 Dec 2011

How to calculate the actual area (in Cm^2) for an irregular shape in an image?? Please help me.

0 Comments

Ahmed

Ahmed (view profile)

Products

No products are associated with this question.

2 Answers

Answer by Image Analyst

Image Analyst (view profile)

on 29 Dec 2011

You need to know the size of your image's total field of view, or an object of known size in the image, so that you can calculate a pixels/cm calibration factor. Then calculate area in pixels as usual (bwlabel, regionprops) and multiply by the square of the calibration factor.

0 Comments

Image Analyst

Image Analyst (view profile)

Answer by Image Analyst

Image Analyst (view profile)

on 7 Jan 2012

0 Comments

Image Analyst

Image Analyst (view profile)

Contact us