Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

双立方(三次)卷积插值好像不起作用 #1

Open
hggq opened this issue Jan 13, 2018 · 6 comments
Open

双立方(三次)卷积插值好像不起作用 #1

hggq opened this issue Jan 13, 2018 · 6 comments

Comments

@hggq
Copy link

hggq commented Jan 13, 2018

我用src/scale/bicubic2.js
里面bicubic 缩放,图像质量跟 src/scale/bilinear.js
一样的质量。
我用fireworks试原图,bilinear缩放质量也是一样,但是我换成bicubic smooth质量非常好

@dailc
Copy link
Owner

dailc commented Jan 13, 2018

有没有可以还原的图片以及对比呢?需要测试还原下才能确定原因。

@hggq
Copy link
Author

hggq commented Jan 13, 2018

是这样测的,我扫描一张文件,然后用程序缩放,发现和双线性插值缩放一样的质量,对比是我用fireworks对比,我用fireworks测很清晰,你要不试下,就是扫描一张A4纸

@hggq
Copy link
Author

hggq commented Jan 13, 2018

是不是参数设计有误,目前在看是什么原理,怎么做卷积的

@dailc
Copy link
Owner

dailc commented Jan 13, 2018

我测试了下,双立方和双线性差别比较大啊。你确定下最终的图片尺寸是对的么?

稍微试了下,没测试出来。。。我当初弄这个时整理过一篇文章的。

https://segmentfault.com/a/1190000012473439

@hggq
Copy link
Author

hggq commented Jan 13, 2018

我的是缩小 http://www.hggq.com/m/demo.html 下面有两张,小那张我用fireworks缩小,原图你下载后选择上传看看,是不是质量不相同

@dailc
Copy link
Owner

dailc commented Jan 13, 2018

我明天抽个时间详情检查下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants