Re: Want Clean UI
Posted by
Rasband, Wayne (NIH/NIMH) [E] on
Jan 05, 2011; 2:53am
URL: http://imagej.273.s1.nabble.com/How-to-Make-a-Clean-UI-for-Imagej-Macro-tp3686073p3686078.html
On Jan 4, 2011, at 5:09 PM, tankhead wrote:
> So after about 5 min. I have the threshold window not opened. The results
> table is still throwing me off. I use run("Measure"); and then getResult();
> to return a value to my program. Is there a way to return a measured value
> without having the Result window open? Thanks.
Use the getStatistics() or getRawStatistics() macro functions to measure area, mean, min and max. Or any value that can be measured using the Measure command can be retrieved using the List.setMeasurements() and List.getValue() functions. There is an example at
http://rsb.info.nih.gov/ij/macros/DrawEllipse.txt-wayne