Windows batch files for Nicolas resmpling filters

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
markanini
Posts: 14
Joined: 2010-06-15T12:55:03-07:00
Authentication code: 8675308
Location: Malmö, Sweden

Windows batch files for Nicolas resmpling filters

Post by markanini » 2013-08-02T11:32:38-07:00

I'm putting together a series of Windows batch files for state-of the art resampling in IM based on Nicolas guide: http://www.imagemagick.org/Usage/filter/nicolas/

Please let me know if it's a reasonable selection for typical resampling tasks or if the parameters need to be updated.

Sigmoidized LanczosSharp EWA upscale.bat

Code: Select all

magick %1 -colorspace RGB +sigmoidal-contrast 7.5 -filter Lanczos -define filter:blur=.9891028367558475 -distort Resize 200%% -sigmoidal-contrast 7.5 -colorspace sRGB "%~dpn1-SigmoidizedLanczosSharpEWA.png"
Sigmoidized Ginseng Tensor upscale(sharper).bat

Code: Select all

magick %1 -colorspace RGB +sigmoidal-contrast 7.5 -define filter:window=Jinc -define filter:lobes=3 -resize 200%% -sigmoidal-contrast 7.5 -colorspace sRGB "%~dpn1-SigmoidizedGinseng3LobeTensor.png"
Sigmoidized QuadraticJinc EWA upscale(reduce 2nd halo).bat

Code: Select all

magick %1 -colorspace RGB +sigmoidal-contrast 7.5 -define filter:window=Quadratic -distort Resize 200%% -sigmoidal-contrast 7.5 -colorspace sRGB "%~dpn1-SigmoidizedQuadraticJincEWA.png"
Sigmoidized Mitchell Tensor upscale (no 2nd halo).bat

Code: Select all

magick %1 -colorspace RGB +sigmoidal-contrast 7.5 -filter Mitchell -resize 150%% -sigmoidal-contrast 7.5 -colorspace sRGB "%~dpn1-SigmoidizedMitchellTensor.png"
Linear LanczosSharp EWA downscale.bat

Code: Select all

magick %1 -colorspace RGB -filter Lanczos -define filter:blur=.9891028367558475 -distort Resize 20%% -colorspace sRGB "%~dpn1-LinearLanczosSharpEWA.png"
Linear Ginseng Tensor downscale (sharper).bat

Code: Select all

magick %1 -colorspace RGB -define filter:window=Jinc -define filter:lobes=3 -resize 20%% -colorspace sRGB "%~dpn1-LinearGinsengTensor.png"
Linear QuadraticJinc EWA downscale (reduce 2nd halo).bat

Code: Select all

magick %1 -colorspace RGB -define filter:window=Quadratic -distort Resize 20%% -colorspace sRGB "%~dpn1-QuadraticJincEWA.png"
Linear Mitchell Tensor downscale (no 2nd halo).bat

Code: Select all

magick %1 -colorspace RGB -filter Mitchell -resize 50%% -colorspace sRGB "%~dpn1-MitchellTensor.png"

markanini
Posts: 14
Joined: 2010-06-15T12:55:03-07:00
Authentication code: 8675308
Location: Malmö, Sweden

Re: Windows batch files for Nicolas resmpling filters

Post by markanini » 2013-08-03T18:26:29-07:00

Replaced Radius 3 and Tensor Cosine with Tensor Ginseng. Added Tensor Mitchell.
Last edited by markanini on 2013-08-04T06:21:19-07:00, edited 1 time in total.

User avatar
fmw42
Posts: 25654
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Windows batch files for Nicolas resmpling filters

Post by fmw42 » 2013-08-03T23:46:49-07:00


Post Reply