Login  Register

Re: draw lines in image

Posted by Francisco Soto on Jul 31, 2013; 5:06pm
URL: http://imagej.273.s1.nabble.com/draw-lines-in-image-tp5004213p5004243.html

Hi!

   Thanks for the answers, but i'm trying to draw lines from the code. With
your help i'm trying to search the function to draw lines automatically
from my code.

Best!


2013/7/31 Straatman, Kees R. (Dr.) <[hidden email]>

> Hi Francisco,
>
> In addition to this if you right mouse click on this line tool you can
> select the type of line you want to use; straight line, segmented line,
> freehand or arrow.
>
> Kees
>
> -----Original Message-----
> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of
> Curtis Rueden
> Sent: 30 July 2013 16:00
> To: [hidden email]
> Subject: Re: draw lines in image
>
> Hi Francisco,
>
> > I want to draw lines in my result image.
>
> Click the line tool (fifth from left in the toolbar), draw a line on the
> image by clicking and dragging with the mouse, then run Edit > Draw to make
> it permanent on the image.
>
> In a macro, the code is something like:
>
> makeLine(216, 14, 35, 91);
> setForegroundColor(255, 255, 255);
> run("Draw");
>
> I found this code easily by running Plugins > Macros > Record... to launch
> the Macro Recorder, then repeating the manual steps I mentioned above.
>
> HTH,
> Curtis
>
>
> On Tue, Jul 30, 2013 at 8:57 AM, Francisco Soto <
> [hidden email]> wrote:
>
> > Hello!
> >
> >   This is my first post. I want to know how can I draw a line in the
> > images. I'm opening an image (.jpg) and apply my algorithm (hough), so
> > finally I want to draw lines in my result image. Can anyone help me
> > with this. I've been several hours in this.
> >
> >
> > Best!
> >
> >
> > Francisco.
> >
> > --
> > 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
>

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