From 4f9e33aaf46328bbabe8d1ecc651d47d5d815087 Mon Sep 17 00:00:00 2001 From: Nicolas Robidoux Date: Tue, 18 May 2010 17:01:12 +0000 Subject: [PATCH] 1D Catmull-Rom cubic interpolation performed one direction at a time IS the same as 2D Catmull-Rom bicubic --- libvips/resample/bicubic.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/libvips/resample/bicubic.cpp b/libvips/resample/bicubic.cpp index 22c4f6fb..d21a6e6a 100644 --- a/libvips/resample/bicubic.cpp +++ b/libvips/resample/bicubic.cpp @@ -29,9 +29,6 @@ /* Bicubic (catmull-rom) interpolator derived from Nicolas Robidoux's * original YAFR resampler with permission and thanks. - * - * Note: This may actually be an implementation of a Keys bicubic - * convolution method. To be checked. */ /* @@ -79,9 +76,9 @@ typedef struct _VipsInterpolateBicubic { typedef struct _VipsInterpolateBicubicClass { VipsInterpolateClass parent_class; - /* Precalculated interpolation matricies. int (used for pel sizes up - * to short), and double (for all others). We go to scale + 1, so - * we can round-to-nearest safely. + /* Precalculated interpolation matrices. int (used for pel + * sizes up to short), and double (for all others). We go to + * scale + 1, so we can round-to-nearest safely. */ /* We could keep a large set of 2d 4x4 matricies, but this actually