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 >======================================================================== |
Well, the problem I had was that I wanted to be able to use the Multi
Measure functionality, which was its ability to record data from multiple ROIs across the entire t-series. I looked into programming that into the macro, becuase as you mention then I can use the ROI manager commands, but I couldn't figure out how to get the same function as Multi Measure through the macro. What I ended up doing was altering the Multi Measure plugin to include the features I wanted in the macro, namely the automatic generation of ROI's based on particles, and also some niceties such as automatically saving ROIs, the data, etc. This worked well because I was able to use Multimeasure's methods, since my addition was simply another button (& command) inside multimeasure. I would imagine it is possible to use ROI manager to have Multi Measure's capabilities through a macro, but altering the code of MM worked fine for me in this case. Thanks Michael Chelen On 9/23/05, Jonathan Jackson <[hidden email]> wrote: > 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 > >======================================================================== > |
Free forum by Nabble | Edit this page |