best downsampling method for DSLR photographs
-
- Posts: 1944
- Joined: 2010-08-28T11:16:00-07:00
- Authentication code: 8675308
- Location: Montreal, Canada
Re: best downsampling method for DSLR photographs
Bingo! For downsampling, Jinc-windowed Sinc 3-lobes sucks. The really really close (on paper) standard Lanczos does not suffer from the tone drift from hell.
P.S. No, that's not it. They all suffer the same way, and what's happening is that moire is changing our perception of tone. Where there are moire rings, we perceive things as being darker.
-filter Cosine (Cosine-windowed Sinc) -resize is just the same as Ginseng is just the same as Lanczos, basically.
P.S. No, that's not it. They all suffer the same way, and what's happening is that moire is changing our perception of tone. Where there are moire rings, we perceive things as being darker.
-filter Cosine (Cosine-windowed Sinc) -resize is just the same as Ginseng is just the same as Lanczos, basically.
-
- Posts: 1944
- Joined: 2010-08-28T11:16:00-07:00
- Authentication code: 8675308
- Location: Montreal, Canada
Re: best downsampling method for DSLR photographs
In the case of this fly test, the window function that does the best out of Jinc, Sinc and Cosine, is Cosine, by a minute amount (Welch too), strictly in terms of moire reduction.
That is, Cosine-windowed Sinc 3-lobe comes out on top for downsampling.
I'm going to have to have a second look at Cosine-windowed Sinc 3-lobe for upsampling, because in quantitative tests soon to be published by my student Adam Turcotte it's arguably the best 3-lobe method.
That is, Cosine-windowed Sinc 3-lobe comes out on top for downsampling.
I'm going to have to have a second look at Cosine-windowed Sinc 3-lobe for upsampling, because in quantitative tests soon to be published by my student Adam Turcotte it's arguably the best 3-lobe method.
Last edited by NicolasRobidoux on 2012-09-20T17:19:13-07:00, edited 2 times in total.
-
- Posts: 1944
- Joined: 2010-08-28T11:16:00-07:00
- Authentication code: 8675308
- Location: Montreal, Canada
Re: best downsampling method for DSLR photographs
OK: Looking at the backpack results, it's easy to see what's going on:
Ginseng has noticeably less second halo than Cosine and Welch, and about the same as Lanczos. So, it's a trade-off between a minute amount of additional antialiasing and a significant increase in the second halo.
-----
I think I'll stick to Ginseng.
Ginseng has noticeably less second halo than Cosine and Welch, and about the same as Lanczos. So, it's a trade-off between a minute amount of additional antialiasing and a significant increase in the second halo.
-----
I think I'll stick to Ginseng.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: best downsampling method for DSLR photographs
What is a Cub-grange filter? What makes it special? And why this name? Is it related to Lagrange in some way?henrywho wrote:EWA Catrom, "Cub-grange" (cubic @ c=0.4846)
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: best downsampling method for DSLR photographs
Perhaps the morie with the fly image can be minimised using a LAB scheme, as it separates colors from intensity.
However a 'linear light' version of the Intensity (L) channel may be helpful.
That is a sort of special linear-LAB colorspace.
However a 'linear light' version of the Intensity (L) channel may be helpful.
That is a sort of special linear-LAB colorspace.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
-
- Posts: 1944
- Joined: 2010-08-28T11:16:00-07:00
- Authentication code: 8675308
- Location: Montreal, Canada
Re: best downsampling method for DSLR photographs
This is something Henry HO put together. If I understand, when the image is "natural", it mimicks the EWA Lagrange when downsampling. My guess is that it isanthony wrote:What is a Cub-grange filter? What makes it special? And why this name? Is it related to Lagrange in some way?henrywho wrote:EWA Catrom, "Cub-grange" (cubic @ c=0.4846)
Code: Select all
convert {input} -filter Cubic -define filter:C=.4846 -distort Resize 20% {output}
-
- Posts: 1944
- Joined: 2010-08-28T11:16:00-07:00
- Authentication code: 8675308
- Location: Montreal, Canada
Re: best downsampling method for DSLR photographs
@Anthony: Our eyes have different resolution with colour and intensity, so in principle it makes sense to do something different with each.
Whether this means applying the filter to linear intensity but not linear hue or whatever, or applying a different filter to each component, I don't know.
Whether this means applying the filter to linear intensity but not linear hue or whatever, or applying a different filter to each component, I don't know.
-
- Posts: 1944
- Joined: 2010-08-28T11:16:00-07:00
- Authentication code: 8675308
- Location: Montreal, Canada
Re: best downsampling method for DSLR photographs
@Anthony:
Ginseng on the fly through LAB is a disaster: The eyes turn to rust.
Ginseng on the fly through LAB is a disaster: The eyes turn to rust.
Last edited by NicolasRobidoux on 2012-09-20T18:08:28-07:00, edited 1 time in total.
-
- Posts: 1944
- Joined: 2010-08-28T11:16:00-07:00
- Authentication code: 8675308
- Location: Montreal, Canada
Re: best downsampling method for DSLR photographs
The backpack and the fly are "nightmare" test images for downsampling, which makes them very very good for this very reason
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: best downsampling method for DSLR photographs
Perhaps without a perceptual Lightness. but a linear intensity?NicolasRobidoux wrote:@Anthony:
Ginseng on the fly through LAB is a disaster: The eyes turn to rust.
Make need a bit of mix and matching of color channels from 'Gray' and 'Lab' L channel to get this right.
Just an idea, as a linear-LAB colorspace.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
-
- Posts: 1944
- Joined: 2010-08-28T11:16:00-07:00
- Authentication code: 8675308
- Location: Montreal, Canada
Re: best downsampling method for DSLR photographs
@Anthony:
I understood, but I did not make clear that I understood.
And yes, I've not tried what you, specifically, suggest.
I understood, but I did not make clear that I understood.
And yes, I've not tried what you, specifically, suggest.
-
- Posts: 1944
- Joined: 2010-08-28T11:16:00-07:00
- Authentication code: 8675308
- Location: Montreal, Canada
Re: best downsampling method for DSLR photographs
I must say that, except for "special effects", I may have finally joined the "linear light only for downsampling" camp.
-
- Posts: 1944
- Joined: 2010-08-28T11:16:00-07:00
- Authentication code: 8675308
- Location: Montreal, Canada
Re: best downsampling method for DSLR photographs
I am also pretty close to bringing linear light -resize Mitchell near the top of the list when downsampling, with linear light EWA Robidoux close behind if one wants a bit more sharpness.
Re: best downsampling method for DSLR photographs
The moire pattern of the Fly is my second concern.
My first concern is the change in overall brightness (i.e., de-focus my eyes and watch the compound eyes). Yet, unless we have a well-tuned monitor, it is impossible to detect judge whether there is any real brightness change.
My first concern is the change in overall brightness (i.e., de-focus my eyes and watch the compound eyes). Yet, unless we have a well-tuned monitor, it is impossible to detect judge whether there is any real brightness change.
-
- Posts: 1944
- Joined: 2010-08-28T11:16:00-07:00
- Authentication code: 8675308
- Location: Montreal, Canada
Re: best downsampling method for DSLR photographs
@Henry:
This is why I may, at some point, use image difference metrics applied to the result of blurring the image slightly (like CMC 1:1).
But now, it's clear that moire is a problem, whether or not it affects the perceptual brightness.
This is why I may, at some point, use image difference metrics applied to the result of blurring the image slightly (like CMC 1:1).
But now, it's clear that moire is a problem, whether or not it affects the perceptual brightness.