From ca48bce6fe97de73bb71690343d0927c3a5d4b35 Mon Sep 17 00:00:00 2001 From: nicolas Date: Sun, 14 Nov 2010 17:54:53 +0000 Subject: [PATCH] Lanczos2Sharp blur tweaked --- ChangeLog | 5 ++++- magick/resize.c | 7 +++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index aaa4e8f8e..8c8f51cf7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,10 @@ +2010-11-14 6.6.5-9 Nicolas robidoux + * Lanczos2Sharp blur tweaked. New blur = 0.9549963639785485. + 2010-11-13 6.6.5-9 Nicolas robidoux * LanczosSharp blur tweaked to minimize worst case deviation from "perfect preservation of images which only vary horizontally (or vertically)" under - no-op. + no-op. New blur = 0.9812505644269356. 2010-10-29 6.6.5-9 Glenn Randers-Pehrson * Revised PNG encoder to avoid emitting some spurious warnings. diff --git a/magick/resize.c b/magick/resize.c index 4451caefb..b3218fa86 100644 --- a/magick/resize.c +++ b/magick/resize.c @@ -550,10 +550,9 @@ static MagickRealType Welsh(const MagickRealType x, % % The Lanczos2 and Lanczos2Sharp filters are 2-lobe versions of the % Lanczos filters. The 'sharp' version uses a blur factor of -% 0.958027803631219, again chosen because the resulting EWA filter +% 0.9549963639785485, again chosen because the resulting EWA filter % comes as close as possible to satisfying the above -% condition. (Comment from Nicolas: value may change following the -% use of a better optimization technique.) +% condition. % % Robidoux is another filter tuned for EWA. It is the Keys cubic % filter defined by B=(228 - 108 sqrt(2))/199. Robidoux satisfies the @@ -923,7 +922,7 @@ MagickExport ResizeFilter *AcquireResizeFilter(const Image *image, resize_filter->blur *= 0.9812505644269356; break; case Lanczos2SharpFilter: - resize_filter->blur *= 0.958027803631219; + resize_filter->blur *= 0.9549963639785485; break; default: break; -- 2.40.0