[Insight-users] TIFF codes
Richard Beare
richard.beare at gmail.com
Thu Sep 15 20:54:04 EDT 2011
Bit depth (bits/sample) is one of the standard tags, so I'd be
surprised if that is it. This is the sort of thing that tiffinfo
reports. With a bit of luck it will give you names of the tags so that
you can guess what they are for.
TIFF Directory at offset 0xdd02 (56578)
Subfile Type: multi-page document (2 = 0x2)
Image Width: 140 Image Length: 200
Bits/Sample: 16
Sample Format: signed integer
Compression Scheme: PackBits
Photometric Interpretation: min-is-black
Orientation: row 0 top, col 0 lhs
Samples/Pixel: 1
Rows/Strip: 29
Planar Configuration: single image plane
Page Number: 86-110
Software: InsightToolkit
On Fri, Sep 16, 2011 at 10:41 AM, Gib Bogle <g.bogle at auckland.ac.nz> wrote:
> Ah, thanks Richard. Maybe the codes are saying that the data are using only
> 12 bits, which I've deduced anyway. I think I can safely ignore the
> messages.
>
> Cheers
> Gib
>
> On 16/09/2011 11:56 a.m., Richard Beare wrote:
>>
>> Usually this sort of thing relates to proprietary tags included by
>> some software. TIFF allows you to add extra tags to describe
>> acquisition parameters, or whatever else you like, but usually
>> software will need to deal explicitly with those extensions.
>>
>> Sometimes the tiffinfo utility, which is part of the libtiff suite,
>> will give you more information about the tags.
>>
>> Also, I wrote a modified tiff reader
>>
>> http://hdl.handle.net/10380/3170
>>
>> that aims to put these tags into the metadata dictionary. I needed
>> this because one software package put scaling factors into tiff tags,
>> and it was necessary to rescale the images based on these in order to
>> process 3D volumes.
>>
>>
>> On Fri, Sep 16, 2011 at 7:00 AM, Gib Bogle<g.bogle at auckland.ac.nz> wrote:
>>>
>>> Not strictly an ITK question, but someone may know this: I am reading a
>>> set
>>> of tiffs (16-bit, with the pixel values stored as 12-bit numbers), and
>>> every
>>> one gives the same warnings:
>>>
>>> TIFFReadDirectory: Warning, zzz.tif: unknown field with tag 317 (0x13d)
>>> encountered.
>>> TIFFReadDirectory: Warning, zzz.tif: unknown field with tag 33628
>>> (0x835c)
>>> encountered.
>>> TIFFReadDirectory: Warning, zzz.tif: unknown field with tag 33629
>>> (0x835d)
>>> encountered.
>>> TIFFReadDirectory: Warning, zzz.tif: unknown field with tag 33630
>>> (0x835e)
>>> encountered.
>>>
>>> If I open a file with Irfanview and save it, I do not get these messages
>>> from ITK. What do they mean?
>>>
>>> Thanks
>>> Gib
>>> _____________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Kitware offers ITK Training Courses, for more information visit:
>>> http://www.kitware.com/products/protraining.html
>>>
>>> Please keep messages on-topic and check the ITK FAQ at:
>>> http://www.itk.org/Wiki/ITK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.itk.org/mailman/listinfo/insight-users
>>>
>
>
> --
> Dr. Gib Bogle
> Senior Research Fellow
> Auckland Bioengineering Institute
> University of Auckland
> New Zealand
>
> http://www.bioeng.auckland.ac.nz
>
> g.bogle at auckland.ac.nz
> (64-9) 373-7599 Ext. 87030
>
>
More information about the Insight-users
mailing list