Login  Register

Re: Bet way to get mean value of ROI in a plugin?

Posted by Wayne Rasband on May 22, 2009; 4:17am
URL: http://imagej.273.s1.nabble.com/Bet-way-to-get-mean-value-of-ROI-in-a-plugin-tp3692428p3692432.html

> Hello,
>
> I need to get the mean value of the intensity in a ROI to use  in a
> plugin. Right now, I'm using the measure function, then I go and  
> retrieve
> the value in the result table.
> I was wondering if there would be a cleaner / easier /better  way to
> retrieve  this value ?

     double mean = imp.getStatistics().mean;

-wayne