add im_imask2vips()
This commit is contained in:
parent
2e3d7db0e6
commit
edbbc5fe2b
@ -101,3 +101,17 @@ im_mask2vips( DOUBLEMASK *in, IMAGE *out )
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
int
|
||||
im_imask2vips( INTMASK *in, IMAGE *out )
|
||||
{
|
||||
DOUBLEMASK *d;
|
||||
int result;
|
||||
|
||||
if( !(d = im_imask2dmask( in, in->filename )) )
|
||||
return( -1 );
|
||||
result = im_mask2vips( d, out );
|
||||
im_free_dmask( d );
|
||||
|
||||
return( result );
|
||||
}
|
||||
|
||||
|
@ -771,6 +771,7 @@ int im_blend( VipsImage *c, VipsImage *a, VipsImage *b, VipsImage *out );
|
||||
DOUBLEMASK *im_vips2mask( VipsImage *in, const char *filename );
|
||||
INTMASK *im_vips2imask( IMAGE *in, const char *filename );
|
||||
int im_mask2vips( DOUBLEMASK *in, VipsImage *out );
|
||||
int im_imask2vips( INTMASK *in, VipsImage *out );
|
||||
|
||||
int im_bandmean( VipsImage *in, VipsImage *out );
|
||||
int im_recomb( VipsImage *in, VipsImage *out, DOUBLEMASK *recomb );
|
||||
|
Loading…
Reference in New Issue
Block a user