now runs!

This commit is contained in:
John Cupitt 2012-12-14 14:17:53 +00:00
parent 4c82d45463
commit 27b9b92c60
2 changed files with 6 additions and 5 deletions

View File

@ -381,7 +381,7 @@ vips_affine_build( VipsObject *object )
if( VIPS_OBJECT_CLASS( vips_affine_parent_class )->build( object ) )
return( -1 );
if( vips_check_coding_noneorlabq( class->nickname, in ) )
if( vips_check_coding_noneorlabq( class->nickname, resample->in ) )
return( -1 );
if( vips_check_vector_length( class->nickname,
affine->matrix->n, 4 ) )
@ -391,6 +391,9 @@ vips_affine_build( VipsObject *object )
affine->oarea->n, 4 ) )
return( -1 );
if( !vips_object_argument_isset( object, "interpolate" ) )
affine->interpolate = vips_interpolate_new( "bilinear" );
in = resample->in;
/* Set up transform.
@ -454,7 +457,7 @@ vips_affine_build( VipsObject *object )
/* Add new pixels around the input so we can interpolate at the edges.
*/
if( vips_embed( in, &t[1], 1,
if( vips_embed( in, &t[1],
window_offset, window_offset,
in->Xsize + window_size, in->Ysize + window_size,
"extend", VIPS_EXTEND_COPY,

View File

@ -278,9 +278,7 @@ vips_quadratic_build( VipsObject *object )
}
if( !vips_object_argument_isset( object, "interpolator" ) )
g_object_set( object,
"interpolate", vips_interpolate_new( "bilinear" ),
NULL );
quadratic->interpolate = vips_interpolate_new( "bilinear" );
interpolate = quadratic->interpolate;
window_size = vips_interpolate_get_window_size( interpolate );