TIFF I/O - use scanline
to read stripped
grey for now.
This commit is contained in:
parent
5d48d98697
commit
e62bf6e18f
1 changed files with 7 additions and 6 deletions
|
@ -399,12 +399,13 @@ image_any tiff_reader<T>::read_any_gray(std::size_t x0, std::size_t y0, std::siz
|
|||
read_tiled<image_type>(x0, y0, data);
|
||||
return image_any(std::move(data));
|
||||
}
|
||||
else if (read_method_ == stripped)
|
||||
{
|
||||
image_type data(width, height);
|
||||
read_stripped<image_type>(x0, y0, data);
|
||||
return image_any(std::move(data));
|
||||
}
|
||||
// TODO: temp disable and default to `scanline` method for stripped images.
|
||||
//else if (read_method_ == stripped)
|
||||
//{
|
||||
// image_type data(width, height);
|
||||
// read_stripped<image_type>(x0, y0, data);
|
||||
// return image_any(std::move(data));
|
||||
//}
|
||||
else
|
||||
{
|
||||
TIFF* tif = open(stream_);
|
||||
|
|
Loading…
Reference in a new issue