Login  Register

Re: What resets "Line Width" ?

Posted by Michael Schmid on Jul 30, 2010; 4:22pm
URL: http://imagej.273.s1.nabble.com/What-resets-Line-Width-tp3687411p3687412.html

Hi Daniel,

Image>Overlay>Add Selection  takes the line width of the current roi  
that you add to the overlay. Obviously, this makes sense for line  
rois only - these can have a width>1.

For me it would be also desirable that the overlay color in the  
dialog is remembered:
That color defaults to the eyedropper foreground color. Usually I  
have black foreground for editing, but I would like to have a  
different default color for the overlays.

So I would also perfer the dialog (as well as the dialog-less ALT-b  
command) to remember width and color.

Michael
________________________________________________________________

On 30 Jul 2010, at 17:09, Daniel W McDonald wrote:

> Dear List,
>
>
>
> I set the line width in a macro with the run("Line Width. command.  
> And it
> works as expected until I hit a shortcut key to execute another macro.
>
>
>
> The line width seems to get reset to the default line width after the
> following macro is executed by its shortcut key.
>
>
>
>   macro "enhanced_m2 [m]" {
>
>   run("Set Measurements...", "area display redirect=None decimal=2");
>
>   run("Measure");
> //Update Results Table
>
>   run("Add Selection...", "stroke=white width=2");
> //Mark Measured Root
>
>   ThisLabel = toString(nResults);
>
>   getSelectionBounds(x1,y1, width, height);
>
>   makeText(ThisLabel, x1+ width-2,y1+2);
>
>   run("Add Selection...", "stroke=white font=12 fill=none");
> //Label Root with ID
>
>   run("Select None");
>
>   updateResults();
>
>
>    }
>
>
>
> Do any of the above commands reset the line width?
>
> What other ImageJ events might reset the line width other than  
> explicitly
> changing it?
>
>
>
> Thank you,
>
>
>
> Dan
>
>
>
> Daniel W. McDonald, President
>
> Phenotype Screening Corporation
>
> 4028 Papermill Rd, Suite 10
>
> Knoxville, TN 37909
>
> (865) 385-8641
>
>
>
> Our product, RootViz FS, was a 2007 R&D100 Award Winner. Rated as  
> one of the
> 100 most technologically significant products introduced into the
> marketplace in the prior year.
>
>