tiff与GROUP4组合时,黑白图像不反色
This commit is contained in:
parent
1b5f51516f
commit
64d1e9b2ec
|
@ -1443,7 +1443,7 @@ namespace hg_imgproc
|
||||||
bool tiff = conv->dst.fmt.img_format == SANE_IMAGE_TYPE_TIFF;
|
bool tiff = conv->dst.fmt.img_format == SANE_IMAGE_TYPE_TIFF;
|
||||||
int resolution = bih.biXPelsPerMeter / 39.37f + .5f,
|
int resolution = bih.biXPelsPerMeter / 39.37f + .5f,
|
||||||
threshold = (int)(long)conv->dst.fmt.compress.detail;
|
threshold = (int)(long)conv->dst.fmt.compress.detail;
|
||||||
cv::Mat imsg = from_bmp_file_bits(bih, data->data(), tiff || conv->dst.fmt.img_format == SANE_IMAGE_TYPE_JFIF, tiff);
|
cv::Mat imsg = from_bmp_file_bits(bih, data->data(), tiff || conv->dst.fmt.img_format == SANE_IMAGE_TYPE_JFIF, tiff && conv->dst.fmt.compress.compression != SANE_COMPRESSION_GROUP4);
|
||||||
data.reset();
|
data.reset();
|
||||||
if (tiff)
|
if (tiff)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue