|
|
|
|
|
by chipsy
4862 days ago
|
|
The most useful thing I ever learned about interpolation was how it relates to resampling to different rates and the specific techniques used to perform resampling when dealing with the Nyquist limits. If you're removing samples, the biggest concern is whether the original signal has been bandlimited to the target rate, which can be achieved in the interpolator or by preparing the signal elsewhere. If you're adding samples, then the interpolation function is burdened with reconstruction and the avoidance of artifacts in the process. This tends to inevitably lead towards the use of windowed sinc. For this reason, scaling down images and raising the pitch of sound samples work out to be easier tasks than scaling up or lowering the pitch. Of course, for the application shown in the article, the use of interpolation is in a different realm entirely. |
|
Also, there is no inherent difference between upsampling and downsampling. Lowering the pitch of an audio sample is no harder than raising it, and in both cases you make the same tradeoff when designing the filter (aliasing, bandwidth, impulse response, and processing time).
The problem is with resizing images, because using the windowed sinc function makes the (incorrect) assumption that the desired result can be directly sampled from the band-limited input. The fact that we use Lanczos interpolation as the standard "high-quality" image interpolation algorithm shows that this assumption is false. (I should elaborate: Lanczos is still windowed sinc, but is subjectively better even though it has demonstrably higher amounts of aliasing than competing windows. Or rather, the assumption that is false is the assumption that the same priorities we use for designing filters for signal analysis can be used for resampling images.)