remove old im_aconv() code
This commit is contained in:
parent
c658332215
commit
0dde4f5e53
@ -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
@ -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 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user