small oopes
This commit is contained in:
parent
1c55abca1f
commit
45ccf7f5cb
@ -3642,7 +3642,7 @@ im_profile( IMAGE *in, IMAGE *out, int dir )
|
|||||||
int
|
int
|
||||||
im_mpercent( IMAGE *in, double percent, int *out )
|
im_mpercent( IMAGE *in, double percent, int *out )
|
||||||
{
|
{
|
||||||
if( vips_hist_percent( in, percent / 100.0, out, NULL ) )
|
if( vips_percent( in, percent * 100.0, out, NULL ) )
|
||||||
return( -1 );
|
return( -1 );
|
||||||
|
|
||||||
return( 0 );
|
return( 0 );
|
||||||
|
@ -144,7 +144,7 @@ vips_hist_ismonotonic_init( VipsHistIsmonotonic *ismonotonic )
|
|||||||
* Returns: 0 on success, -1 on error
|
* Returns: 0 on success, -1 on error
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
vips_hist_ismonotonic( VipsImage *in, int *monotonic, ... )
|
vips_hist_ismonotonic( VipsImage *in, gboolean *monotonic, ... )
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
int result;
|
int result;
|
||||||
|
@ -40,6 +40,10 @@ extern "C" {
|
|||||||
|
|
||||||
int vips_maplut( VipsImage *in, VipsImage **out, VipsImage *lut, ... )
|
int vips_maplut( VipsImage *in, VipsImage **out, VipsImage *lut, ... )
|
||||||
__attribute__((sentinel));
|
__attribute__((sentinel));
|
||||||
|
int vips_percent( VipsImage *in, double percent, int *threshold, ... )
|
||||||
|
__attribute__((sentinel));
|
||||||
|
int vips_stdif( VipsImage *in, VipsImage **out, int width, int height, ... )
|
||||||
|
__attribute__((sentinel));
|
||||||
int vips_hist_cum( VipsImage *in, VipsImage **out, ... )
|
int vips_hist_cum( VipsImage *in, VipsImage **out, ... )
|
||||||
__attribute__((sentinel));
|
__attribute__((sentinel));
|
||||||
int vips_hist_norm( VipsImage *in, VipsImage **out, ... )
|
int vips_hist_norm( VipsImage *in, VipsImage **out, ... )
|
||||||
@ -53,11 +57,7 @@ int vips_hist_match( VipsImage *in, VipsImage *ref, VipsImage **out, ... )
|
|||||||
int vips_hist_local( VipsImage *in, VipsImage **out,
|
int vips_hist_local( VipsImage *in, VipsImage **out,
|
||||||
int width, int height, ... )
|
int width, int height, ... )
|
||||||
__attribute__((sentinel));
|
__attribute__((sentinel));
|
||||||
int vips_hist_percent( VipsImage *in, double percent, int *threshold, ... )
|
int vips_hist_ismonotonic( VipsImage *in, gboolean *monotonic, ... )
|
||||||
__attribute__((sentinel));
|
|
||||||
int vips_stdif( VipsImage *in, VipsImage **out, int width, int height, ... )
|
|
||||||
__attribute__((sentinel));
|
|
||||||
int vips_hist_ismonotonic( VipsImage *in, int *monotonic, ... )
|
|
||||||
__attribute__((sentinel));
|
__attribute__((sentinel));
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
Reference in New Issue
Block a user