Page 14 of 19

Re: best downsampling method for DSLR photographs

Posted: 2012-09-19T06:30:31-07:00
by NicolasRobidoux
And yes, EWA Lanczos2Sharpest is a very good scheme, considering that it's 2-lobe, and consequently does not have the "bounceback" halo:
Image
More moire prone, however.
Code:

Code: Select all

magick BackPack.jpg -colorspace RGB -filter Lanczos -define filter:blur=0.88826421508540347 -distort resize 1200x1200 -colorspace sRGB EWALanczos2Sharpest.0.png
When I have some time, I'll revisit the fly.

Re: best downsampling method for DSLR photographs

Posted: 2012-09-19T07:31:02-07:00
by NicolasRobidoux
@Henry:
I can perceive a slight difference in shine with linear RGB EWA LanczosSharp, but I can't with linear RGB Ginseng and linear RGB Lanczos2Sharpest.
It's almost as if the scheme has to be sufficiently nearest neighbour like to put the right amount of "noise" in the texture.
Also, Ginseng has slightly tighter haloing than LanczosSharp (but of course Lanczos2Sharpest has no second halo, ever).
Comments?

Re: best downsampling method for DSLR photographs

Posted: 2012-09-19T22:34:22-07:00
by henrywho
From the zipper on the left, I think Ginseng3 and EWA-LanczosSharp have similar "sharpness", but then from the backpack surface, EWA-LanczosSharp have less "noise".

For "Fly", I found something strange. On down-sampling to 403x600, Ginseng3 is making the compound eyes looking "brighter" (in contrast, EWA-Lagrange/Catrom is making it "darker"). Perhaps its "bounce-back" light halos are too strong (while EWA Lagrange's 1st-strike dark halos are too strong). Ginseng2 and Lanczos2VerySharp are safe though.

Aren't we pushing the limits (which have contradicting objectives) too much?

Re: best downsampling method for DSLR photographs

Posted: 2012-09-20T04:19:34-07:00
by NicolasRobidoux
@Henry:
To get an idea of the tonal look, I compare with the result of -filter Triangle -resize, or occasionnally with nearest neighbour (-filter Point). Imperfect, but probably good enough.
-----
So, what I learned from you is that negative lobes can affect local colour when there is a complex texture. They don't only add annoying haloing/not so annoying acutance (in addition to locally smoothing/sharpening features).
-----
I agree that we are playing close to the zero sum. But if we succeed in classifying schemes w.r.t. artifacts, then we can produce a How To that tells people how to dial in or out certain artifacts, with a summary of what it costs.
-----
I'm starting to wonder if the EWA BC-splines (Robidoux & RobidouxSharp) may be better at preserving "tone", given that they are close to being "first order accurate", which means that they preserve affine gradients. Same with the good ol' -resize Mitchell.
The tricky thing, it appears, is not to let artificial moire through at the same time.
(Warning: Don't let me wear you out. I've done this to grad students, but they get a degree out of it at the end.)

Re: best downsampling method for DSLR photographs

Posted: 2012-09-20T05:01:31-07:00
by NicolasRobidoux
My guess is that the brightness change can be attributed to the tensor windowed-Sincs not being as good low pass filters as the EWA ones.

Re: best downsampling method for DSLR photographs

Posted: 2012-09-20T05:43:33-07:00
by NicolasRobidoux
When I have some time, I'll compare local linear light averages using one of the CMC colour tolerance "metrics".

Re: best downsampling method for DSLR photographs

Posted: 2012-09-20T06:02:47-07:00
by NicolasRobidoux
When it's there, I can't stand Moire. Which is why EWA Robidoux and RobidouxSharp and Mitchell and the like (and of course EWA Catrom) will never be at the top of my list.

Re: best downsampling method for DSLR photographs

Posted: 2012-09-20T06:41:17-07:00
by NicolasRobidoux
@Henry: Just to make sure: Always go through linear light when downsampling (unless you want "special halo effects", of course), and if using a tensor filter with negative lobes (e.g. Ginseng) with -resize, make sure you use an HDRI version of ImageMagick. Otherwise the colour drift and/or moire and/or jaggies may come from the between orthogonal passes clipping.

Re: best downsampling method for DSLR photographs

Posted: 2012-09-20T06:49:16-07:00
by NicolasRobidoux
@Henry: I see what you mean. The fly is AWFUL with linear light Ginseng!
The eyes completely change character.
Moire from hell too :(

Re: best downsampling method for DSLR photographs

Posted: 2012-09-20T07:00:01-07:00
by NicolasRobidoux
... but EWA Triangle gives a pretty nice halo free result:
Image
Tolerable moire.

Code: Select all

magick original.jpg -colorspace RGB -filter Triangle -distort resize 403x600 -colorspace sRGB fly.EWATriangle.0.png
The backpack looks pretty good too (too much moire, though). And of course, plain -filter Triangle -resize looks almost the same and is fast.
Image
EWA Quadratic and tensor Quadratic bring the moire down to an acceptable level and of course are very slightly more blurry. I'll show EWA Quadratic in my next post.
Grrr! This is confusing.

Re: best downsampling method for DSLR photographs

Posted: 2012-09-20T07:11:33-07:00
by NicolasRobidoux
EWA Lanczos Radius 3 also has too much moire on the fly.
EWA LanczosSharp is less affected, but it still has too much in my book.
Is this because the original is JPEG compressed and sharpened?

Re: best downsampling method for DSLR photographs

Posted: 2012-09-20T07:28:08-07:00
by NicolasRobidoux
So, which schemes appears to be left somewhat unscathed after being put through the "fly" downsampling test? -resize Mitchell and -distort resize Robidoux!
I'll look some more but the fly is deadly.
EWA LanczosSharp was not maimed too badly. And monotone methods (tensor and EWA Triangle, tensor and EWA Quadratic) do well on the fly.
I could probably kill the moire using more lobes than 3 with windowed methods, but I don't like to do that in general.

Re: best downsampling method for DSLR photographs

Posted: 2012-09-20T08:24:52-07:00
by NicolasRobidoux
As promised, the results with EWA Quadratic:
Image
Image
Almost moire free and totally halo free (of course), but definitely not as sharp.
P.S. It's really too dull.

Re: best downsampling method for DSLR photographs

Posted: 2012-09-20T13:06:02-07:00
by NicolasRobidoux
I'm going to have to redo my downsampling recommendations.
-----
Something very interesting: EWA LanczosSharp has noticeably less moire with the fly than EWA Lanczos. \o/
P.S. This is false: I had miscomputed the EWA Lanczos result. It's really hard to see the difference. /o\
Of all my fancy somewhat sharp schemes, EWA LanczosSharp appears to be the one that best survives the fly downsampling test.
Here are the results with linear RGB EWA LanczosSharp:
Image
Image

Re: best downsampling method for DSLR photographs

Posted: 2012-09-20T13:12:36-07:00
by NicolasRobidoux
Plain -filter Mitchell -resize, although a bit soft, does really well too:
Image
Image
EWA Robidoux is almost the same: A bit sharper, a bit more (mild) halo, a bit more moire:
Image
Image
Visa and Mastercard.
-----
Warning: You may want to download when comparing. Firefox, for example, adds its own "banding" artifacts to some images. These artifacts are not there with Chromium. (The Mozilla Foundation has no image processing expert on staff and it shows.)