Here is the snippet that reproduce the issue:
# @Dataset data # data should be 3D image. # You can use File > Open Samples > Tracks for TrakMate from ij.gui import Roi from ij.plugin.frame import RoiManager rm = RoiManager.getRoiManager() roi = Roi(10, 10, 100, 100) # Set the position to a greater value than the number of frame in data. roi.setPosition(999) rm.addRoi(roi) # Check Properties in the RoiManager window. It is set to 1 instead of 999.
I am pretty sure this behaviour is excepted but here is my use-case. I am populating
RoiManager with a list of ROIs for an image that does not exist yet. So that would be convenient if I could set the position of the rois even if this position does not exist in the “active image”.