mirror of
https://github.com/CTCaer/waifu2x-caffe.git
synced 2025-02-18 17:08:05 +00:00
2の階乗サイズ以外のサイズの拡大率の場合の画質を改善(縮小アルゴリズムを変更)
This commit is contained in:
parent
52eedcc8b9
commit
4168ffacaa
@ -1682,7 +1682,7 @@ Waifu2x::eWaifu2xError Waifu2x::AfterReconstructFloatMatProcess(const bool isRec
|
||||
{
|
||||
const cv::Size_<int> ns(image_size.width * shrinkRatio, image_size.height * shrinkRatio);
|
||||
if (image_size.width != ns.width || image_size.height != ns.height)
|
||||
cv::resize(process_image, process_image, ns, 0.0, 0.0, cv::INTER_LINEAR);
|
||||
cv::resize(process_image, process_image, ns, 0.0, 0.0, cv::INTER_CUBIC);
|
||||
}
|
||||
|
||||
// 値を0~1にクリッピング
|
||||
|
Loading…
x
Reference in New Issue
Block a user