On Apr 22, 2014, at 5:22 AM, Justin Zhou Yong wrote:
> Hi all,
>
> Suppose I have enclosed an area using the polygon selection tool and got
> ImageJ help me measure the enclosed area with its Measure function. I
> wish to know how does ImageJ do it i.e. by trapezoidal rule or something
> else? Also if possible, can someone point to me the folder in which the
> code lies?
ImageJ measures the area by using the PolygonFiller at
http://imagej.nih.gov/ij/source/ij/process/PolygonFiller.javato convert the polygon to a binary mask and then counting the non-zero pixels in the mask. Use the Edit>Selection>Create Mask command to see what the mask looks like.
-wayne
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html