Lanczos Resampling error
问题 I have written an image resizer using Lanczos re-sampling. I've taken the implementation straight from the directions on wikipedia. The results look good visually, but for some reason it does not match the result from Matlab's resize with Lanczos very well (in pixel error). Does anybody see any errors? This is not my area of expertise at all... Here is my filter (I'm using Lanczos3 by default): double lanczos_size_ = 3.0; inline double sinc(double x) { double pi = 3.1415926; x = (x * pi); if