#2408 patch apply (see pull request at https://github.com/Itseez/opencv/pull/33)
This commit is contained in:
parent
43e3b83832
commit
bd4620f04e
@ -197,12 +197,14 @@ bool TiffDecoder::readData( Mat& img )
|
||||
}
|
||||
}
|
||||
|
||||
if( (!is_tiled &&
|
||||
TIFFGetField( tif, TIFFTAG_ROWSPERSTRIP, &tile_height0 )) ||
|
||||
if( (!is_tiled) ||
|
||||
(is_tiled &&
|
||||
TIFFGetField( tif, TIFFTAG_TILEWIDTH, &tile_width0 ) &&
|
||||
TIFFGetField( tif, TIFFTAG_TILELENGTH, &tile_height0 )))
|
||||
{
|
||||
if(!is_tiled)
|
||||
TIFFGetField( tif, TIFFTAG_ROWSPERSTRIP, &tile_height0 );
|
||||
|
||||
if( tile_width0 <= 0 )
|
||||
tile_width0 = m_width;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user