mirror of
https://github.com/lltcggie/waifu2x-caffe.git
synced 2025-06-26 21:52:49 +00:00
テスト用コードが紛れていたバグを修正
This commit is contained in:
parent
38a5ff7f44
commit
98e2567d07
@ -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<cv::Mat> 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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user