calculation of an area in irregular shape within an image

1 次查看(过去 30 天)
Hi Everyone,
I need some help with a problem I am dealing with now. The problem can be summarized as follows:
· I have images that I have divided into pixels with known dimensions (width x height) . An image is about (1024X943) "965632 pixels" in total. · The problem is that I need to calculate the area of a part of the image (irregular shape). So how can I draw an irregular shape (maybe using imfreehand tool) and determine the number of pixels inside it?
Thanks a lot in advance, Mariam

回答(1 个)

Image Analyst
Image Analyst 2016-7-27
Also, I've attached some demos using imfreehand() if you want to trace your object.

Community Treasure Hunt

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

Start Hunting!

Translated by