]> granicus.if.org Git - imagemagick/commitdiff
full double precision lanczossharp blur value (computed with axiom)
authornicolas <nicolas@git.imagemagick.org>
Thu, 28 Oct 2010 18:43:40 +0000 (18:43 +0000)
committernicolas <nicolas@git.imagemagick.org>
Thu, 28 Oct 2010 18:43:40 +0000 (18:43 +0000)
magick/resize.c

index f533edec88fc42e946506ed5ef6048309e4edad1..947d6c44a56192cfd56ad9c2ec02e6663c979fa7 100644 (file)
@@ -536,12 +536,13 @@ static MagickRealType Welsh(const MagickRealType x,
 %  (or cylindrical promoted Jinc-Jinc filter).  This filter is
 %  probably the most popular windowed filter.
 %
-%  LanczosSharp is a slightly sharpened (blur=0.9830391168464) form of
-%  the Lanczos filter.  It was designed specifically for cylindrical
-%  EWA (Elliptical Weighted Average) distortion (as a Jinc-Jinc
-%  filter), but can used as a slightly sharper orthogonal Lanczos
-%  (Sinc-Sinc) filter. The blur value, the corresponding EWA filter
-%  comes as close as possible to satisfying the following condition:
+%  LanczosSharp is a slightly sharpened (blur=0.98303932214489908)
+%  form of the Lanczos filter.  It was designed specifically for
+%  cylindrical EWA (Elliptical Weighted Average) distortion (as a
+%  Jinc-Jinc filter), but can used as a slightly sharper orthogonal
+%  Lanczos (Sinc-Sinc) filter. The blur value, the corresponding EWA
+%  filter comes as close as possible to satisfying the following
+%  condition:
 %
 %    'No-Op' Vertical and Horizontal Line Preservation Condition:
 %    Images with only vertical or horizontal features are preserved
@@ -918,7 +919,7 @@ MagickExport ResizeFilter *AcquireResizeFilter(const Image *image,
   switch (filter_type)
   {
     case LanczosSharpFilter:
-      resize_filter->blur *= 0.9830391168464;
+      resize_filter->blur *= 0.98303932214489908;
       break;
     case Lanczos2SharpFilter:
       resize_filter->blur *= 0.958027803631219;