Measure the surface of trapezium image

5 views (last 30 days)
Hello, does anyone know how I can measure the surface/area of images of trapezoidal shape in matlab? Thank you

Accepted Answer

Image Analyst
Image Analyst on 11 Mar 2016
Try polyarea(). If that doesn't work for you, then explain your situation better.
  2 Comments
Emmanuella al
Emmanuella al on 11 Mar 2016
I also thought of polyarea() but because Im new to matlab I don't know how to make polyarea() work for an image. What I mean!, I have for example an image that is saved in .png format and the shape of it is trapezium. I don't know the dimensions of the image (Base a, Base b, height). I can find them but my result I'd like to be the matlab to measure that dimensions and then calculate the surface area of it each time for my images. Thank you in advance
Image Analyst
Image Analyst on 11 Mar 2016
If you don't have coordinates, then segment the region and use regionprops() and ask for Area. See my Image Segmentation Tutorial: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

Sign in to comment.

More Answers (0)

Categories

Find more on Elementary Polygons in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!