diff --git a/Modules/IO/IOGDAL/src/otbGDALImageIO.cxx b/Modules/IO/IOGDAL/src/otbGDALImageIO.cxx index 35e00acd75aa58adef88aaff6719013af4d517a3..c06cdd83acf3bd09fd2cd55cedf2114258e950a2 100644 --- a/Modules/IO/IOGDAL/src/otbGDALImageIO.cxx +++ b/Modules/IO/IOGDAL/src/otbGDALImageIO.cxx @@ -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);