2012.07.04 12:36 "[Tiff] How to set the "physical size" of an image when writing a Tiff file?", by Simon Ochsenreither

2012.07.04 12:36 "[Tiff] How to set the "physical size" of an image when writing a Tiff file?", by Simon Ochsenreither

Hello everyone,

I have received some Tiff image stacks and I encountered issues

processing them. It seems the values for the "whole" tiff file are set

correctly, but it seems that each individual file is missing the

"physical size" attributes:

|[...]
First image
----------------

Title: sample_0deg.btf
Width: 0.00 microns (2592)
Height: 0.00 microns (2160)

Resolution: 7077532027016991000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.00 pixels per micron

Voxel size: 0.00x0.00x1 micron
[...]
|

The amount of pixels (2592 * 2160) is set correctly, but width and

height both report 0.00 microns, which is wrong (I guess).

I tried finding the appropriate method in libtiff to set the correct

width and height when creating the image stack, but I haven't found it

so far.

Maybe someone could give me a hint?

Thanks a lot!

Bye,

Simon|
|