Login  Register

How to get area of Roi programatically; where is "Roi.getArea()"

Posted by Jim Cant on Apr 11, 2007; 4:23am
URL: http://imagej.273.s1.nabble.com/How-to-get-area-of-Roi-programatically-where-is-Roi-getArea-tp3684371.html

I need to get the area of FreeRois programatically (not through the ImageJ GUI) and have spent a few hours on this without any luck.  I would expect that the Roi class would have a method like 'getArea()'... after all, it has getFeretsDiameter()  ;-)

I looked through the JavaDocs, the ImageJ forum, and googled around a bit with no luck.

I walked through the code starting with the 'Measure' button on the RoiManager and soon found myself in pluging country with somebody calling Executer.run( "Measure");

I feel there has to be simpler way that I am just missing.  Can anybody give me a hand here?

Thanks,

jim cant