Login  Register

Re: Mean value of ROI (OvalRoi)

Posted by Wayne Rasband on Dec 18, 2006; 4:30pm
URL: http://imagej.273.s1.nabble.com/TIFF-Image-Timestamp-capture-time-tp3700783p3700793.html

The Calculate_Mean plugin at

     http://rsb.info.nih.gov/ij/plugins/calculate-mean.html

demonstrates how to tally the values and number of pixels within a
non-rectangular selection.

-wayne

On Dec 16, 2006, at 8:05 PM, austincb wrote:

> I've created a specific oval ROI (in code, with specific values) which
> I'd like to find the mean value within that area. Rectangles are easy,
> but I'm a little lost on how to loop through all the pixels in the
> circle and tally the values and number of pixels within the region.
>
> In ImageJ's GUI, if I create an oval ROI with the mouse on the image,
> and then select Analyze->Measure from the menu, it gives me the mean
> within that oval. That's exactly what I want to do, but I can't find
> the code in the source that seems to loop through that oval area.
>
> My dive into the documentation hasn't turned much up, either..
>
> Thanks for any help,
>
> -Austin
>