Re: Multiple ROI Display
Posted by
Wayne Rasband on
Nov 14, 2009; 8:38pm
URL: http://imagej.273.s1.nabble.com/Multiple-ROI-Display-tp3690458p3690464.html
On Nov 14, 2009, at 2:45 PM, David William Webster wrote:
> All,
>
> I have a plugin (Java) that uses oval shaped ROIs to
> display detected circles. I use:
>
> RoiManager rm = new RoiManager();
> .
> .
> .
> IJ.makeOval(x-r, y-r, 2*r+1,2*r+1);
> rm.runCommand( "Add");
>
> To put them into the ROI manager and
>
> rm.runCommand("Combine");
>
> To display them. But when the overlap, the corresponding sections
> are not shown. If I go to the menus, I can click the "Show All" in the
> ROI Manager window, to get complete circles. But, this doesn't
> seem to be an option that I can use with the run runCommand() method.
> The macro recorder show this as a setOption("Show All",true) macro
> command, and this is what sgows up if I "create" this as a plugin.
> But,
> the compiler can't find it and I can't find the setOption() method
> in the API.
Use
rm.runCommand("Show All");
which is available in the 1.43l daily build. Use
rm.runCommand("Show None");
to hide the ROIs. I will fix the recorder next week.
-wayne