Page 3 of 4

Re: sigmoidized EWA (-distort resize) LanczosRadius3

Posted: 2012-09-16T10:55:32-07:00
by NicolasRobidoux
henrywho wrote:And some time ago I have tested downsizing of black and white texts with EWA lanczos3, catrom and lagrange. I remember that EWA lagrange produces dark halos more than white halos. Perhaps it's the reason I like it better.
Did you resample through linear light or straight sRGB?

Re: sigmoidized EWA (-distort resize) LanczosRadius3

Posted: 2012-09-16T11:04:15-07:00
by NicolasRobidoux
@Fred:
Here is one quick example of what sigmoidization does with tensor quadratic B-spline smoothing, which has no negative lobe:
Straight through sRGB:
Image
Sigmoidized, with contrast = 10.5 (just like recommended above):
Image
Through linear RGB:
Image
The code:

Code: Select all

magick input_small.png -colorspace RGB +sigmoidal-contrast 10.5 -filter Quadratic -resize 800% -sigmoidal-contrast 10.5 -colorspace sRGB dragon.Quadratic.Sig10p5.png
magick input_small.png -colorspace RGB -filter Quadratic -resize 800% -colorspace sRGB dragon.Quadratic.RGB.png
magick input_small.png -filter Quadratic -resize 800% dragon.Quadratic.sRGB.png
See what I mean? It's no contest.

Re: sigmoidized EWA (-distort resize) LanczosRadius3

Posted: 2012-09-16T11:14:47-07:00
by NicolasRobidoux
More examples of what sigmoidization does with tensor quadratic B-spline smoothing:
Straight through sRGB:
Image
Sigmoidized, with contrast = 10.5 (just like recommended above):
Image
Through linear RGB:
Image

Re: sigmoidized EWA (-distort resize) LanczosRadius3

Posted: 2012-09-16T11:19:44-07:00
by NicolasRobidoux
More examples with tensor quadratic B-spline smoothing:
Straight through sRGB:
Image
Sigmoidized, with contrast = 10.5 (just like recommended above):
Image
Through linear RGB:
Image

Re: sigmoidized EWA (-distort resize) LanczosRadius3

Posted: 2012-09-16T11:23:09-07:00
by NicolasRobidoux
Yet more examples with tensor quadratic B-spline smoothing:
Straight through sRGB:
Image
Sigmoidized, with contrast = 10.5 (just like recommended above):
Image
Through linear RGB:
Image

Re: sigmoidized EWA (-distort resize) LanczosRadius3

Posted: 2012-09-16T11:30:59-07:00
by NicolasRobidoux
Yet more examples with tensor quadratic B-spline smoothing:
Straight through sRGB:
Image
Sigmoidized, with contrast = 10.5 (just like recommended above):
Image
Through linear RGB:
Image

Re: sigmoidized EWA (-distort resize) LanczosRadius3

Posted: 2012-09-16T11:36:06-07:00
by NicolasRobidoux
I hope that these last results are not corrupted by viewtopic.php?f=3&t=21873.
P.S. They are not, but my code was wrong: mistmatched contrasts. Fixing up.
P.S. Fixed.

Re: sigmoidized EWA (-distort resize) LanczosRadius3

Posted: 2012-09-16T12:37:20-07:00
by NicolasRobidoux
Based on these tests (and others), maybe contrast 10.5 is a bit high even with quadratic B-spline smoothing. I'll tone it down in the above recommendations.

Re: sigmoidized EWA LanczosRadius3 ... and tensor Quadratic

Posted: 2012-09-16T18:18:58-07:00
by anthony
I am uploading your text -- formating it as I go... This is just an interum post.

I have been making some minor changes, to try and make things clear, and to fit larger numbers of reference links to other areas of IM Examples.

Hmmm Cubic is not longer a recommended filter name (though it does work), It is now the more accurately named Spline. Cubic should only be used as a 'common name' for all named and unamed Cubic filters (specifically the general cubic function), especially when generating your own DIY cubic B,C values.

This is a bit like FastSinc is used to select polynomial Sinc function. That is also another reason why a "Ginseng" fillter should only set a Jinc window function, and let IM default to FastSinc for the weighting function by not setting that.

Re: sigmoidized EWA LanczosRadius3 ... and tensor Quadratic

Posted: 2012-09-16T18:39:14-07:00
by NicolasRobidoux
anthony wrote:...
Hmmm Cubic is not longer a recommended filter name (though it does work), It is now the more accurately named Spline. Cubic should only be used as a 'common name' for all named and unamed Cubic filters (specifically the general cubic function), especially when generating your own DIY cubic B,C values...
I completely agree with this change, and actually thought that it was confusing Cubic was dual purpose.

Re: sigmoidized EWA LanczosRadius3 ... and tensor Quadratic

Posted: 2012-09-16T18:40:41-07:00
by NicolasRobidoux
@Anthony: Note that I've been making really minor changes, the last one at 2012-09-16T15:38:05+00:00, about 6 hours before your last post above.
-----
Thank you!
I hope that this gets me more feedback on these bleeding edge methods.

Re: sigmoidized EWA LanczosRadius3 ... and tensor Quadratic

Posted: 2012-09-16T18:45:00-07:00
by NicolasRobidoux
anthony wrote:...This is a bit like FastSinc is used to select polynomial Sinc function. That is also another reason why a "Ginseng" fillter should only set a Jinc window function, and let IM default to FastSinc for the weighting function by not setting that.
This also makes complete sense.

Re: sigmoidized EWA LanczosRadius3 ... and tensor Quadratic

Posted: 2012-09-16T18:51:15-07:00
by anthony
Okay You can see the results on my IM Example test site (my own workstation, limited access, I'll PM you the URL).
It will upload automatically in about 18 hours, unless I manually do it on your OKAY.


Hmmm I really think it is time to split Resize into "Resize" and "Resampling Filters". Just the index at the top is getting too much :-)

Spliting is a pain as I have to search through ALL Im Example pages and re-direct all the appropriate links. But it is time.

Re: sigmoidized EWA LanczosRadius3 ... and tensor Quadratic

Posted: 2012-09-17T05:44:38-07:00
by NicolasRobidoux
@Anthony:
At some point I'll compute the "new and improved FastSinc" using the state of the art methods I developed when my student Chantal Racette was in the last miles of her Masters.

Re: sigmoidized EWA (-distort resize) LanczosRadius3

Posted: 2012-09-17T17:09:57-07:00
by henrywho
NicolasRobidoux wrote:Did you resample through linear light or straight sRGB?
I did it in linear light.

Actually, it is an incorrect description. When downsizing, EWA Lagrange generates "only" a dark "border" around a sharp edge (as in 2-lobe Lanczos and Cubic) but 3-lobe Lanczos generates a dark "border" followed by a light one (... and 5-lobe Lanczos generates another pair). These light "borders" (halos?) are rather irritating.