forked from: Lanczos Resampling

