Login  Register

Re: draw lines in image

Posted by ctrueden on Jul 30, 2013; 3:00pm
URL: http://imagej.273.s1.nabble.com/draw-lines-in-image-tp5004213p5004214.html

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