From Paul Palumbo, "This change seems to fix a problem reading 32-bit Floating point tiff images. Without this fix, I'm only getting half my image displayed in "osgviewer --image"."
This commit is contained in:
@@ -665,7 +665,7 @@ simage_tiff_load(std::istream& fin,
|
||||
tifferror = ERR_READ;
|
||||
break;
|
||||
}
|
||||
invert_row(currPtr, inbuf, w, photometric == PHOTOMETRIC_MINISWHITE, bitspersample);
|
||||
invert_row(currPtr, inbuf, samplesperpixel*w, photometric == PHOTOMETRIC_MINISWHITE, bitspersample);
|
||||
currPtr -= format*w;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user