Page 1 of 1

Windows batch files for Nicolas resmpling filters

Posted: 2013-08-02T11:32:38-07:00
by markanini
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"

Re: Windows batch files for Nicolas resmpling filters

Posted: 2013-08-03T18:26:29-07:00
by markanini
Replaced Radius 3 and Tensor Cosine with Tensor Ginseng. Added Tensor Mitchell.

Re: Windows batch files for Nicolas resmpling filters

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