AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
January 2004

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2004.01.23 04:48 "How to convert MINISBLACK to PHOTOMETRIC_RGB", by Pushkar Pradhan
2004.01.23 05:15 "Re: How to convert MINISBLACK to PHOTOMETRIC_RGB", by Bob Friesenhahn
2004.01.23 07:39 "Re: How to convert MINISBLACK to PHOTOMETRIC_RGB", by Andrey Kiselev
2004.01.23 15:18 "Re: How to convert MINISBLACK to PHOTOMETRIC_RGB", by Bob Friesenhahn
2004.01.23 15:48 "Re: How to convert MINISBLACK to PHOTOMETRIC_RGB", by Frank Warmerdam
2004.01.23 15:57 "Re: How to convert MINISBLACK to PHOTOMETRIC_RGB", by Bob Friesenhahn
2004.01.23 16:44 "Re: How to convert MINISBLACK to PHOTOMETRIC_RGB", by Frank Warmerdam
2004.01.23 17:16 "Re: How to convert MINISBLACK to PHOTOMETRIC_RGB", by Joris Van Damme
2004.01.23 17:38 "Re: How to convert MINISBLACK to PHOTOMETRIC_RGB", by Frank Warmerdam
2004.01.23 17:57 "Re: How to convert MINISBLACK to PHOTOMETRIC_RGB", by Joris Van Damme
2004.01.23 18:55 "Re: How to convert MINISBLACK to PHOTOMETRIC_RGB", by Frank Warmerdam
2004.01.23 19:15 "Re: How to convert MINISBLACK to PHOTOMETRIC_RGB", by Joris Van Damme
2004.01.23 19:19 "Re: How to convert MINISBLACK to PHOTOMETRIC_RGB", by Bob Friesenhahn
2004.01.23 19:24 "Re: How to convert MINISBLACK to PHOTOMETRIC_RGB", by Frank Warmerdam
2004.01.23 20:12 "Re: How to convert MINISBLACK to PHOTOMETRIC_RGB", by Chris Cox
2004.01.23 20:30 "Re: How to convert MINISBLACK to PHOTOMETRIC_RGB", by Bob Friesenhahn
2004.01.23 20:52 "Re: How to convert MINISBLACK to PHOTOMETRIC_RGB", by Chris Cox
2004.01.23 19:15 "Re: How to convert MINISBLACK to PHOTOMETRIC_RGB", by Bob Friesenhahn
2004.01.23 20:17 "Re: How to convert MINISBLACK to PHOTOMETRIC_RGB", by Andy Cave
2004.01.23 18:59 "Re: How to convert MINISBLACK to PHOTOMETRIC_RGB", by Pushkar Pradhan
2004.01.23 20:29 "Re: How to convert MINISBLACK to PHOTOMETRIC_RGB", by Andrey Kiselev

2004.01.23 15:18 "Re: How to convert MINISBLACK to PHOTOMETRIC_RGB", by Bob Friesenhahn

On Fri, 23 Jan 2004, Andrey Kiselev wrote:

> On Thu, Jan 22, 2004 at 10:48:14PM -0600, 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:
> >   Bits/Sample: 8
> >   Sample Format: unsigned integer
> >   Compression Scheme: None
> >   Photometric Interpretation: min-is-black
> >   Extra Samples: 2<unspecified, unspecified>
> >   Orientation: row 0 top, col 0 lhs
> >   Samples/Pixel: 3
> > 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?
>
> You can rewrite such files using GDAL software. I have implemented
> Photometric setting as an option to the TIFF driver per your recent
> request. You can try to do something like:
>
> $ gdal_translate -of GTiff -co "PHOTOMETRIC=RGB" bad.tif good.tif

How does this treat the two extra samples?  Does it ignore them?

If only the normal gray channel is needed but expressed as RGB, you
can do the same in GraphicsMagick (or ImageMagick):

  gm convert -type TrueColor bad.tif good.tif

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen