return window_offset values for bicubic and lbb to the nonintuitive values -> no artifact for lbb, possibly method-based artifacts for bicubic

This commit is contained in:
Nicolas Robidoux 2010-05-16 19:25:19 +00:00
parent 415ccb5c08
commit ea7ee9b770
2 changed files with 10 additions and 2 deletions

View File

@ -434,7 +434,11 @@ vips_interpolate_bicubic_class_init( VipsInterpolateBicubicClass *iclass )
interpolate_class->interpolate = vips_interpolate_bicubic_interpolate; interpolate_class->interpolate = vips_interpolate_bicubic_interpolate;
interpolate_class->window_size = 4; interpolate_class->window_size = 4;
interpolate_class->window_offset = 1; interpolate_class->window_offset = 2;
/*
* Note from nicolas: If things were programmed sanely, I
* think window_offset should be 1, not 2.
*/
/* Build the tables of pre-computed coefficients. /* Build the tables of pre-computed coefficients.
*/ */

View File

@ -796,7 +796,11 @@ vips_interpolate_lbb_class_init( VipsInterpolateLbbClass *klass )
interpolate_class->interpolate = vips_interpolate_lbb_interpolate; interpolate_class->interpolate = vips_interpolate_lbb_interpolate;
interpolate_class->window_size = 4; interpolate_class->window_size = 4;
interpolate_class->window_offset = 1; interpolate_class->window_offset = 2;
/*
* Note from nicolas: If things were sane, window_offset should be
* 1, not 2.
*/
} }
static void static void