Login  Register

Re: Spatial and density calibration from TIFF files to ImageJ

Posted by Olivier Burri on Oct 19, 2015; 10:38am
URL: http://imagej.273.s1.nabble.com/Spatial-and-density-calibration-from-TIFF-files-to-ImageJ-tp5014677p5014679.html

Hi Davide,

Looking at a tiff image saved by ImageJ, it's the same thing as for the zunit:
ImageJ adds a unit=micron or whichever yours is to the ImageDescription tag

Hope this helps.

Best

Oli

> -----Original Message-----
> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of
> Davide Guarisco
> Sent: Monday, October 19, 2015 6:03
> To: [hidden email]
> Subject: Spatial and density calibration from TIFF files to ImageJ
>
> Hello,
> I have tried to find this information elsewhere but was not
> successful, so I am posting here.
>
> I am writing a Python script that converts a proprietary image format into a
> TIFF file, which I subsequently intend to open in ImageJ. I want to transfer
> the information regarding both the scaling (spatial calibration) and density (Z-
> values) via the TIFF file.
>
> I tried to determine how ImageJ saves this information by looking at the files
> generated before and after setting a scale and adding a calibration. For the Z
> scale, it seems that ImageJ just adds the following to the Image Description
> (e.g., in the case of a linear calibration):
>
> cf=0 c0=0.0 c1=0.3326 vunit=nm
>
> For the spatial calibration, via searching this list, I was able to find that ImageJ
> uses the x_resolution, y_resolution TIFF tags. This works, except that the
> unit is not set. How can I communicate the unit of the spatial resolution?
> Notice that a standard TIFF tag is unit_resolution. However, this only
> supports three values (1=none, 2=inch, 3=cm).
>
> To save the TIFF files from Python there are many possibilities. I am leaning
> towards tifffile.py for now. If anybody has an opinion on this, please let me
> know as well.
>
> Thank you in advance.
>
> Davide
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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