Hi MLB,
In your script you are just doing :
lesROIs= sequence.getROIs(true)
roi=lesROIs.get(1);
nameROI=roi.getName()
println("---nameROI----"+nameROI)
roi.remove()
So you will always remove the ROI at position 1, but maybe you want to remove a ROI with a specific name ?
Also you may use :
instead of
they should do the same action but it better to use the first method (which is actually faster)
- Stephane