Rename ROI script

11 views
Skip to first unread message

MLB

unread,
Feb 12, 2015, 10:20:15 AM2/12/15
to icy-so...@googlegroups.com
Hello,
In "rename all rois "script, we change all name of roi by an incrementale name.

How can I do to do it from the first roi draw to the last ?
I don't understand how roi are sorted.

Thank you for your help,

Marie Laure

Stephane

unread,
Feb 13, 2015, 12:04:19 PM2/13/15
to icy-so...@googlegroups.com
Hi Marie-Laure,

Normally when you use the method:
sequence.getROIs()
as that is the case in this script then the ROI are returned in arbitrary order but you can just replace it with :
sequence.getROIs(true)
so they are sorted by their internal id (and so creation order).

Best,

- Stephane
Reply all
Reply to author
Forward
0 new messages