167 points · by BoingBoomTschak · 2y ago · 37 comments
I find such a test strange and irrelevant, though.
It works well because, as stated, the kernel does a good job rejecting frequencies prone to aliasing. So, in particular, you don't get any real quality loss from doing 2x scale changes as opposed to bigger steps (and thus considerably larger FIR support).
I have some Python notebooks with some of these results, haven't gotten around to publishing them yet.
The (2D) Lanczos downsizing can be done with only four samples using the bilinear sampling tricks that you mention, and I avoided expensive trigonometric functions, divisions, and the singularity at 0 by using an even 8th order polynomial approximation. I would be curious to see the results using this kernel, but the Lanczos is so far the best that I've tried.
Loading a Progressive JPEG means you still unconditionally load the entire file, you just are able to show a low detail version before it is fully loaded. The last time I saw a progressive JPEG actually take time to load was when I had dialup.
2. The OPs JPEG-Clear proposal [1] also loads the entire file no matter what. It's literally just a reinvention of progressive JPEGs, presenting it as something novel.
So, basically the reason why this works better than other visually similar filters is that it happens to satify the Nyquist ISI criterion[1].
This is basically a slightly different gaussian kernel and the "incredible results" of a small image becoming a larger resolution blurry image is completely normal.
Also you don't want negative lobes in image kernels no matter how theoretically ideal it is, because it will give you ringing artifacts.
If you work with image kernels / reconstruction filters long enough you will eventually learn that 90% of the time you want a gauss kernel.
Strongly disagree, and my commercial software is known for its high image quality and antialiasing. Gaussian is way too blurry unless you're rendering for film.
Essentially it uses a truncated isotropic (non-separable) Gaussian defined by exp(-2.0 * (x*x + y*y)) with a 2x2 pixel support [3], which is slightly soft and completely avoids ringing.
Gaussian also plays very nicely with filtered importance sampling [4] since it has no negative lobes.
(Though I remember a number of studios using RenderMan preferring filters with a bit of sharpening.)
[1] https://paulbourke.net/dataformats/rib/RISpec3_2.pdf#page=40
[2] https://rmanwiki-26.pixar.com/space/REN26/19661819/Filtering
[3] https://paulbourke.net/dataformats/rib/RISpec3_2.pdf#page=20...
[4] https://citeseerx.ist.psu.edu/document?repid=rep1&type=pdf&d...
The aliasing you can end up with from a mitchell filter though can be noticeable all through the process. Not only that, but what will the compositor do when they see the aliasing? They'll blur it.
Basically it is trying to squeeze blood from a stone and the image out of renderer is going to be far sharper than anyone will see because it will go through multiple stages. Even compositing almost never leaves a render verbatim. There is usually some sort of slight softening, chromatic aberration, lens distortion and/or other transforms that require resampling anyway.
It is picking up pennies in front of a bulldozer and only causes problems to have a filter that's too sharp, let alone one that has negative lobes.