Posted by
Krs5 on
Jul 31, 2013; 9:27am
URL: http://imagej.273.s1.nabble.com/draw-lines-in-image-tp5004213p5004229.html
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