remove old im_aconv() code

This commit is contained in:
John Cupitt 2016-08-03 23:18:18 +01:00
parent c658332215
commit 0dde4f5e53
3 changed files with 27 additions and 1275 deletions

View File

@ -15,7 +15,6 @@ libconvolution_la_SOURCES = \
fastcor.c \
spcor.c \
sharpen.c \
gaussblur.c \
im_aconv.c
gaussblur.c
AM_CPPFLAGS = -I${top_srcdir}/libvips/include @VIPS_CFLAGS@ @VIPS_INCLUDES@

File diff suppressed because it is too large Load Diff

View File

@ -2481,6 +2481,32 @@ im_aconvsep( VipsImage *in, VipsImage *out, DOUBLEMASK *mask, int n_layers )
return( 0 );
}
int
im_aconv( VipsImage *in, VipsImage *out,
DOUBLEMASK *mask, int n_layers, int cluster )
{
VipsImage *t1, *t2;
if( !(t1 = vips_image_new()) ||
im_mask2vips( mask, t1 ) )
return( -1 );
if( vips_conva( in, &t2, t1,
"layers", n_layers,
"cluster", cluster,
NULL ) ) {
g_object_unref( t1 );
return( -1 );
}
g_object_unref( t1 );
if( vips_image_write( t2, out ) ) {
g_object_unref( t2 );
return( -1 );
}
g_object_unref( t2 );
return( 0 );
}
int
im_conv_f_raw( VipsImage *in, VipsImage *out, DOUBLEMASK *mask )
{