Re: roi select two rois
Posted by
Thomas Boudier on
Jul 29, 2008; 12:51pm
URL: http://imagej.273.s1.nabble.com/roi-select-two-rois-tp3695488p3695491.html
Jan Eglinger a écrit :
> 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.
Hi,
I'm running ImageJ 1.41i on linux with java1.6.0_06, what I would like
is to select specifically two rois (to perform some computation on
them), when I run this code :
roiManager("Select", 0);
setKeyDown("shift");
roiManager("Select", 1);
roiManager("measure");
I only have one measure instead of two. Not sure if the shift key
applies to the list inside roiManager or to Rois in the image where they
are combined.
Thomas
>
> best,
> jan
>
--
/*****************************************************/
Thomas Boudier, MCU Université Pierre et Marie Curie
UMR 7101 / IFR 83. Bat A 328, Campus Jussieu
Tél : 01 44 27 35 78 Fax : 01 44 27 25 08
/*****************************************************/