From Ralf Kern, "the attached color mapped TIFF file klink1_l.tif is incorrectly read as
GL_LUMINANCE data instead of GL_RGB data. You can easily check with "osgViewer --image klink1_l.tif". The bug is in ReaderWriterTIFF.cpp function simage_tiff_load, where numComponents_ret is incorrectly set to 1 instead of 3 for color mapped data."
This commit is contained in:
@@ -616,7 +616,11 @@ simage_tiff_load(std::istream& fin,
|
||||
}
|
||||
width_ret = width;
|
||||
height_ret = height;
|
||||
numComponents_ret = samplesperpixel;
|
||||
if (photometric == PHOTOMETRIC_PALETTE)
|
||||
numComponents_ret = format;
|
||||
else
|
||||
numComponents_ret = samplesperpixel;
|
||||
|
||||
return buffer;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user