Windows batch files for Nicolas resmpling filters
Posted: 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
Sigmoidized Ginseng Tensor upscale(sharper).bat
Sigmoidized QuadraticJinc EWA upscale(reduce 2nd halo).bat
Sigmoidized Mitchell Tensor upscale (no 2nd halo).bat
Linear LanczosSharp EWA downscale.bat
Linear Ginseng Tensor downscale (sharper).bat
Linear QuadraticJinc EWA downscale (reduce 2nd halo).bat
Linear Mitchell Tensor downscale (no 2nd halo).bat
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"
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"
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"
Code: Select all
magick %1 -colorspace RGB +sigmoidal-contrast 7.5 -filter Mitchell -resize 150%% -sigmoidal-contrast 7.5 -colorspace sRGB "%~dpn1-SigmoidizedMitchellTensor.png"
Code: Select all
magick %1 -colorspace RGB -filter Lanczos -define filter:blur=.9891028367558475 -distort Resize 20%% -colorspace sRGB "%~dpn1-LinearLanczosSharpEWA.png"
Code: Select all
magick %1 -colorspace RGB -define filter:window=Jinc -define filter:lobes=3 -resize 20%% -colorspace sRGB "%~dpn1-LinearGinsengTensor.png"
Code: Select all
magick %1 -colorspace RGB -define filter:window=Quadratic -distort Resize 20%% -colorspace sRGB "%~dpn1-QuadraticJincEWA.png"
Code: Select all
magick %1 -colorspace RGB -filter Mitchell -resize 50%% -colorspace sRGB "%~dpn1-MitchellTensor.png"