Posted by
Michael Schmid on
Feb 24, 2016; 4:59pm
URL: http://imagej.273.s1.nabble.com/merging-IHC-image-from-different-slides-tp5015699p5015708.html
Hi Bill,
sorry, I cant reproduce the problem. The following macro works well for me:
newImage("Untitled", "8-bit ramp", 512, 512, 1);
makeRectangle(57, 43, 84, 40); //1st roi
roiManager("Add");
makeRectangle(153, 110, 75, 33); //2nd roi
roiManager("Add");
makeRectangle(237, 162, 65, 30); //3rd roi
roiManager("Add");
roiManager("select", newArray (1,2));
roiManager("OR");
Note that roiManager("select", newArray (1,2)) selects the 2nd and 3rd roi; the first one has index 0.
ImageJ 1.50g; Java 1.6.0_65 [64-bit]; Mac OS X 10.6.8.
Michael
________________________________________________________________
On Feb 24, 2016, at 15:53, Bill Christens-Barry wrote:
> Hi,
>
> On MacOS 10.7.5, Java 1.6, and ImageJ 1.50h5, I find that only the first ROI becomes selected after:
>
> roiManager("select", newArray (1,2));
>
> After playing with several variants of this, it seems that only the first listed ROI ("1" in this example) becomes selected. Shift- or command- selecting multiple ROIs in the ROI manager works as expected.
>
> Bill Christens-Barry
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html