line drawings to test downsizing methods

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

line drawings to test downsizing methods

Post by NicolasRobidoux »

@Anthony, especially:
Do you have some line drawing images that you consider good to test line drawing downsizing?
NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: line drawings to test downsizing methods

Post by NicolasRobidoux »

I found one: Image
A first attempt. (I've not tried anything else. Just a first "go".)

Code: Select all

magick baron.jpg -colorspace RGB +sigmoidal-contrast 25 -define filter:window=Quadratic -distort resize 100x100 -sigmoidal-contrast 25 -colorspace sRGB baron.EWAQuadraticJincSig25.png
This gives:
Image
Are there tests of this kind of operation somewhere? So I can tell what's usually done and how well it fares?
NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: line drawings to test downsizing methods

Post by NicolasRobidoux »

Well: First attempt -> Thumbs down.
Here is the same filter through linear light as before, but without sigmoidization:
Image
NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: line drawings to test downsizing methods

Post by NicolasRobidoux »

With less sigmoidal contrast, namely 6 (down from 25, which is rather large, in my first attempt):
Image
Not particularly impressive either.
-----
OK, I'll do something else for a while.
NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: line drawings to test downsizing methods

Post by NicolasRobidoux »

One last try: Ginseng through linear light, no sigmoidization:
Image

Code: Select all

magick baron.jpg -colorspace RGB -define filter:window=Jinc -define filter:lobes=3 -resize 100x100 -colorspace sRGB baron.GinsengSig0.png
NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: line drawings to test downsizing methods

Post by NicolasRobidoux »

@Fred:
These are nice.
Thank you.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: line drawings to test downsizing methods

Post by fmw42 »

It takes a long time to download, but you might find that the color images in the testimages.zip set at http://sourceforge.net/projects/testimages/files/ to be useful for color images to downsample
henrywho
Posts: 188
Joined: 2011-08-17T06:46:40-07:00
Authentication code: 8675308

Re: line drawings to test downsizing methods

Post by henrywho »

I prefer linear light with EWA lanczos3Sharpest
NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: line drawings to test downsizing methods

Post by NicolasRobidoux »

henrywho wrote:I prefer linear light with EWA lanczos3Sharpest
Thank you Henry for your opinion. Here is the result:
Image
Not that different, on this test image, than linear light (orthogonal) Ginseng, and also to linear light (orthogonal) Lanczos and Cosine (with the new 3-lobe Sinc default). It's different. Just not very different.
I've actually removed the suggestion that one may want to use sigmoidization when downsampling from the current draft of my recommendations: http://web.cs.laurentian.ca/nrobidoux/m ... colas.html
(And EWA Lanczos3Sharpest, which fares well in the tests of my grad student Adam Turcotte, was there from the beginning in the downsampling section, as an example of lowering the blur to get additional sharpness.)
henrywho
Posts: 188
Joined: 2011-08-17T06:46:40-07:00
Authentication code: 8675308

Re: line drawings to test downsizing methods

Post by henrywho »

EWA Lanczos3Sharpest offers more pronounced darkness differences in the gray "areas".
EWA Langrange, at this round, hurts the picture because its strong dark-halos are darkening the lines too much.
Post Reply