Commit 4e7c865c authored by Manuel Grizonnet's avatar Manuel Grizonnet

Revert "BUG: mantis 1079 - Disable automatic color table interpretation to...

Revert "BUG: mantis 1079 - Disable automatic color table interpretation to support tiff coded on 1 bit"

This reverts commit 641b626f2f813485c46289877c0469d5a5dbef5e.
parent 996ed919
......@@ -1197,21 +1197,6 @@ void GDALImageIO::InternalReadImageInformation()
/* Color Table */
/* -------------------------------------------------------------------- */
// Mantis: 1049 : OTB does not handle tif with NBITS=1 properly
// When a palette is available and pixel type is Byte, the image is
// automatically read as a color image (using the palette). Perhaps this
// behaviour should be restricted. Comment color table interpretation in
// gdalimageio
// FIXME: Better support of color table in OTB
// - disable palette conversion in GDALImageIO (the comments in this part of
// the code are rather careful)
// - GDALImageIO should report the palette to ImageFileReader (as a metadata ?
// a kind of LUT ?).
// - ImageFileReader should use a kind of adapter filter to convert the mono
// image into color.
/*
for (int iBand = 0; iBand < dataset->GetRasterCount(); iBand++)
{
GDALColorTableH hTable;
......@@ -1253,10 +1238,8 @@ void GDALImageIO::InternalReadImageInformation()
this->SetNumberOfComponents(m_NbBands);
this->SetPixelType(VECTOR);
}
*/
// End of comments related to color table interpretation
// Read no data value if present
std::vector<bool> isNoDataAvailable(dataset->GetRasterCount(),false);
std::vector<double> noDataValues(dataset->GetRasterCount(),0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment