Add selection brush selections to ROIManager with left click

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

Add selection brush selections to ROIManager with left click

PEARSON Matthew
Hi all,

Is there a way to add selections made by the selection brush tool to the ROIManager simply by left clicking the mouse on the image.  What i do now is set a width of 25 pixels for the brush which when clicked on the image creates a circular selection about the centre of where i clicked.  If i want to mark multiple areas i hold the shift key when i click elsewhere in the image.  This is seen as one selection even though they are not overlapping and are discrete but using the split command in the ROIManager divides them up into separate selections.  For reasons i won't go into it would be easier if you could just left click on the image where you wanted the selection and then it was automatically added to the manager.  I think this functionality is an option for the Multi-Point tool for example.

Thanks,

Matt


--
Matt Pearson
Microscopy Facility
MRC Human Genetics Unit
Institute of Genetics and Molecular Medicine (IGMM)
University of Edinburgh
Crewe Road
EH4 2XU





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

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

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

Re: Add selection brush selections to ROIManager with left click

Rasband, Wayne (NIH/NIMH) [E]
> On Nov 2, 2016, at 5:44 AM, PEARSON Matthew <[hidden email]> wrote:
>
> Hi all,
>
> Is there a way to add selections made by the selection brush tool to the ROIManager simply by left clicking the mouse on the image.  What i do now is set a width of 25 pixels for the brush which when clicked on the image creates a circular selection about the centre of where i clicked.  If i want to mark multiple areas i hold the shift key when i click elsewhere in the image.  This is seen as one selection even though they are not overlapping and are discrete but using the split command in the ROIManager divides them up into separate selections.  For reasons i won't go into it would be easier if you could just left click on the image where you wanted the selection and then it was automatically added to the manager.  I think this functionality is an option for the Multi-Point tool for example.

You can add a selection to the ROI Manager by pressing the “t”, the keyboard shortcut for the Edit>Selection>Add to Manager command. You can use a simple tool macro like the following to create a filled circular selection and add it to an overlay or to the ROI Manager.

-wayne

  macro "Marker Tool - C059o11ee" {
     radius = 20;
     getCursorLoc(x, y, z, flags);
     makeOval(x-radius, y-radius, radius*2, radius*2);
     Roi.setFillColor("blue");
     Overlay.drawLabels(true);
     Overlay.addSelection;
  }

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