Add the same ROI several times to the ROI Manager in a macro

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Add the same ROI several times to the ROI Manager in a macro

lechristophe
Dear all,

I'm trying to write a macro that needs to store several times the same
ROI in the ROI Manager (to modify them differently downstream). If I
call roiManager("Add") two times, it will only add one ROI, even if I
rename the first ROI before calling it again. Is that behavior
intended or would it be possible to create a second ROI with "-1"
added to the name ? For the moment I have to create the first ROI, add
it to the manager as the first ROI, shift the ROI, add the shifted ROI
to the manager as the second ROI, shift it back to its original place,
update the second ROI (which is fairly convoluted).

Christophe Leterrier