From 1f9fac6890580cf270b0704cc4b07597339043b1 Mon Sep 17 00:00:00 2001 From: yangjiaxuan <171295266@qq.com> Date: Tue, 20 Jun 2023 18:41:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4cis=E5=8E=9F=E5=9B=BE?= =?UTF-8?q?=E5=88=9D=E6=A3=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hgdriver/hgdev/image_process.cpp | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/hgdriver/hgdev/image_process.cpp b/hgdriver/hgdev/image_process.cpp index 8a53949..a660b00 100644 --- a/hgdriver/hgdev/image_process.cpp +++ b/hgdriver/hgdev/image_process.cpp @@ -532,14 +532,21 @@ namespace hg_imgproc fillhole1(Temp_mat, top, low, left, right); VLOG_MINI_2(LOG_LEVEL_DEBUG_INFO, "Remove hole is '%s',Hole image buffer size is:%d\n", !Temp_mat.empty() ? "enable" : "close", Temp_mat.size()); - - if (img_conf_.is_duplex) + if (param_.cis_image) { - mats_.push_back(img_conf_.is_switchfrontback ? Temp_mat[1] : Temp_mat[0]); - mats_.push_back(img_conf_.is_switchfrontback ? Temp_mat[0] : Temp_mat[1]); + mats_ = Temp_mat; } else - mats_.push_back(Temp_mat[0]); + { + if (img_conf_.is_duplex) + { + mats_.push_back(img_conf_.is_switchfrontback ? Temp_mat[1] : Temp_mat[0]); + mats_.push_back(img_conf_.is_switchfrontback ? Temp_mat[0] : Temp_mat[1]); + } + else + mats_.push_back(Temp_mat[0]); + } + } else {