调整90度旋转 对折拆分互斥
This commit is contained in:
parent
79c90b0c8d
commit
04f183c2d6
|
@ -4877,6 +4877,11 @@ int hg_scanner::image_configuration(SCANCONF& ic)
|
|||
ic.fold_concatmode = fold_type_;
|
||||
ic.HsvFilterType = 0;//暂定为0
|
||||
ic.is_colorcast = color_correction_;
|
||||
if (ic.en_fold)
|
||||
{
|
||||
ic.splitImage = false;
|
||||
}
|
||||
|
||||
//多流输出优先级最高
|
||||
if (is_multiout)
|
||||
{
|
||||
|
|
|
@ -946,6 +946,13 @@ namespace hg_imgproc
|
|||
|
||||
Rotation.apply(mats,img_conf_.is_duplex);
|
||||
mats_ = mats;
|
||||
if (mats_.size() % 2 == 0
|
||||
&& ((CImageApplyRotation::RotationType)img_conf_.imageRotateDegree == CImageApplyRotation::RotationType::Rotate_90_clockwise
|
||||
|| (CImageApplyRotation::RotationType)img_conf_.imageRotateDegree == CImageApplyRotation::RotationType::Rotate_90_anti_clockwise))
|
||||
{
|
||||
cv::flip(mats_[1], mats_[1],0);
|
||||
cv::flip(mats_[1], mats_[1], 1);
|
||||
}
|
||||
|
||||
if (mats_.empty())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue