"Sigmoidal" minimization of resampling filter haloing & blur
-
- Posts: 1944
- Joined: 2010-08-28T11:16:00-07:00
- Authentication code: 8675308
- Location: Montreal, Canada
Re: "Sigmoidal" minimization of resampling filter haloing
This test image:
-
- Posts: 1944
- Joined: 2010-08-28T11:16:00-07:00
- Authentication code: 8675308
- Location: Montreal, Canada
Re: "Sigmoidal" minimization of resampling filter haloing
For orthogonal Lanczos (3-lobe), the contrast that satisfies the criterion is just under 19.22396. Which, I must say, is in the neighbourhood I like according to the "eyeball metric".
-
- Posts: 1944
- Joined: 2010-08-28T11:16:00-07:00
- Authentication code: 8675308
- Location: Montreal, Canada
Re: "Sigmoidal" minimization of resampling filter haloing
Henry: I'll have to redo the downsampling tests with the newly fixed sigmoidal-contrast code. (IM7 is closest to fixed, and the fix is not complete for orthogonal resize methods with negative lobes.) Other things to do for a while.
Re: "Sigmoidal" minimization of resampling filter haloing
Remember to include this test case: http://www.4p8.com/eric.brasseur/gamma_ ... a_gray.zipNicolasRobidoux wrote:Henry: I'll have to redo the downsampling tests with the newly fixed sigmoidal-contrast code. (IM7 is closest to fixed, and the fix is not complete for orthogonal resize methods with negative lobes.) Other things to do for a while.
-
- Posts: 1944
- Joined: 2010-08-28T11:16:00-07:00
- Authentication code: 8675308
- Location: Montreal, Canada
Re: "Sigmoidal" minimization of resampling filter haloing
Henry: "Brasseur test" conclusion: stick to linear light when downsampling.
Re: "Sigmoidal" minimization of resampling filter haloing
Seems LUV works very well in Brasseur-Dalai test:NicolasRobidoux wrote:Henry: "Brasseur test" conclusion: stick to linear light when downsampling.
Code: Select all
convert gamma_dalai_lama_gray_tft.jpg -distort resize 50% -quality 95% -sampling-factor 1:1:1 dal_tft.jpg
convert gamma_dalai_lama_gray_tft.jpg -set colorspace sRGB -colorspace RGB -distort resize 50% -colorspace sRGB -quality 95% -sampling-factor 1:1:1 dal_tft_rgb.jpg
convert gamma_dalai_lama_gray_tft.jpg -set colorspace sRGB -colorspace LUV -distort resize 50% -colorspace sRGB -quality 95% -sampling-factor 1:1:1 dal_tft_luv.jpg
convert gamma_dalai_lama_gray_tft.jpg -set colorspace sRGB -colorspace LAB -distort resize 50% -colorspace sRGB -quality 95% -sampling-factor 1:1:1 dal_tft_lab.jpg
-
- Posts: 1944
- Joined: 2010-08-28T11:16:00-07:00
- Authentication code: 8675308
- Location: Montreal, Canada
Re: "Sigmoidal" minimization of resampling filter haloing &
Henry: Thank you.
-----
I wonder how much these contrived tests really tell us.
-----
I wonder how much these contrived tests really tell us.
Re: "Sigmoidal" minimization of resampling filter haloing &
Sorry being off-topic. Actually I should have posted in another thread where Anthony talks about LAB and LUV.NicolasRobidoux wrote:I wonder how much these contrived tests really tell us.
Even if they are too harsh sometimes, these contrived tests do help revealing abnormality. For example, the LUV-downsize above produces color dots (ring) and blue strip (SR). I guess there are some problems in the LUV codes.
-
- Posts: 1944
- Joined: 2010-08-28T11:16:00-07:00
- Authentication code: 8675308
- Location: Montreal, Canada
Re: "Sigmoidal" minimization of resampling filter haloing &
Henry: No apologies please. I truly appreciate.
My "contrived" musing has to do with the "Brasseur" tests, not yours.
It's just that there are all sorts of artifacts that show up when resampling, and I wonder if these particular ones truly are so important. (I do think they are, but I nonetheless wonder.)
-----
I am convinced that linear light is "it" when downsampling. But I am not certain.
My "contrived" musing has to do with the "Brasseur" tests, not yours.
It's just that there are all sorts of artifacts that show up when resampling, and I wonder if these particular ones truly are so important. (I do think they are, but I nonetheless wonder.)
-----
I am convinced that linear light is "it" when downsampling. But I am not certain.
Re: "Sigmoidal" minimization of resampling filter haloing &
Me neither, especially after Anthony's comment that while linear RGB's intensity is linear, its colors are not.NicolasRobidoux wrote:I am convinced that linear light is "it" when downsampling. But I am not certain.
-
- Posts: 1944
- Joined: 2010-08-28T11:16:00-07:00
- Authentication code: 8675308
- Location: Montreal, Canada
Re: "Sigmoidal" minimization of resampling filter haloing &
Tensor (orthogonal) Cosine and Welch (spelled Welsh in IM) windowed Sincs work really well with sigmoidization (only checked 3 lobes). They could be better than Lanczos 3.
P.S. Tensor Jinc-windowed Sinc is also good. (!)
P.S. Tensor Jinc-windowed Sinc is also good. (!)
Last edited by NicolasRobidoux on 2012-08-13T12:58:48-07:00, edited 1 time in total.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: "Sigmoidal" minimization of resampling filter haloing &
Are you saying that you tried Lanczos 3 and find it not doing so well or that you suspect that Lanczos 3 might work better than the other two windows?They could be better than Lanczos 3.
-
- Posts: 1944
- Joined: 2010-08-28T11:16:00-07:00
- Authentication code: 8675308
- Location: Montreal, Canada
Re: "Sigmoidal" minimization of resampling filter haloing &
What I'm saying is that, since sigmoidization takes care of overbearing halos, I can use less dampening windowing functions than Sinc (which gives Lanczos), like Cosine, Welch and Jinc. Using a window function that does not decay as fast when approaching 1 means that I'm using something which is "closer" to unwindowed Sinc. It looks like the latter (Cosine-, Welch- and Jinc-windowed Sinc) work better than the former (Lanczos = Sinc-windowed Sinc). But this is, of course, very preliminary. And I only looked at 3-lobe, for exampleClearer?
P.S. Even though there is no theoretical reason for this being good, windowing orthogonal Sinc with Jinc really seems to work well. It's slightly less jaggy, but I can't see more haloing (in my limited tests). Cosine- and Welch-windowed Sincs are also less jaggy, but they are more halo-y.
Code: Select all
magick input_small.png -set colorspace sRGB -colorspace RGB +sigmoidal-contrast 25,50% -define filter:filter=Sinc -define filter:window=Jinc -resize 1600% -sigmoidal-contrast 25,50% -colorspace sRGB oSincJinc3.25.png
P.S. Even though there is no theoretical reason for this being good, windowing orthogonal Sinc with Jinc really seems to work well. It's slightly less jaggy, but I can't see more haloing (in my limited tests). Cosine- and Welch-windowed Sincs are also less jaggy, but they are more halo-y.
-
- Posts: 1944
- Joined: 2010-08-28T11:16:00-07:00
- Authentication code: 8675308
- Location: Montreal, Canada
Re: "Sigmoidal" minimization of resampling filter haloing &
Warning: The differences will not jump at you. In the "chip" test image, it's the letter P that tells the most obvious story.
Also: I did not try Cosine and Welch at random: They rank above Lanczos in Adam's reconstruction tests.
Also: I did not try Cosine and Welch at random: They rank above Lanczos in Adam's reconstruction tests.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: "Sigmoidal" minimization of resampling filter haloing &
Yes, thanks. I believe that you are saying that you tried Lanczos 3 and believe the Welch and Cosine may be a bit better. Is that correct?Clearer?