Re: roi select two rois
Posted by
Jan Eglinger-5 on
Jul 29, 2008; 11:15am
URL: http://imagej.273.s1.nabble.com/roi-select-two-rois-tp3695488p3695490.html
Hello Thomas,
> I would like to write a macro that select several rois, but it seems
> that the "Shift" key is not taking into account while selecting :
>
> roiManager("Select", 1);
> setKeyDown("shift");
> roiManager("Select", 2);
>
> this macro will select only roi2, while I would like roi1 and 2 to be
> selected.
>
This code works fine for me (tried with v1.41c and v1.41i on WinXP),
i.e. it selects the combination of the two ROIs.
I tried only with rectangular ROIs, however.
best,
jan
--
Jan Eglinger
PhD Student, Eckhard Lammert group
Max Planck Institute of Molecular Cell Biology and Genetics
Pfotenhauerstrasse 108
01307 Dresden
Germany
Tel: +49 351 210 2722