setting a line width for makeLine()

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

setting a line width for makeLine()

Michael Cammer
Is there a way to set a line width for the makeLine() command from
within a macro?  I'd like to be able to define the width of the line
for a run("Plot Profile").

Thanks!
____________________________________________________________________________
Michael Cammer   Analytical Imaging Facility   Albert Einstein Coll. of Med.
URL:  http://www.aecom.yu.edu/aif/ 
Reply | Threaded
Open this post in threaded view
|

Re: setting a line width for makeLine()

Wayne Rasband
The makeLine() macro function in ImageJ 1.38u will accept an optional  
fifth argument that specifies the line width. For example.

     makeLine(100, 100, 300, 300, 10);

creates a straight line selection from (100,100) to (300,300) that is  
10 pixels wide.

-wayne

On Jun 5, 2007, at 3:49 PM, Michael Cammer wrote:

> Is there a way to set a line width for the makeLine() command from  
> within a macro?  I'd like to be able to define the width of the line  
> for a run("Plot Profile").
>
> Thanks!
> _______________________________________________________________________
> _____
> Michael Cammer   Analytical Imaging Facility   Albert Einstein Coll.  
> of Med.
> URL:  http://www.aecom.yu.edu/aif/