Hi Icy team,
What defines the ordering of ROIs in the ROI panel and then consequently the sequence.getRois() Array List?
I thought it was their ID, but it is not apparently.
I've created in a plugin an ROI on one sequence, then create a copy on another sequence, moved its position on this other sequence, and do this several times. Surprisingly: the ROI for each sequence does not have the same rank: i.e the copy of one ROI does not have the same index in the List Array as the original ROI in the first sequence. Even if the order of creation was strictly Roi1 Seq 1, Copy to Seq 2 , Roi2 seq 1 , Copy Seq 2 etc..
I want to make sure they match, the only way I could think of was to give them a name that would increase lexicographically and then reorder the array list of Rois of both sequence to find matching points, or to use their ID if I'm assuming the ID is growing with the ordering of creation of ROIs?
Did I miss something much more simple?
Best,
Perrine