calculation of an area in irregular shape within an image

조회 수: 1 (최근 30일)
Mariam
Mariam 2016년 7월 27일
답변: Image Analyst 2016년 7월 27일
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