Some questions about the ROI manager

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Some questions about the ROI manager

Stein Rørvik
In the ROI Manager there are some useful options like setting the font size and apply label name under the menu choice "More -> Labels...".
But I cannot find out how to set or change these options via a macro; the macro recorder does not record anything here.

Also, is there some way I can show the ROI Manager (from the menus and from a macro) if no ROIs have yet been added to it?
It automatically appears when the first ROI is added, but how to get to it before that?

Stein

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

Re: Some questions about the ROI manager

Rasband, Wayne (NIH/NIMH) [E]
On Mar 18, 2016, at 11:23 PM, Stein Rørvik <[hidden email]> wrote:
>
> In the ROI Manager there are some useful options like setting the font size and apply label name under the menu choice "More -> Labels...".
> But I cannot find out how to set or change these options via a macro; the macro recorder does not record anything here.

Run the "Labels…” command from the Image>Overlay menu and it will be recorded. Here is example that was created using the recorder:

  run("Blobs (25K)");
  makeOval(44, 27, 89, 98);
  roiManager("Add");
  makeOval(128, 119, 99, 98);
  roiManager("Add");
  run("Labels...", "color=red font=24 show draw");
  roiManager("Show All with labels");
 
> Also, is there some way I can show the ROI Manager (from the menus and from a macro) if no ROIs have yet been added to it?
> It automatically appears when the first ROI is added, but how to get to it before that?

You can show the ROI Manager by pressing “t” (Edit>Selection>Add to Manager). This works when no images are open or the current image does not have an ROI. In a macro, use run("Add to Manager”).

-wayne

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

Re: Some questions about the ROI manager

Stein Rørvik
Thank you for these tips!

I assumed that using the run("Add to Manager") on an image without a selection would add the image boundary as a ROI, but I see now that it does not. It works as you describe.

Stein

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Rasband, Wayne (NIH/NIMH) [E]
Sent: 19. mars 2016 06:07
To: [hidden email]
Subject: Re: Some questions about the ROI manager

On Mar 18, 2016, at 11:23 PM, Stein Rørvik <[hidden email]> wrote:
>
> In the ROI Manager there are some useful options like setting the font size and apply label name under the menu choice "More -> Labels...".
> But I cannot find out how to set or change these options via a macro; the macro recorder does not record anything here.

Run the "Labels." command from the Image>Overlay menu and it will be recorded. Here is example that was created using the recorder:

  run("Blobs (25K)");
  makeOval(44, 27, 89, 98);
  roiManager("Add");
  makeOval(128, 119, 99, 98);
  roiManager("Add");
  run("Labels...", "color=red font=24 show draw");
  roiManager("Show All with labels");
 
> Also, is there some way I can show the ROI Manager (from the menus and from a macro) if no ROIs have yet been added to it?
> It automatically appears when the first ROI is added, but how to get to it before that?

You can show the ROI Manager by pressing "t" (Edit>Selection>Add to Manager). This works when no images are open or the current image does not have an ROI. In a macro, use run("Add to Manager").

-wayne

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

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