Re: High tap count Spline filters? (Spline36/64/100/144/196/256)
Posted: 2017-08-15T16:10:28-07:00
In two demension. Spline2 (Spline16), Lanczos2, Bi-cubic are all 4x4. Spline3 (Spline36) and Lanczos3 are 6x6.
Use https://github.com/ImageMagick/ImageMagick/discussions instead.
https://imagemagick.com/discourse-server/
https://imagemagick.com/discourse-server/viewtopic.php?t=32506
In two demension. Spline2 (Spline16), Lanczos2, Bi-cubic are all 4x4. Spline3 (Spline36) and Lanczos3 are 6x6.
That's why I think filter:lobes is more appropriate than filter:support.Makes sense to me to use whatever notation is consistent with the current notation for lanczos for example.
Correct me if I am wrong, but Anthony uses lobes for the number of lobes and support for how many lobes the filter truncates it to.
Thanks! It works beautifully!
Code: Select all
magick land_lights_16384.tif -filter CubicSpline -define filter:lobes=3 -resize 512 land_lights_spline36_gamma.png
Code: Select all
magick land_lights_16384.tif -filter Lanczos -resize 512 land_lights_lanczos_gamma.png
Code: Select all
magick land_lights_16384.tif -colorspace RGB -filter CubicSpline -define filter:lobes=3 -resize 512 -colorspace sRGB land_lights_spline36_linear.png
Code: Select all
magick land_lights_16384.tif -colorspace RGB -filter Lanczos -resize 512 -colorspace sRGB land_lights_lanczos_linear.png
Code: Select all
magick logo128.png -colorspace RGB -define filter:verbose=true -define filter:lobes=2 -filter cubicspline -resize 400% -colorspace sRGB logo128_spline16.png
magick logo128.png -colorspace RGB -define filter:verbose=true -define filter:lobes=3 -filter cubicspline -resize 400% -colorspace sRGB logo128_spline36.png
magick logo128.png -colorspace RGB -define filter:verbose=true -define filter:lobes=4 -filter cubicspline -resize 400% -colorspace sRGB logo128_spline64.png
magick logo128.png -colorspace RGB -define filter:verbose=true -filter lanczos -resize 400% -colorspace sRGB logo128_lanczos.png
magick logo128.png -colorspace RGB -define filter:verbose=true -filter catrom -resize 400% -colorspace sRGB logo128_catrom.png
magick logo128.png -colorspace RGB -define filter:verbose=true -filter triangle -resize 400% -colorspace sRGB logo128_triangle.png
Code: Select all
magick compare -metric rmse logo128_lanczos.png logo128_spline16.png -format "\n" null:
1711.18 (0.0261109)
magick compare -metric rmse logo128_lanczos.png logo128_spline36.png -format "\n" null:
562.698 (0.00858621)
magick compare -metric rmse logo128_lanczos.png logo128_spline64.png -format "\n" null:
628.19 (0.00958556)
magick compare -metric rmse logo128_catrom.png logo128_spline16.png -format "\n" null:
609.158 (0.00929516)
magick compare -metric rmse logo128_catrom.png logo128_spline36.png -format "\n" null:
1541.94 (0.0235285)
magick compare -metric rmse logo128_catrom.png logo128_spline64.png -format "\n" null:
1686.94 (0.025741)
SSIM indexes:fmw42 wrote: ↑2017-08-15T18:01:36-07:00Code: Select all
magick compare -metric rmse logo128_lanczos.png logo128_spline16.png -format "\n" null: 1711.18 (0.0261109) magick compare -metric rmse logo128_lanczos.png logo128_spline36.png -format "\n" null: 562.698 (0.00858621) magick compare -metric rmse logo128_lanczos.png logo128_spline64.png -format "\n" null: 628.19 (0.00958556) magick compare -metric rmse logo128_catrom.png logo128_spline16.png -format "\n" null: 609.158 (0.00929516) magick compare -metric rmse logo128_catrom.png logo128_spline36.png -format "\n" null: 1541.94 (0.0235285) magick compare -metric rmse logo128_catrom.png logo128_spline64.png -format "\n" null: 1686.94 (0.025741)
Code: Select all
ffmpeg -i logo128_lanczos.png -i logo128_spline16.png -filter_complex ssim -an -f null -
SSIM R:0.946036 (12.678943) G:0.957871 (13.754209) B:0.970681 (15.328484) All:0.958196 (13.787820)
ffmpeg -i logo128_lanczos.png -logo128_spline36.png -filter_complex ssim -an -f null -
SSIM R:0.994943 (22.961192) G:0.995593 (23.558111) B:0.997249 (25.605576) All:0.995928 (23.902356)
ffmpeg -i logo128_lanczos.png -i logo128_spline64.png -filter_complex ssim -an -f null -
SSIM R:0.989257 (19.688591) G:0.991401 (20.655318) B:0.995461 (23.430614) All:0.992040 (20.990597)