> 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