Commit ce110d71 authored by Marcus D. Hanwell's avatar Marcus D. Hanwell

Fix bug with bad TIFF tag on char/short format

The writer only supports the writing of unsigned (the default),
change the volume to match the behavior of the single image. This
could be improved further in follow up commits if support for signed
types is needed.
parent b8076ad5
......@@ -358,11 +358,7 @@ void vtkTIFFWriter::WriteVolume(T* buffer)
TIFFSetField(tif, TIFFTAG_PREDICTOR, 2);
}
if (bitsPerSample == 8 || bitsPerSample == 16)
{
TIFFSetField(tif, TIFFTAG_SAMPLEFORMAT, SAMPLEFORMAT_INT);
}
else
if (bitsPerSample == 32)
{
TIFFSetField(tif, TIFFTAG_SAMPLEFORMAT, SAMPLEFORMAT_IEEEFP);
}
......
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