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);