setLineWidth question

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

setLineWidth question

Cammer, Michael
Dear Imagers,

We want to measure the intensities along the edges of a circle, polygon, or freehand drawn or extracted ROI.  Getting the edge coordinates appears to work fine.  However, when we try to change the linewidth (code below), it doesn't change from the value set by doubleclicking on the line tool and setting it there.  Is there a different command we should be using?  (Also, doublclicking on the line tool and entering a value is not recorded in the Recorder window.)  We are using v1.44j and 1.44k with 32 bit Java 1.6.0_10 on a Vista PC.


  linewidth = 5;
  setLineWidth(linewidth);
  makeSelection("freeline", xCoords, yCoords);
  run("Plot Profile");
               
or

  linewidth = 5;
  makeSelection("freeline", xCoords, yCoords);
  setLineWidth(linewidth);
  run("Plot Profile");

Thank you.

_________________________________________
Michael Cammer, Assistant Research Scientist
Skirball Institute of Biomolecular Medicine
Lab: (212) 263-3208  Cell: (914) 309-3270

------------------------------------------------------------
This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.
=================================
Reply | Threaded
Open this post in threaded view
|

Re: setLineWidth question

Rasband, Wayne (NIH/NIMH) [E]
On Dec 5, 2010, at 12:56 PM, Cammer, Michael wrote:

> Dear Imagers,
>
> We want to measure the intensities along the edges of a circle, polygon, or freehand drawn or extracted ROI.  Getting the edge coordinates appears to work fine.  However, when we try to change the linewidth (code below), it doesn't change from the value set by doubleclicking on the line tool and setting it there.  Is there a different command we should be using?  (Also, doublclicking on the line tool and entering a value is not recorded in the Recorder window.)  We are using v1.44j and 1.44k with 32 bit Java 1.6.0_10 on a Vista PC.
>
>  linewidth = 5;
>  setLineWidth(linewidth);
>  makeSelection("freeline", xCoords, yCoords);
>  run("Plot Profile");
>
> or
>
>  linewidth = 5;
>  makeSelection("freeline", xCoords, yCoords);
>  setLineWidth(linewidth);
>  run("Plot Profile");

Use the the Edit>Options>Line Width command to set the line width used by Analyze>Plot Profile. The Line Width command records as

    run("Line Width...", "line=5");

The setLineWidth() macro function specifies the line width used by drawLine(), lineTo(), drawRect() and drawOval().

-wayne
Reply | Threaded
Open this post in threaded view
|

Re: setLineWidth question

Cammer, Michael
Thank you!!

_________________________________________
Michael Cammer, Assistant Research Scientist
Skirball Institute of Biomolecular Medicine
Lab: (212) 263-3208  Cell: (914) 309-3270

________________________________________
From: ImageJ Interest Group [[hidden email]] On Behalf Of Rasband, Wayne (NIH/NIMH) [E] [[hidden email]]
Sent: Sunday, December 05, 2010 1:32 PM
To: [hidden email]
Subject: Re: setLineWidth question

On Dec 5, 2010, at 12:56 PM, Cammer, Michael wrote:

> Dear Imagers,
>
> We want to measure the intensities along the edges of a circle, polygon, or freehand drawn or extracted ROI.  Getting the edge coordinates appears to work fine.  However, when we try to change the linewidth (code below), it doesn't change from the value set by doubleclicking on the line tool and setting it there.  Is there a different command we should be using?  (Also, doublclicking on the line tool and entering a value is not recorded in the Recorder window.)  We are using v1.44j and 1.44k with 32 bit Java 1.6.0_10 on a Vista PC.
>
>  linewidth = 5;
>  setLineWidth(linewidth);
>  makeSelection("freeline", xCoords, yCoords);
>  run("Plot Profile");
>
> or
>
>  linewidth = 5;
>  makeSelection("freeline", xCoords, yCoords);
>  setLineWidth(linewidth);
>  run("Plot Profile");

Use the the Edit>Options>Line Width command to set the line width used by Analyze>Plot Profile. The Line Width command records as

    run("Line Width...", "line=5");

The setLineWidth() macro function specifies the line width used by drawLine(), lineTo(), drawRect() and drawOval().

-wayne

------------------------------------------------------------
This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.
=================================