Posted by
Dan McDonald on
Jul 31, 2010; 1:55pm
URL: http://imagej.273.s1.nabble.com/What-resets-Line-Width-tp3687411p3687414.html
Michael,
Thank you for your reply.
I have found the overlay capability to be very helpful.
I agree it would be very nice to be able to set line width and color until
reset.
My wish list includes duplicating most 'drawing" capability in the macro
language with an equivalent "overlay" command set.
We use the overlay capability as a QA check on how well our images have been
manually processed. We would like to use different representations on the
overlay to indicate the detection of different features. So we would like
to preserve all aspects of what we put on the overlay.
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.
-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of
Michael Schmid
Sent: Friday, July 30, 2010 12:23 PM
To:
[hidden email]
Subject: Re: What resets "Line Width" ?
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.
>
>