Scale Bar to a Series of Images

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

Scale Bar to a Series of Images

Gary Laevsky
Hello All,

Is there any way to open a series of different images (I can actually
do this part), all taken with the same mag (but different FOVs), and
apply the same "properties" to them so it may be easier to add scale
bars to all of them.

For example (at risk of being wordy), I'm taking a bunch of different
images of beads.  Right now, I open each image, apply the appropriate
properties (pixel values) to each one, and then add the scale
bar.  Any way to do this fast?

Thanks in advance.
Best,

Gary



Gary Laevsky, Ph.D.
Keck Facility Manager, CenSSIS
Northeastern University
302 Stearns
360 Huntington Ave.
Boston, MA 02115
Office(617) 373 - 2589
Lab(617) 373 - 7756
Fax(617) 373 - 7783

http://www.censsis.neu.edu

http://www.ece.neu.edu/groups/osl

http://www.keck3dfm.neu.edu
Reply | Threaded
Open this post in threaded view
|

Re: Scale Bar to a Series of Images

Commandeur
Hi Gary,

Sounds like a job for a macro.

Below is the code of a macro I created real easy, by going
to
\Plugins\Macros\Record...
See what happens if you do this and then leave the
recorder window open while you open one picture and do the
actions you want repeated for every picture.

//start of macro

open("C:\\Maindir\\subdir\\filename.tif");
run("Set Scale...", "distance=96 known=13.8 pixel=1 unit=
µm");
run("Add Scale Bar ", "width=10 height=4 font=16
color=White location=[Upper Right] bold");

//end of macro

You get a µ with alt+230 in unicode, in case you wanted
know.

You can adjust the macro to your purposes (specifying the
right path for "C:\\Maindir\\subdir\\filename.tif",
setting distance in pixels to a know number of some unit,
and change the width, hight, font, color and location of
the scale bar) and copy the code for every image you need
to open.

The macro can be run by going to
\Plugins\Macros\Run...

Hope this was useful to you.

Greetings,
Edwin


> Hello All,
>
> Is there any way to open a series of different images (I
can actually
> do this part), all taken with the same mag (but
different FOVs), and
> apply the same "properties" to them so it may be easier
to add scale
> bars to all of them.
>
> For example (at risk of being wordy), I'm taking a bunch
of different
> images of beads.  Right now, I open each image, apply
the appropriate
> properties (pixel values) to each one, and then add the
scale

> bar.  Any way to do this fast?
>
> Thanks in advance.
> Best,
>
> Gary
>
>
>
> Gary Laevsky, Ph.D.
> Keck Facility Manager, CenSSIS
> Northeastern University
> 302 Stearns
> 360 Huntington Ave.
> Boston, MA 02115
> Office(617) 373 - 2589
> Lab(617) 373 - 7756
> Fax(617) 373 - 7783
>
> http://www.censsis.neu.edu
>
> http://www.ece.neu.edu/groups/osl
>
> http://www.keck3dfm.neu.edu
>