2004.01.23 05:15 "Re: [Tiff] How to convert MINISBLACK to PHOTOMETRIC_RGB", by Bob Friesenhahn
This TIFF looks very interesting. It looks like they took three normal channels and stored one of them as the regular channel, and two of them as extra sample channels. The two extra channels are not marked as alpha channels. Did the TIFF file get any smaller when you removed bands? If you don't create a "subset" image are there five extra sample channels?
I would be interested to get my hands on one of these odd TIFF files in order to see how GraphicsMagick (http://www.graphicsmagick.org/) deals with it.
If GraphicsMagick can read it properly, it can certainly output normal RGB TIFFs based on what it read.
On Thu, 22 Jan 2004, Pushkar Pradhan wrote:
When I create a subset image (to take only 3 bands out of 6) IMAGINE software creates a MINISBLACK TIF file (there seems to be no option to change this). This is what tiffinfo reports: TIFFReadDirectory: Warning, data/ms-denver.tif: unknown field with tag 33550 (0x830e) encountered.
TIFFReadDirectory: Warning, data/ms-denver.tif: unknown field with tag 33922 (0x8482) encountered.
TIFFReadDirectory: Warning, data/ms-denver.tif: unknown field with tag 34735 (0x87af) encountered.
TIFFReadDirectory: Warning, data/ms-denver.tif: unknown field with tag 34737 (0x87b1) encountered.
TIFF Directory at offset 0xcd6a
Image Width: 138 Image Length: 127
Resolution: 1, 1 (unitless)
Sample Format: unsigned integer
Compression Scheme: None
Photometric Interpretation: min-is-black
Extra Samples: 2<unspecified, unspecified>
Orientation: row 0 top, col 0 lhs
Planar Configuration: single image plane
Software: IMAGINE TIFF Support
Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved @(#)$RCSfile: etif.c $ $Revision: 220.127.116.11 $ $Date: 2002/01/14 13:57:53EST $
Now I want to read this file in MATLAB whose TIFF reader is limited to reading RGB and PALETTED images (that too only 8-bit and 16-bit). Thus it only reads the 1st band of this file.
I saw there is utility pal2rgb but is there something similar to min-is-black images to RGB interpretation?