相关疑难解决方法(0)

PIL中的ANTIALIAS与BICUBIC(Python图像库)?

我正在使用PIL来调整我的图像大小,我的情况是扩大原始图像.

我对使用`resample = ANTIALIAS'的算法感到困惑.

根据下面的文件,ANTIALIAS在缩小规模时似乎是最好的.我想知道在哪种情况下可以BICUBIC获胜?(我的一些测试案例显示双三次更好的选择)

An optional resampling filter. 
  This can be one of NEAREST (use nearest neighbour), 
  BILINEAR (linear interpolation in a 2x2 environment), 
  BICUBIC (cubic spline interpolation in a 4x4 environment), 
  or ANTIALIAS (a high-quality downsampling filter). 
If omitted, or if the image has mode “1” or “P”, it is set NEAREST.
Run Code Online (Sandbox Code Playgroud)

我也感到困惑了linear interpolation in a 2x2 environment,并cubic spline interpolation in a 4x4 environment在文档中.这是什么意思?

谢谢.

python interpolation image image-processing python-imaging-library

6
推荐指数
2
解决办法
7501
查看次数