Hello everyone,
I am trying to select multiple ROIs with the RoiManager in Jython.
I import:
from ij.plugin.frame import RoiManager
RM = RoiManager()
rm = RM.getRoiManager()
Then rm.select(2) works but I cannot find any way to select multiple ROIs. When I call rm.select(4) only the ROI at index 4 is selected.
I’m aware of the roiManager(“Select”, newArray(0,1)); logic but there doesn’t seem to be a rm.select equivalent.
rm.select([2,4]) raises an error.
Any input is appreciated. Thank you for your help.
Kind regards,
Daniel