compat wrapper for cross_phase

This commit is contained in:
John Cupitt 2012-12-06 21:36:41 +00:00
parent 1de6c6bcc6
commit 6602b0680a
4 changed files with 18 additions and 4 deletions

2
TODO
View File

@ -1,5 +1,3 @@
- im_cross_phase.c needs a vips7 compat wrapper
- add vips_band()/vips_bor()
- now we've removed round-to-nearest from NN, we need something extra in the

View File

@ -2873,3 +2873,19 @@ im_minpos_vec( VipsImage *im, int *xpos, int *ypos, double *minima, int n )
return( 0 );
}
int
im_cross_phase( IMAGE *in1, IMAGE *in2, IMAGE *out )
{
VipsImage *x;
if( vips_call( "cross_phase", in1, in2, &x, NULL ) )
return( -1 );
if( im_copy( x, out ) ) {
g_object_unref( x );
return( -1 );
}
g_object_unref( x );
return( 0 );
}

View File

@ -377,8 +377,6 @@ int vips_stats( VipsImage *in, VipsImage **out, ... )
int vips_measure( VipsImage *in, VipsImage **out, int h, int v, ... )
__attribute__((sentinel));
int im_cross_phase( VipsImage *a, VipsImage *b, VipsImage *out );
#ifdef __cplusplus
}
#endif /*__cplusplus*/

View File

@ -671,6 +671,8 @@ int im_maxpos_avg( VipsImage *im, double *xpos, double *ypos, double *out );
int im_linreg( VipsImage **ins, VipsImage *out, double *xs );
int im_cross_phase( VipsImage *a, VipsImage *b, VipsImage *out );
int im_point( VipsImage *im, VipsInterpolate *interpolate,
double x, double y, int band, double *out );
int im_point_bilinear( VipsImage *im,