テスト用コードが紛れていたバグを修正

This commit is contained in:
lltcggie 2016-05-07 06:06:56 +09:00
parent 38a5ff7f44
commit 98e2567d07

View File

@ -1925,13 +1925,6 @@ Waifu2x::eWaifu2xError Waifu2x::waifu2xConvetedMat(const bool isJpeg, const cv::
const double max_val = GetValumeMaxFromCVDepth(cv_depth); const double max_val = GetValumeMaxFromCVDepth(cv_depth);
const double eps = GetEPS(cv_depth); const double eps = GetEPS(cv_depth);
{
std::vector<cv::Mat> planes;
cv::split(process_image, planes);
float *ptr = (float *)planes[3].data;
planes[0].release();
}
cv::Mat write_iamge; cv::Mat write_iamge;
if (output_depth != 32) // 出力がfloat形式なら変換しない if (output_depth != 32) // 出力がfloat形式なら変換しない
process_image.convertTo(write_iamge, cv_depth, max_val, eps); process_image.convertTo(write_iamge, cv_depth, max_val, eps);