Login  Register

Re: Calling plugin command from Macro

Posted by Jonathan Jackson-2 on Sep 23, 2005; 6:13pm
URL: http://imagej.273.s1.nabble.com/Re-Calling-plugin-command-from-Macro-tp3704795.html

Is it possible to use the builtin ROI manager function rather than Multi
measure (for differences see
http://www.optinav.com/ImageJplugins/Multi-Measure.htm )
With the builtin you have access to the ROI manager macro commands which
could automate the task:

roiManager(cmd)
Runs an ROI Manager command, where cmd must be "Add", "Add & Draw",
"Deselect", "Measure", "Draw" or "Combine". The ROI Manager is opened if it
is not already open. With v1.34k or later, use roiManager("reset") to delete
all items on the list. For examples, refer to the RoiManagerMacros,
RoiManagerAddParticles and ROI Manager Stack Demo macros. Requires v1.33f.

Regards,
Jon

>Hello, I am trying to make a macro that will create ROI's based on a binary
>mask, then measure those ROIs through a 500 frame stack, and save the data.
>The macro that I've written does all of this fine, except for the
>measurement step, when I use the MultiMeasure plugin that's part of the WCIF
>plugin set. This works great, but the user mus manually press the buttons on
>the MultiMeasure panel to run the measurement command. Is there any way for
>me to automate this step? Either from within a macro or within a plugin? I
>don't have much experience with java in ImageJ, so any help would be
>appreciated.
>Thanks
>Michael Chelen
>========================================================================