Login  Register

Re-sizing arrows

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options Options
Embed post
Permalink
KP
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re-sizing arrows

KP
Hi,

This may be a stupid question but here goes. I have used the "arrow labelling tools" to insert arrows in my image. It would be greatly appreciated if you could tell me how I can change the size, position and colour of the arrow at a later stage.

I am compiling my thesis and the arrow sizes may have to be changed later on  depending on how the image looks when printed. I am making a montage with multiple arrows in each frame and thus it would be quite problematic to re-draw each arrow if a new size is needed.

Heartfelt thanks.

KP
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Re-sizing arrows

ctrueden
Hi KP,

> It would be greatly appreciated if you could tell me how I can change
> the size, position and colour of the arrow at a later stage.

If you have added your arrows to the ROI Manager (by pressing the "T" key
after drawing each arrow), you can later change all their properties en
masse using a macro:

width = 1;
size = 10;
color = "red";
style = "Notched";
setBatchMode(true);
for (i=0; i<roiManager("count"); i++) {
 roiManager("select", i);
run("Arrow Tool...", "width=&width size=&size color=&color style=&style");
 roiManager("Set Color", color);
roiManager("Update");
}

Save this file as "arrows.ijm" then open it in ImageJ using File > Open (or
drag & drop). Then run using Ctrl+R (or Cmd+R on OS X). It will change all
your arrows at once, according to the parameters you set at the top of the
macro.

HTH,
Curtis



On Wed, Nov 7, 2012 at 6:11 AM, KP <[hidden email]> wrote:

> Hi,
>
> This may be a stupid question but here goes. *I have used the "arrow
> labelling tools" to insert arrows in my image. It would be greatly
> appreciated if you could tell me how I can change the size, position and
> colour of the arrow at a later stage.*
>
> I am compiling my thesis and the arrow sizes may have to be changed later
> on
> depending on how the image looks when printed. I am making a montage with
> multiple arrows in each frame and thus it would be quite problematic to
> re-draw each arrow if a new size is needed.
>
> Heartfelt thanks.
>
> KP
>
>
>
> --
> View this message in context:
> http://imagej.1557.n6.nabble.com/Re-sizing-arrows-tp5000723.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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