Login  Register

Re: Roi manager multi measure from a plugin

Posted by Rasband, Wayne (NIH/NIMH) [E] on Jun 06, 2014; 9:16pm
URL: http://imagej.273.s1.nabble.com/Roi-manager-multi-measure-from-a-plugin-tp5008021p5008082.html

On Jun 5, 2014, at 12:00 AM, Philippe Mailly wrote:

> Hi,
>
> How to run roi manager command multi measure from a plugin without displaying image and dialog box as in batch mode from macro.

The latest ImageJ daily build (1.49c6) adds a public multiMeasure() method to the ROI Manager and upgrades the recorder to support this method. This is the JavaScript code the recorder generates when you use the "Multi Measure" command:

   imp = IJ.getImage();
   rm = RoiManager.getInstance();
   if (rm==null) rm = new RoiManager();
   rt = rm.multiMeasure(imp);
   rt.show("Results");

-wayne

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html