mirror of
https://github.com/lltcggie/waifu2x-caffe.git
synced 2025-06-26 05:32:47 +00:00
コメント修正
This commit is contained in:
parent
cad223c7e5
commit
62c0f4bc71
@ -744,10 +744,6 @@ void stImage::DeconvertFromNetFormat(const int input_plane)
|
|||||||
|
|
||||||
void stImage::ShrinkImage(const Factor scale)
|
void stImage::ShrinkImage(const Factor scale)
|
||||||
{
|
{
|
||||||
// TODO: scale = 1.0 でも悪影響を及ぼさないか調べる
|
|
||||||
|
|
||||||
const int scaleBase = 2; // TODO: モデルの拡大率によって可変できるようにする
|
|
||||||
|
|
||||||
const auto Width = scale.MultiNumerator(mOrgSize.width);
|
const auto Width = scale.MultiNumerator(mOrgSize.width);
|
||||||
const auto Height = scale.MultiNumerator(mOrgSize.height);
|
const auto Height = scale.MultiNumerator(mOrgSize.height);
|
||||||
|
|
||||||
@ -765,8 +761,6 @@ void stImage::ShrinkImage(const Factor scale)
|
|||||||
|
|
||||||
void stImage::ShrinkImage(const int width, const int height)
|
void stImage::ShrinkImage(const int width, const int height)
|
||||||
{
|
{
|
||||||
// TODO: scale = 1.0 でも悪影響を及ぼさないか調べる
|
|
||||||
|
|
||||||
const cv::Size_<int> ns(width, height);
|
const cv::Size_<int> ns(width, height);
|
||||||
if (mEndImage.size().width != ns.width || mEndImage.size().height != ns.height)
|
if (mEndImage.size().width != ns.width || mEndImage.size().height != ns.height)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user