


Code: Select all
#/bin/sh
# magick -size 10x6 xc:grey85 +antialias -draw 'fill black line 4,0 5,5' \
magick -size 10x6 xc:grey20 +antialias -draw 'fill white line 4,0 5,5' \
small.png
magick small.png -colorspace RGB +sigmoidal-contrast 7 \
-filter Point -resize 100x \
-sigmoidal-contrast 7 -colorspace sRGB Point.png
magick small.png -colorspace RGB +sigmoidal-contrast 7 \
-filter Cosine \
-resize 100x \
-sigmoidal-contrast 7 -colorspace sRGB Cosine.png
magick small.png -colorspace RGB +sigmoidal-contrast 7 \
-filter Lanczos \
-resize 100x \
-sigmoidal-contrast 7 -colorspace sRGB Lanczos.png
magick small.png -colorspace RGB +sigmoidal-contrast 7 \
-filter Catrom \
-resize 100x \
-sigmoidal-contrast 7 -colorspace sRGB Catrom.png
magick small.png -colorspace RGB +sigmoidal-contrast 7 \
-resize 100x \
-sigmoidal-contrast 7 -colorspace sRGB Mitchell.png
magick small.png -colorspace RGB +sigmoidal-contrast 7 \
-distort Resize 100x \
-sigmoidal-contrast 7 -colorspace sRGB EWARobidoux.png
magick small.png -colorspace RGB +sigmoidal-contrast 7 \
-filter RobidouxSharp \
-distort Resize 100x \
-sigmoidal-contrast 7 -colorspace sRGB EWARobidouxSharp.png
magick small.png -colorspace RGB +sigmoidal-contrast 7 \
-filter Lanczos -define filter:blur=.9891028367558475 \
-distort Resize 100x \
-sigmoidal-contrast 7 -colorspace sRGB EWALanczosSharpAlt.png
magick small.png -colorspace RGB +sigmoidal-contrast 7 \
-filter Lanczos -define filter:blur=.9264075766146068 \
-distort Resize 100x \
-sigmoidal-contrast 7 -colorspace sRGB EWALanczosRadius3.png
magick small.png -colorspace RGB +sigmoidal-contrast 7 \
-define filter:window=Jinc -define filter:lobes=3 \
-resize 100x \
-sigmoidal-contrast 7 -colorspace sRGB Ginseng.png
magick small.png -colorspace RGB +sigmoidal-contrast 7 \
-define filter:window=Quadratic \
-distort Resize 100x \
-sigmoidal-contrast 7 -colorspace sRGB EWAQuadraticJinc.png
magick small.png -colorspace RGB +sigmoidal-contrast 7 \
-filter Quadratic \
-distort Resize 100x \
-sigmoidal-contrast 7 -colorspace sRGB EWAQuadratic.png
magick small.png -colorspace RGB +sigmoidal-contrast 7 \
-filter Spline \
-distort Resize 100x \
-sigmoidal-contrast 7 -colorspace sRGB EWASpline.png
magick small.png -colorspace RGB +sigmoidal-contrast 7 \
-filter Quadratic \
-resize 100x \
-sigmoidal-contrast 7 -colorspace sRGB Quadratic.png
magick small.png -colorspace RGB +sigmoidal-contrast 7 \
-filter Spline \
-resize 100x \
-sigmoidal-contrast 7 -colorspace sRGB Spline.png
montage \
-label "Point" Point.png \
-label "Cosine" Cosine.png \
-label "Lanczos" Lanczos.png \
-label "Ginseng" Ginseng.png \
-label "EWA LanczosRadius3" EWALanczosRadius3.png \
-label "EWA LanczosSharp" EWALanczosSharpAlt.png \
-label "Catrom" Catrom.png \
-label "EWA RobidouxSharp" EWARobidouxSharp.png \
-label "EWA QuadraticJinc" EWAQuadraticJinc.png \
-label "EWA Robidoux" EWARobidoux.png \
-label "Mitchell" Mitchell.png \
-label "EWA Quadratic" EWAQuadratic.png \
-label "Quadratic" Quadratic.png \
-label "EWA Spline" EWASpline.png \
-label "Spline" Spline.png \
-geometry '120x65>+2+2' \
-tile x3 \
-background lightsteelblue \
-fill black -title "Sigmoidized enlargements (contrast=7)" \
-depth 8 \
nicolas_enlarged_sigmoidized.png
pngcrush nicolas_enlarged_sigmoidized.png temp.png
mv temp.png nicolas_enlarged_sigmoidized.png
Code: Select all
#/bin/sh
# magick -size 10x6 xc:grey85 +antialias -draw 'fill black line 4,0 5,5' \
magick -size 10x6 xc:grey20 +antialias -draw 'fill white line 4,0 5,5' \
small.png
magick small.png -colorspace RGB \
-filter Point -resize 100x \
-colorspace sRGB Point.png
magick small.png -colorspace RGB \
-filter Cosine \
-resize 100x \
-colorspace sRGB Cosine.png
magick small.png -colorspace RGB \
-filter Lanczos \
-resize 100x \
-colorspace sRGB Lanczos.png
magick small.png -colorspace RGB \
-filter Catrom \
-resize 100x \
-colorspace sRGB Catrom.png
magick small.png -colorspace RGB \
-resize 100x \
-colorspace sRGB Mitchell.png
magick small.png -colorspace RGB \
-distort Resize 100x \
-colorspace sRGB EWARobidoux.png
magick small.png -colorspace RGB \
-filter RobidouxSharp \
-distort Resize 100x \
-colorspace sRGB EWARobidouxSharp.png
magick small.png -colorspace RGB \
-filter Lanczos -define filter:blur=.9891028367558475 \
-distort Resize 100x \
-colorspace sRGB EWALanczosSharpAlt.png
magick small.png -colorspace RGB \
-filter Lanczos -define filter:blur=.9264075766146068 \
-distort Resize 100x \
-colorspace sRGB EWALanczosRadius3.png
magick small.png -colorspace RGB \
-define filter:window=Jinc -define filter:lobes=3 \
-resize 100x \
-colorspace sRGB Ginseng.png
magick small.png -colorspace RGB \
-define filter:window=Quadratic \
-distort Resize 100x \
-colorspace sRGB EWAQuadraticJinc.png
magick small.png -colorspace RGB \
-filter Quadratic \
-distort Resize 100x \
-colorspace sRGB EWAQuadratic.png
magick small.png -colorspace RGB \
-filter Spline \
-distort Resize 100x \
-colorspace sRGB EWASpline.png
magick small.png -colorspace RGB \
-filter Quadratic \
-resize 100x \
-colorspace sRGB Quadratic.png
magick small.png -colorspace RGB \
-filter Spline \
-resize 100x \
-colorspace sRGB Spline.png
montage \
-label "Point" Point.png \
-label "Cosine" Cosine.png \
-label "Lanczos" Lanczos.png \
-label "Ginseng" Ginseng.png \
-label "EWA LanczosRadius3" EWALanczosRadius3.png \
-label "EWA LanczosSharp" EWALanczosSharpAlt.png \
-label "Catrom" Catrom.png \
-label "EWA RobidouxSharp" EWARobidouxSharp.png \
-label "EWA QuadraticJinc" EWAQuadraticJinc.png \
-label "EWA Robidoux" EWARobidoux.png \
-label "Mitchell" Mitchell.png \
-label "EWA Quadratic" EWAQuadratic.png \
-label "Quadratic" Quadratic.png \
-label "EWA Spline" EWASpline.png \
-label "Spline" Spline.png \
-geometry '120x65>+2+2' \
-tile x3 \
-background lightsteelblue \
-fill black -title "Enlargements through linear RGB" \
-depth 8 \
nicolas_enlarged_linear.png
pngcrush nicolas_enlarged_linear.png temp.png
mv temp.png nicolas_enlarged_linear.png
Code: Select all
#/bin/sh
# magick -size 10x6 xc:grey85 +antialias -draw 'fill black line 4,0 5,5' \
magick -size 10x6 xc:grey20 +antialias -draw 'fill white line 4,0 5,5' \
small.png
magick small.png \
-filter Point -resize 100x \
Point.png
magick small.png \
-filter Cosine \
-resize 100x \
Cosine.png
magick small.png \
-filter Lanczos \
-resize 100x \
Lanczos.png
magick small.png \
-filter Catrom \
-resize 100x \
Catrom.png
magick small.png \
-resize 100x \
Mitchell.png
magick small.png \
-distort Resize 100x \
EWARobidoux.png
magick small.png \
-filter RobidouxSharp \
-distort Resize 100x \
EWARobidouxSharp.png
magick small.png \
-filter Lanczos -define filter:blur=.9891028367558475 \
-distort Resize 100x \
EWALanczosSharpAlt.png
magick small.png \
-filter Lanczos -define filter:blur=.9264075766146068 \
-distort Resize 100x \
EWALanczosRadius3.png
magick small.png \
-define filter:window=Jinc -define filter:lobes=3 \
-resize 100x \
Ginseng.png
magick small.png \
-define filter:window=Quadratic \
-distort Resize 100x \
EWAQuadraticJinc.png
magick small.png \
-filter Quadratic \
-distort Resize 100x \
EWAQuadratic.png
magick small.png \
-filter Spline \
-distort Resize 100x \
EWASpline.png
magick small.png \
-filter Quadratic \
-resize 100x \
Quadratic.png
magick small.png \
-filter Spline \
-resize 100x \
Spline.png
montage \
-label "Point" Point.png \
-label "Cosine" Cosine.png \
-label "Lanczos" Lanczos.png \
-label "Ginseng" Ginseng.png \
-label "EWA LanczosRadius3" EWALanczosRadius3.png \
-label "EWA LanczosSharp" EWALanczosSharpAlt.png \
-label "Catrom" Catrom.png \
-label "EWA RobidouxSharp" EWARobidouxSharp.png \
-label "EWA QuadraticJinc" EWAQuadraticJinc.png \
-label "EWA Robidoux" EWARobidoux.png \
-label "Mitchell" Mitchell.png \
-label "EWA Quadratic" EWAQuadratic.png \
-label "Quadratic" Quadratic.png \
-label "EWA Spline" EWASpline.png \
-label "Spline" Spline.png \
-geometry '120x65>+2+2' \
-tile x3 \
-background lightsteelblue \
-fill black -title "Direct sRGB enlargements" \
-depth 8 \
nicolas_enlarged_srgb.png
pngcrush nicolas_enlarged_srgb.png temp.png
mv temp.png nicolas_enlarged_srgb.png
Code: Select all
#/bin/sh
magick rings_sm_orig.gif -colorspace RGB \
-filter Point -resize 103x \
-colorspace sRGB Point.png
magick rings_sm_orig.gif -colorspace RGB \
-filter Cosine \
-resize 103x \
-colorspace sRGB Cosine.png
magick rings_sm_orig.gif -colorspace RGB \
-filter Lanczos \
-resize 103x \
-colorspace sRGB Lanczos.png
magick rings_sm_orig.gif -colorspace RGB \
-filter Lanczos \
-resize 103x \
-colorspace sRGB Lanczos.png
magick rings_sm_orig.gif -colorspace RGB \
-resize 103x \
-colorspace sRGB Mitchell.png
magick rings_sm_orig.gif -colorspace RGB \
-distort Resize 103x \
-colorspace sRGB EWARobidoux.png
magick rings_sm_orig.gif -colorspace RGB \
-filter RobidouxSharp \
-distort Resize 103x \
-colorspace sRGB EWARobidouxSharp.png
magick rings_sm_orig.gif -colorspace RGB \
-filter Lanczos -define filter:blur=.9891028367558475 \
-distort Resize 103x \
-colorspace sRGB EWALanczosSharpAlt.png
magick rings_sm_orig.gif -colorspace RGB \
-filter Lanczos -define filter:blur=.88549061701764 \
-distort Resize 103x \
-colorspace sRGB EWALanczos3Sharpest.png
magick rings_sm_orig.gif -colorspace RGB \
-filter Lanczos -define filter:blur=.9264075766146068 \
-distort Resize 103x \
-colorspace sRGB EWALanczosRadius3.png
magick rings_sm_orig.gif -colorspace RGB \
-define filter:window=Jinc -define filter:lobes=3 \
-resize 103x \
-colorspace sRGB Ginseng.png
magick rings_sm_orig.gif -colorspace RGB \
-define filter:window=Quadratic \
-distort Resize 103x \
-colorspace sRGB EWAQuadraticJinc.png
magick rings_sm_orig.gif -colorspace RGB \
-filter Quadratic \
-distort Resize 103x \
-colorspace sRGB EWAQuadratic.png
magick rings_sm_orig.gif -colorspace RGB \
-filter Spline \
-distort Resize 103x \
-colorspace sRGB EWASpline.png
magick rings_sm_orig.gif -colorspace RGB \
-filter Quadratic \
-resize 103x \
-colorspace sRGB Quadratic.png
magick rings_sm_orig.gif -colorspace RGB \
-filter Spline \
-resize 103x \
-colorspace sRGB Spline.png
magick rings_sm_orig.gif -colorspace RGB \
-filter Triangle \
-resize 103x \
-colorspace sRGB Triangle.png
magick rings_sm_orig.gif -colorspace RGB \
-filter Triangle \
-distort Resize 103x \
-colorspace sRGB EWATriangle.png
montage \
-label "EWA Lanczos3Sharpest" EWALanczos3Sharpest.png \
-label "Cosine" Cosine.png \
-label "Lanczos" Lanczos.png \
-label "Ginseng" Ginseng.png \
-label "EWA LanczosRadius3" EWALanczosRadius3.png \
-label "EWA LanczosSharp" EWALanczosSharpAlt.png \
-label "EWA RobidouxSharp" EWARobidouxSharp.png \
-label "EWA QuadraticJinc" EWAQuadraticJinc.png \
-label "EWA Robidoux" EWARobidoux.png \
-label "Mitchell" Mitchell.png \
-label "EWA Triangle" EWATriangle.png \
-label "Triangle" Triangle.png \
-label "EWA Quadratic" EWAQuadratic.png \
-label "Quadratic" Quadratic.png \
-label "EWA Spline" EWASpline.png \
-label "Spline" Spline.png \
-geometry '130x130>+6+0' \
-tile x4 \
-background lightsteelblue \
-fill black -title "Downsizing through linear RGB" \
-depth 8 \
nicolas_reduced_linear.png
pngcrush nicolas_reduced_linear.png temp.png
mv temp.png nicolas_reduced_linear.png
NicolasRobidoux wrote:@Fred: I'm going to show EWA Catrom and Lagrange separately in a few minutes. (I won't add them to the above. That's what I mean by "separately".)
In my book, it's good.fmw42 wrote:...I am not sure if this is good or bad, but the EWA Catrom And EWA Lagrange sigmoidized enlargements show a more whitish "bend" region than with Linear or normal SRGB.
Does "Extra" refer to some additional parameters?NicolasRobidoux wrote:@Fred and Henry:
To illustrate the recommendations RE: USM I've had in "The Recommendations" for a while now, I've added EWA Lanczos with blur=0.8 to the "Extra" examples above.