Login  Register

Re: saving personal preferences / options / settings for ImageJ?

Posted by Michael Schmid on May 02, 2013; 4:16pm
URL: http://imagej.273.s1.nabble.com/saving-personal-preferences-options-settings-for-ImageJ-tp5002894p5002895.html

Hi Marco,

in Analyze>Set scale, the default unit for uncalibrated images is 'pixel'. If your images have a scale in 'cm', this is probably a property of the TIFF images.

Enable Debug mode in Edit>Options>Misc and open an image. The log window should tell you more:
If the ResolutionUnit is 3, this means 'cm', a value of 2 stands for 'inch'.

You can write a plugin (called by StartupMacros.txt) that implements the ImageListener interface and checks the current unit on imageOpened. Then, if the current scale is 'cm', adjust the resolution and unit.

See the sources of ij.plugin.EventListener, and the ij.measure.Calibration classes.

Michael
________________________________________________________________
On May 2, 2013, at 17:51, Marco Moller wrote:

> Hello,
>
> How can I save my personal preferences / options / settings, so that
> each time I start the ImageJ (FIJI) program they are right away active
> instead of the ImageJ default values?
>
> In detail, I am working with electron microscopy TIF images where the
> Length Unit (used i.e. in the measure, results and scale bar functions)
> best is to be set to "nm" in the IMAGE>PROPERTIES... dialog, instead of
> using the ImageJ default "cm". So, I would like to preset, that "nm" is
> used as my personal default, preventing that I each time have to change
> this setting upon loading a new image to ImageJ.
>
> Thanks,
>
> Marco

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