From 98e2567d078671806903b7b8162640efde6ee182 Mon Sep 17 00:00:00 2001 From: lltcggie Date: Sat, 7 May 2016 06:06:56 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E7=94=A8=E3=82=B3?= =?UTF-8?q?=E3=83=BC=E3=83=89=E3=81=8C=E7=B4=9B=E3=82=8C=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=81=9F=E3=83=90=E3=82=B0=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/waifu2x.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/common/waifu2x.cpp b/common/waifu2x.cpp index 06cb124..6580f58 100644 --- a/common/waifu2x.cpp +++ b/common/waifu2x.cpp @@ -1925,13 +1925,6 @@ Waifu2x::eWaifu2xError Waifu2x::waifu2xConvetedMat(const bool isJpeg, const cv:: const double max_val = GetValumeMaxFromCVDepth(cv_depth); const double eps = GetEPS(cv_depth); - { - std::vector planes; - cv::split(process_image, planes); - float *ptr = (float *)planes[3].data; - planes[0].release(); - } - cv::Mat write_iamge; if (output_depth != 32) // 出力がfloat形式なら変換しない process_image.convertTo(write_iamge, cv_depth, max_val, eps);