From 4b21788fcd7257e2c7d18ac164215f8eeff26108 Mon Sep 17 00:00:00 2001 From: lltcggie Date: Thu, 19 Nov 2015 02:36:24 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E3=82=B3=E3=83=BC?= =?UTF-8?q?=E3=83=89=E3=81=8C=E6=B7=B7=E5=85=A5=E3=81=97=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=81=9F=E3=81=AE=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 | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/common/waifu2x.cpp b/common/waifu2x.cpp index dc6f058..c45fc4d 100644 --- a/common/waifu2x.cpp +++ b/common/waifu2x.cpp @@ -1239,25 +1239,21 @@ Waifu2x::eWaifu2xError Waifu2x::waifu2x(const std::string &input_file, const std { cv::Mat in(brfm.clone()); - cv::imwrite("0.png", in * 255.0); - const int rotateNum = i % 4; RotateClockwise90N(in, rotateNum); - cv::imwrite("1.png", in * 255.0); if(i >= 4) cv::flip(in, in, 1); // ] - cv::imwrite("2.png", in * 255.0); ret = ReconstructFloatMat(isJpeg, cancel_func, in, in); if (ret != eWaifu2xError_OK) return ret; - cv::imwrite("3.png", in * 255.0); + if (i >= 4) cv::flip(in, in, 1); // ] - cv::imwrite("4.png", in * 255.0); + RotateCounterclockwise90N(in, rotateNum); - cv::imwrite("5.png", in * 255.0); + ri[i] = in; }