Re: Selection brush tool usage

Posted by Straub, Volko A. (Dr.) on
URL: http://imagej.273.s1.nabble.com/Selection-brush-tool-usage-tp5017711p5017718.html

Hi Matt,

I am not sure why you first add your selection to the overlay and then transfer it to the ROI manager. Whenever I have done things like this in the past, I simply added the selection directly to the ROI manager. This can be achieved by pressing ctrl-t. If you want to know/see whether a certain region has already been selected, just activate the show all option in the ROI manager to see the content of the ROI manager overlayed on the image.

Hope this helps,
Volko

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of PEARSON Matthew
Sent: 08 December 2016 09:15
To: [hidden email]
Subject: Re: Selection brush tool usage

Hi all,

I think i have cracked my problem with the selection brush and in fact realise i'd asked a similar question a couple of years ago but then didn't pursue the idea.  I can now get the selection brush to create selections around the image but the work flow for doing this seems a little strange.  These are the steps that work for me:

1.) Left click on the image to create a circular selection with the selection brush
2.) Left click again anywhere on the image but not on the circular selection
3.) Press the b key (adds the first selection to the overlay i believe)
4.) I can now left click and add another circular selection on the image
5.) Repeat above for all selections then
5.) Image>Overlay>To ROI Manager (adds all the overlays as separate roi's)

I'm not sure why i have to do step 2.) before i press b.  Its not a big deal but would be good if you could just left click on the next area, perhaps there is good reason for this.

Thanks,

Matt


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




On 7 Dec 2016, at 15:22, PEARSON Matthew <[hidden email]<mailto:[hidden email]>> wrote:

Hi all,

I'm trying to figure out the ways to query if a selection is say an oval, rectangle or composite in a macro?  I know i can do ROIManager>More>List to find out what Type each selection is but is the only way to extract this info through renaming the overlay elements table to "Results" then using getResultString on the Type column?  If it is a composite i will then split this selection so i can process each area separately.

But perhaps there is an alternative for what i want to do.  I want to mark several selections on an image and add them to the manager using a tool that has a defined initial size but can be expanded freehand if necessary by left clicking and moving the mouse hence using the selection brush but the issue with it is it can produce composite or a single selection depending on if the user holds the shift key or not.  So if the user has pressed shift i need to know that the selection is a composite and then split into separate selections for processing.  If they have not held shift then the selection will be just one single marked area but the macro doesn't know which they've done unless i extract the overlay elements info.

A paintbrush type tool which allows you to add multiple separate selections to the ROI manager would be useful if it doesn't somehow exist already?

Thanks for the advice,

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


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

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