Hi all,
I'm having trouble separately processing individual rois on an image
having multiple rois. I have a macro with a loop that calls
roiManager("Select", n) followed by a call to a plugin to process the
selected roi. However, with each additional roi, the plugin processes the
steadily increasing bounding box of the multiple rois. My macro code is :
___________________________________
roiManager("Open", "mypath_to_\RoiSetL.zip");
n=roiManager("count");
G="L";
for (i=0;i<n;i++){
roiManager("Select",i);
run("myPlugin", "Group="+G+" iW=10 iH=10"); // a side issue is that the
plugin does not read the arguments correctly
}
roiManager("Delete");
roiManager("Open", "mypath_to_\RoiSetN.zip");
n=roiManager("count");
G="N";
for (i=0;i<n;i++){
roiManager("Select",i);
run("myPlugin", "Group="+G+" iW=10 iH=10"); // a side issue is that the
plugin does not read the arguments correctly
}
roiManager("Delete");
____________________
Is this something easily fixed in the macro, or would this be easier to do
entirely within the plugin with appropriate functions?
I have been unable to get calls such as IJ.roiManager(); to work from a
plugin. I continually get errors such as:
___________________________
C:\Program Files\ImageJ\plugins\testMacro_.java:11: cannot find symbol
symbol : method roiManager(java.lang.String,java.lang.String)
location: class ij.IJ
IJ.roiManager("Open", "myPath_to_\\RoiSetL.zip");
^
C:\Program Files\ImageJ\plugins\testMacro_.java:12: cannot find symbol
symbol : method setOption(java.lang.String,boolean)
location: class ij.IJ
IJ.setOption("Show All",true);
^
C:\Program Files\ImageJ\plugins\testMacro_.java:13: cannot find symbol
symbol : method roiManager(java.lang.String)
location: class ij.IJ
IJ.roiManager("Measure");
^
3 errors
_____________________
testMacro_.java was created using the macro Recorder and then Convert to
Plugin.
Any suggestions will be appreciated.
Thanks,
Chuck
=========================
Charles R. Parker, Ph.D.
Research Aquatic Biologist
U. S. Geological Survey
1316 Cherokee Orchard Road
Gatlinburg, TN 37738
E-mail:
[hidden email]
Phone: (865) 436-1704