Posted by
ctrueden on
Jul 29, 2010; 11:07pm
URL: http://imagej.273.s1.nabble.com/Re-tiff-dumper-tp3687419.html
Hi Jonathan,
I really like your plugin, and I would like to use it to find the
> magnification tag in my SEM images and use that value to automatically set
> the scale. I don't know anything about java and a little about python. Is
> there an easy way to parse through the tags returned by tiff dumper to get
> the magnification value?
>
It should be straightforward to modify the plugin to do something else with
the key/value pairs that it prints in the dumpIFDs method. You could add
something like:
IJ.runMacro("Scale Bar...", "width=8 height=16 font=56 color=White
> background=None location=[Lower Right] bold");
>
(I got this line by using the Macro Recorder to record the command Analyze >
Tools > Scale Bar...)
But you would also need to define the physical calibration of the image
first. And knowing the lens magnification value is not sufficient to
determine the calibration, is it?
-Curtis
P. S. The Bio-Formats Importer plugin can parse the physical size of the
image from your file, and set it in the ImageJ properties, if it is present,
at which point you could then configure a scale bar. Would that solve your
problem?
P. P. S. I have CCed the ImageJ list in case anyone else has better advice,
and so that others can benefit from the discussion.
On Sat, Jul 24, 2010 at 6:27 PM, Jonathan Abbott <
[hidden email]>wrote:
> I really like your plugin, and I would like to use it to find the
> magnification tag in my SEM images and use that value to automatically set
> the scale. I don't know anything about java and a little about python. Is
> there an easy way to parse through the tags returned by tiff dumper to get
> the magnification value?
>
> Thank you,
>
>
> Jonathan Abbott
>
[hidden email]
>
> It's kind of fun to do the impossible.
> - Walt Disney
>
>