Change names in ROI manager

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Change names in ROI manager

María Victoria Pepe
Hi!!

I`m measuring positions of different points using the "Point Tool" and ROI
manager. Is there any way I can match names in ROI manager with the Point
Label???

Thanks

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Change names in ROI manager

Michael Schmid-3
Hi Maria Victoria,

the labels on the screen are just sequential numbers, so they change
e.g. when you delete one of the points (all higher numbers are decremented).
The numbers in the ROI manager are pixel coordinates.

If you use the Point Tools "Add to ROI Manager" function and you start
with a blank image and blank Roi Manager, the sequential number will be
the row number of the Roi Manager. Then you can have a simple macro, to
have corresponding numbers in the ROI Manager.

   for (i=0; i<roiManager("count"); i++) {
     roiManager("select", i);
     roiManager("rename", i+1);
   }


Michael
________________________________________________________________


On 20.08.19 16:26, María Victoria Pepe wrote:
> Hi!!
>
> I`m measuring positions of different points using the "Point Tool" and ROI
> manager. Is there any way I can match names in ROI manager with the Point
> Label???

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html