I have some code that processes saved lists of ROIs in a specific order. I am trying to go back through and add ROIs where they are missing but can only seem to add them to the end of the list of ROIs in ROI manager. Is there a way to add them into a specific place?
Thanks
Is there a way to add them into a specific place?
There is no simple way. The RoiManager
class has no API for it. And it maintains parallel data structures (java.awt.List list
and java.util.ArrayList rois
) which both track the list of ROIs. So you would need to:
RoiManager