2007-08-29 18:23:50 +02:00
|
|
|
/* @(#) Header file for Birkbeck/VIPS Image Processing Library
|
|
|
|
* Authors: N. Dessipris, K. Martinez, Birkbeck College, London.
|
|
|
|
* and J. Cupitt The National Gallery, London.
|
|
|
|
*
|
|
|
|
* Sept 94
|
|
|
|
*
|
|
|
|
* 15/7/96 JC
|
|
|
|
* - now does C++ extern stuff
|
|
|
|
* - many more protos
|
|
|
|
* 15/4/97 JC
|
|
|
|
* - protos split out here, more of them
|
|
|
|
* - still not complete tho' ...
|
|
|
|
* 8/4/99 JC
|
|
|
|
* - lots of consts added to please C++
|
|
|
|
* - and more protos added
|
|
|
|
* 11/9/06
|
|
|
|
* - internal protos cut out to help SWIG
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
This file is part of VIPS.
|
|
|
|
|
|
|
|
VIPS is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Lesser General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Lesser General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef IM_PROTO_H
|
|
|
|
#define IM_PROTO_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /*__cplusplus*/
|
|
|
|
|
|
|
|
/* Need these for some protos.
|
|
|
|
*/
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <glib-object.h>
|
|
|
|
|
|
|
|
/* If we're being parsed by SWIG, remove gcc attributes.
|
|
|
|
*/
|
|
|
|
#ifdef SWIG
|
|
|
|
# ifndef __attribute__
|
|
|
|
# define __attribute__(x) /*NOTHING*/
|
|
|
|
# endif
|
|
|
|
#endif /*SWIG*/
|
|
|
|
|
|
|
|
/* iofuncs
|
|
|
|
*/
|
|
|
|
int im_init_world( const char *argv0 );
|
|
|
|
GOptionGroup *im_get_option_group( void );
|
|
|
|
|
2007-11-07 17:53:01 +01:00
|
|
|
/* Turn progress feedback on and off.
|
|
|
|
*/
|
|
|
|
void im_progress_set( int progress );
|
|
|
|
|
2007-08-29 18:23:50 +02:00
|
|
|
const char *im_error_buffer( void );
|
|
|
|
int im_debugim( IMAGE * );
|
|
|
|
int im_printlines( IMAGE * );
|
|
|
|
|
|
|
|
int im_header_int( IMAGE *im, const char *field, int *out );
|
|
|
|
int im_header_double( IMAGE *im, const char *field, double *out );
|
|
|
|
int im_header_string( IMAGE *im, const char *field, char **out );
|
|
|
|
GType im_header_get_type( IMAGE *im, const char *field );
|
|
|
|
int im_header_get( IMAGE *im, const char *field, GValue *value_copy );
|
2008-11-17 23:56:16 +01:00
|
|
|
typedef void *(*im_header_map_fn)( IMAGE *, const char *, GValue *, void * );
|
2007-08-29 18:23:50 +02:00
|
|
|
void *im_header_map( IMAGE *im, im_header_map_fn fn, void *a );
|
|
|
|
|
|
|
|
const char *im_version_string( void );
|
|
|
|
int im_version( int flag );
|
|
|
|
const char *im_guess_prefix( const char *, const char * );
|
2008-08-05 17:46:16 +02:00
|
|
|
const char *im_guess_libdir( const char *, const char * );
|
2007-08-29 18:23:50 +02:00
|
|
|
IMAGE *im_init( const char * );
|
|
|
|
IMAGE *im_openout( const char * );
|
2008-08-15 10:40:05 +02:00
|
|
|
IMAGE *im_open_vips( const char * );
|
2007-08-29 18:23:50 +02:00
|
|
|
int im_openin( IMAGE *image );
|
|
|
|
int im_openinrw( IMAGE *image );
|
2008-08-15 10:40:05 +02:00
|
|
|
IMAGE *im_vips_open( const char * );
|
2007-08-29 18:23:50 +02:00
|
|
|
IMAGE *im_setbuf( const char * );
|
|
|
|
IMAGE *im_partial( const char * );
|
|
|
|
IMAGE *im_binfile( const char *, int, int, int, int );
|
|
|
|
IMAGE *im_image( void *, int, int, int, int );
|
|
|
|
|
|
|
|
int im_mapfile( IMAGE * );
|
|
|
|
int im_mapfilerw( IMAGE * );
|
|
|
|
int im_remapfilerw( IMAGE *image );
|
|
|
|
|
|
|
|
IMAGE *im_open( const char *, const char * );
|
|
|
|
IMAGE *im_open_header( const char * );
|
|
|
|
int im_image_sanity( IMAGE * );
|
|
|
|
|
|
|
|
void *im_malloc( IMAGE *im, size_t sz );
|
|
|
|
int im_free( void * );
|
|
|
|
|
|
|
|
int im_close( IMAGE * );
|
|
|
|
int im_rwcheck( IMAGE * );
|
|
|
|
int im_iocheck( IMAGE *, IMAGE * );
|
|
|
|
int im_incheck( IMAGE * );
|
|
|
|
int im_outcheck( IMAGE * );
|
|
|
|
int im_piocheck( IMAGE *, IMAGE * );
|
|
|
|
int im_pincheck( IMAGE * );
|
|
|
|
int im_poutcheck( IMAGE * );
|
|
|
|
int im_cp_desc( IMAGE *, IMAGE * );
|
|
|
|
int im_cp_descv( IMAGE *out, IMAGE *in1, ... )
|
|
|
|
__attribute__((sentinel));
|
|
|
|
int im_cp_desc_array( IMAGE *out, IMAGE *in[] );
|
|
|
|
int im_setupout( IMAGE * );
|
|
|
|
int im_writeline( int, IMAGE *, PEL * );
|
|
|
|
|
|
|
|
int im_isuint( IMAGE * );
|
|
|
|
int im_isint( IMAGE * );
|
|
|
|
int im_isfloat( IMAGE * );
|
|
|
|
int im_isscalar( IMAGE * );
|
|
|
|
int im_iscomplex( IMAGE * );
|
|
|
|
int im_isfile( IMAGE * );
|
|
|
|
int im_ispartial( IMAGE * );
|
|
|
|
int im_isMSBfirst( IMAGE * );
|
|
|
|
int im_amiMSBfirst( void );
|
|
|
|
|
|
|
|
int im_ispoweroftwo( int );
|
|
|
|
|
|
|
|
int im_existsf( const char *name, ... )
|
|
|
|
__attribute__((format(printf, 1, 2)));
|
|
|
|
int im_isvips( const char * );
|
|
|
|
|
|
|
|
int im_add_close_callback( IMAGE *, im_callback_fn, void *, void * );
|
2007-11-07 17:53:01 +01:00
|
|
|
int im_add_preclose_callback( IMAGE *, im_callback_fn, void *, void * );
|
|
|
|
int im_add_evalstart_callback( IMAGE *, im_callback_fn, void *, void * );
|
2007-08-29 18:23:50 +02:00
|
|
|
int im_add_eval_callback( IMAGE *, im_callback_fn, void *, void * );
|
|
|
|
int im_add_evalend_callback( IMAGE *, im_callback_fn, void *, void * );
|
2008-07-02 16:35:21 +02:00
|
|
|
int im_add_invalidate_callback( IMAGE *, im_callback_fn, void *, void * );
|
2007-08-29 18:23:50 +02:00
|
|
|
|
|
|
|
void error_exit( const char *, ... )
|
|
|
|
__attribute__((noreturn, format(printf, 1, 2)));
|
|
|
|
void im_error_clear( void );
|
|
|
|
void im_verror( const char *domain, const char *fmt, va_list ap );
|
|
|
|
void im_error( const char *domain, const char *fmt, ... )
|
|
|
|
__attribute__((format(printf, 2, 3)));
|
|
|
|
void im_error_system( int err, const char *domain, const char *fmt, ... )
|
|
|
|
__attribute__((format(printf, 3, 4)));
|
|
|
|
void im_warn( const char *domain, const char *fmt, ... )
|
|
|
|
__attribute__((format(printf, 2, 3)));
|
|
|
|
void im_diag( const char *domain, const char *fmt, ... )
|
|
|
|
__attribute__((format(printf, 2, 3)));
|
|
|
|
|
|
|
|
int im_bits_of_fmt( int );
|
|
|
|
const char *im_Type2char( int );
|
|
|
|
const char *im_BandFmt2char( int );
|
|
|
|
const char *im_Coding2char( int );
|
|
|
|
const char *im_Compression2char( int );
|
|
|
|
const char *im_dhint2char( im_demand_type );
|
|
|
|
const char *im_dtype2char( im_desc_type );
|
|
|
|
int im_char2Type( const char * );
|
|
|
|
int im_char2BandFmt( const char * );
|
|
|
|
int im_char2Coding( const char * );
|
|
|
|
int im_char2Compression( const char * );
|
|
|
|
|
|
|
|
int im_unmapfile( IMAGE * );
|
|
|
|
void im_printdesc( IMAGE * );
|
|
|
|
void im_initdesc( IMAGE *,
|
|
|
|
int, int, int, int, int, int, int, float, float,
|
|
|
|
int, int );
|
|
|
|
int im_histlin( IMAGE *image, const char *fmt, ... )
|
|
|
|
__attribute__((format(printf, 2, 3)));
|
|
|
|
int im_updatehist( IMAGE *out, const char *name, int argc, char *argv[] );
|
|
|
|
const char *im_history_get( IMAGE *im );
|
|
|
|
|
|
|
|
int im_render( IMAGE *in, IMAGE *out, IMAGE *mask,
|
|
|
|
int width, int height, int max,
|
|
|
|
void (*notify)( IMAGE *, Rect *, void * ), void *client );
|
|
|
|
int im_render_fade( IMAGE *in, IMAGE *out, IMAGE *mask,
|
|
|
|
int width, int height, int max,
|
|
|
|
int fps, int steps,
|
|
|
|
int priority,
|
|
|
|
void (*notify)( IMAGE *, Rect *, void * ), void *client );
|
|
|
|
int im_cache( IMAGE *in, IMAGE *out, int width, int height, int max );
|
|
|
|
|
|
|
|
/* morphology
|
|
|
|
*/
|
|
|
|
int im_dilate( IMAGE *in, IMAGE *out, INTMASK *m );
|
|
|
|
int im_dilate_raw( IMAGE *in, IMAGE *out, INTMASK *m );
|
|
|
|
int im_erode( IMAGE *in, IMAGE *out, INTMASK *m );
|
|
|
|
int im_erode_raw( IMAGE *in, IMAGE *out, INTMASK *m );
|
|
|
|
int im_cntlines( IMAGE *im, double *nolines, int flag );
|
|
|
|
int im_profile( IMAGE *in, IMAGE *out, int dir );
|
|
|
|
|
|
|
|
/* convolution
|
|
|
|
*/
|
|
|
|
void im_copy_dmask_matrix( DOUBLEMASK *mask, double **matrix );
|
|
|
|
void im_copy_matrix_dmask( double **matrix, DOUBLEMASK *mask );
|
|
|
|
INTMASK *im_create_imask( const char *, int, int );
|
|
|
|
INTMASK *im_create_imaskv( const char *, int, int, ... );
|
|
|
|
DOUBLEMASK *im_create_dmask( const char *, int, int );
|
|
|
|
DOUBLEMASK *im_create_dmaskv( const char *, int, int, ... );
|
|
|
|
INTMASK *im_dup_imask( INTMASK *, const char * );
|
|
|
|
DOUBLEMASK *im_dup_dmask( DOUBLEMASK *, const char * );
|
|
|
|
int im_free_imask( INTMASK * );
|
|
|
|
int im_free_dmask( DOUBLEMASK * );
|
|
|
|
INTMASK *im_read_imask( const char * );
|
|
|
|
DOUBLEMASK *im_read_dmask( const char * );
|
|
|
|
void im_print_imask( INTMASK * );
|
|
|
|
void im_print_dmask( DOUBLEMASK * );
|
|
|
|
int im_write_imask( INTMASK * );
|
|
|
|
int im_write_dmask( DOUBLEMASK * );
|
|
|
|
int im_write_imask_name( INTMASK *, const char * );
|
|
|
|
int im_write_dmask_name( DOUBLEMASK *, const char * );
|
|
|
|
INTMASK *im_scale_dmask( DOUBLEMASK *, const char * );
|
|
|
|
void im_norm_dmask( DOUBLEMASK *mask );
|
|
|
|
int *im_offsets45( int );
|
|
|
|
int *im_offsets90( int );
|
|
|
|
INTMASK *im_rotate_imask90( INTMASK *, const char * );
|
|
|
|
INTMASK *im_rotate_imask45( INTMASK *, const char * );
|
|
|
|
DOUBLEMASK *im_rotate_dmask90( DOUBLEMASK *, const char * );
|
|
|
|
DOUBLEMASK *im_rotate_dmask45( DOUBLEMASK *, const char * );
|
|
|
|
INTMASK *im_log_imask( const char *, double, double );
|
|
|
|
DOUBLEMASK *im_log_dmask( const char *, double, double );
|
|
|
|
INTMASK *im_gauss_imask( const char *, double, double );
|
|
|
|
DOUBLEMASK *im_gauss_dmask( const char *, double, double );
|
|
|
|
|
|
|
|
int im_rank( IMAGE *, IMAGE *, int, int, int );
|
|
|
|
int im_sharpen( IMAGE *, IMAGE *, int, double, double, double, double, double );
|
|
|
|
int im_addgnoise( IMAGE *, IMAGE *, double );
|
|
|
|
int im_gaussnoise( IMAGE *, int, int, double, double );
|
|
|
|
|
|
|
|
int im_zerox( IMAGE *, IMAGE *, int );
|
|
|
|
|
|
|
|
int im_maxvalue( IMAGE **in, IMAGE *out, int n );
|
|
|
|
int im_rank_image( IMAGE **in, IMAGE *out, int n, int index );
|
|
|
|
int im_compass( IMAGE *, IMAGE *, INTMASK * );
|
|
|
|
int im_gradient( IMAGE *, IMAGE *, INTMASK * );
|
|
|
|
int im_lindetect( IMAGE *, IMAGE *, INTMASK * );
|
|
|
|
int im_conv( IMAGE *, IMAGE *, INTMASK * );
|
|
|
|
int im_conv_raw( IMAGE *, IMAGE *, INTMASK * );
|
|
|
|
int im_convf( IMAGE *, IMAGE *, DOUBLEMASK * );
|
|
|
|
int im_convf_raw( IMAGE *, IMAGE *, DOUBLEMASK * );
|
|
|
|
int im_convsep( IMAGE *, IMAGE *, INTMASK * );
|
|
|
|
int im_convsep_raw( IMAGE *, IMAGE *, INTMASK * );
|
|
|
|
int im_convsepf( IMAGE *, IMAGE *, DOUBLEMASK * );
|
|
|
|
int im_convsepf_raw( IMAGE *, IMAGE *, DOUBLEMASK * );
|
|
|
|
int im_convsub( IMAGE *, IMAGE *, INTMASK *, int, int );
|
|
|
|
|
|
|
|
int im_grad_x( IMAGE *in, IMAGE *out );
|
|
|
|
int im_grad_y( IMAGE *in, IMAGE *out );
|
|
|
|
|
2008-01-22 11:43:26 +01:00
|
|
|
int im_phasecor_fft( IMAGE *in1, IMAGE *in2, IMAGE *out );
|
2007-08-29 18:23:50 +02:00
|
|
|
int im_fastcor( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_fastcor_raw( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_spcor( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_spcor_raw( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_gradcor( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_gradcor_raw( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_contrast_surface( IMAGE *, IMAGE *, int, int );
|
|
|
|
int im_contrast_surface_raw( IMAGE *, IMAGE *, int, int );
|
|
|
|
|
|
|
|
int im_resize_linear( IMAGE *, IMAGE *, int, int );
|
|
|
|
int im_mpercent( IMAGE *, double, int * );
|
|
|
|
int im_shrink( IMAGE *, IMAGE *, double, double );
|
|
|
|
int im_embed( IMAGE *, IMAGE *, int, int, int, int, int );
|
|
|
|
|
|
|
|
int im_stretch3( IMAGE *in, IMAGE *out, double dx, double dy );
|
|
|
|
int im_rank_raw( IMAGE *in, IMAGE *out, int xsize, int ysize, int n );
|
|
|
|
|
|
|
|
/* freq_filt
|
|
|
|
*/
|
|
|
|
int im_fractsurf( IMAGE *out, int size, double frd );
|
|
|
|
int im_freqflt( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_disp_ps( IMAGE *, IMAGE * );
|
|
|
|
int im_rotquad( IMAGE *, IMAGE * );
|
|
|
|
int im_fwfft( IMAGE *, IMAGE * );
|
|
|
|
int im_invfft( IMAGE *, IMAGE * );
|
|
|
|
int im_invfftr( IMAGE *, IMAGE * );
|
|
|
|
|
|
|
|
/* arithmetic
|
|
|
|
*/
|
|
|
|
DOUBLEMASK *im_measure( IMAGE *, IMAGE_BOX *,
|
|
|
|
int, int, int *, int, const char * );
|
|
|
|
DOUBLEMASK *im_stats( IMAGE * );
|
|
|
|
int im_abs( IMAGE *in, IMAGE *out );
|
|
|
|
int im_max( IMAGE *in, double *out );
|
|
|
|
int im_min( IMAGE *in, double *out );
|
|
|
|
int im_avg( IMAGE *in, double *out );
|
|
|
|
int im_deviate( IMAGE *in, double *out );
|
|
|
|
int im_maxpos( IMAGE *in, int *xpos, int *ypos, double *out );
|
|
|
|
int im_minpos( IMAGE *in, int *xpos, int *ypos, double *out );
|
|
|
|
int im_maxpos_avg( IMAGE *im, double *xpos, double *ypos, double *out );
|
|
|
|
int im_maxpos_vec( IMAGE *im, int *xpos, int *ypos, double *maxima, int n );
|
|
|
|
int im_minpos_vec( IMAGE *im, int *xpos, int *ypos, double *minima, int n );
|
|
|
|
int im_add( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_subtract( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_invert( IMAGE *, IMAGE * );
|
|
|
|
int im_linreg( IMAGE **ins, IMAGE *out, double *xs );
|
|
|
|
int im_lintra( double, IMAGE *, double, IMAGE * );
|
|
|
|
int im_lintra_vec( int n, double *a, IMAGE *in, double *b, IMAGE *out );
|
|
|
|
int im_multiply( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_divide( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_point_bilinear( IMAGE *im, double x, double y, int band, double *val );
|
|
|
|
int im_powtra( IMAGE *, IMAGE *, double );
|
|
|
|
int im_powtra_vec( IMAGE *in, IMAGE *out, int n, double *e );
|
|
|
|
int im_exptra( IMAGE *, IMAGE * );
|
|
|
|
int im_exp10tra( IMAGE *, IMAGE * );
|
|
|
|
int im_expntra( IMAGE *, IMAGE *, double );
|
|
|
|
int im_expntra_vec( IMAGE *in, IMAGE *out, int n, double *e );
|
|
|
|
int im_logtra( IMAGE *, IMAGE * );
|
|
|
|
int im_log10tra( IMAGE *, IMAGE * );
|
|
|
|
int im_remainder( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_remainderconst( IMAGE *, IMAGE *, double );
|
|
|
|
int im_remainderconst_vec( IMAGE *, IMAGE *, int, double * );
|
|
|
|
int im_floor( IMAGE *, IMAGE * );
|
|
|
|
int im_rint( IMAGE *, IMAGE * );
|
|
|
|
int im_ceil( IMAGE *, IMAGE * );
|
|
|
|
int im_sintra( IMAGE *, IMAGE * );
|
|
|
|
int im_sign( IMAGE *in, IMAGE *out );
|
|
|
|
int im_costra( IMAGE *, IMAGE * );
|
|
|
|
int im_tantra( IMAGE *, IMAGE * );
|
|
|
|
int im_asintra( IMAGE *, IMAGE * );
|
|
|
|
int im_acostra( IMAGE *, IMAGE * );
|
|
|
|
int im_atantra( IMAGE *, IMAGE * );
|
|
|
|
int im_cmulnorm( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_fav4( IMAGE **, IMAGE * );
|
|
|
|
int im_gadd( double, IMAGE *, double, IMAGE *, double, IMAGE *);
|
|
|
|
int im_litecor( IMAGE *, IMAGE *, IMAGE *, int, double );
|
|
|
|
int im_bandmean( IMAGE *in, IMAGE *out );
|
2008-01-22 11:29:06 +01:00
|
|
|
int im_cross_phase( IMAGE *a, IMAGE *b, IMAGE *out );
|
2007-08-29 18:23:50 +02:00
|
|
|
|
|
|
|
/* boolean
|
|
|
|
*/
|
|
|
|
int im_andimage( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_andconst( IMAGE *, IMAGE *, double );
|
|
|
|
int im_and_vec( IMAGE *, IMAGE *, int, double * );
|
|
|
|
int im_orimage( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_orconst( IMAGE *, IMAGE *, double );
|
|
|
|
int im_or_vec( IMAGE *, IMAGE *, int, double * );
|
|
|
|
int im_eorimage( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_eorconst( IMAGE *, IMAGE *, double );
|
|
|
|
int im_eor_vec( IMAGE *, IMAGE *, int, double * );
|
|
|
|
int im_shiftleft( IMAGE *, IMAGE *, int );
|
|
|
|
int im_shiftright( IMAGE *, IMAGE *, int );
|
|
|
|
|
2007-10-19 19:14:25 +02:00
|
|
|
/* cimg
|
|
|
|
*/
|
|
|
|
int im_greyc_mask( IMAGE *in, IMAGE *out, IMAGE *mask,
|
|
|
|
int iterations, float amplitude, float sharpness, float anisotropy,
|
|
|
|
float alpha, float sigma, float dl, float da, float gauss_prec,
|
|
|
|
int interpolation, int fast_approx );
|
|
|
|
|
2007-08-29 18:23:50 +02:00
|
|
|
/* histogram
|
|
|
|
*/
|
|
|
|
int im_maplut( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_gammacorrect( IMAGE *, IMAGE *, double );
|
|
|
|
int im_heq( IMAGE *in, IMAGE *out, int bandno );
|
|
|
|
int im_hist( IMAGE *in, IMAGE *out, int bandno );
|
|
|
|
int im_histeq( IMAGE *in, IMAGE *out );
|
|
|
|
int im_histnorm( IMAGE *in, IMAGE *out );
|
|
|
|
int im_histcum( IMAGE *in, IMAGE *out );
|
|
|
|
int im_histgr( IMAGE *in, IMAGE *out, int bandno );
|
|
|
|
int im_histnD( IMAGE *in, IMAGE *out, int bins );
|
|
|
|
int im_histplot( IMAGE *hist, IMAGE *histplot );
|
|
|
|
int im_histspec( IMAGE *hin, IMAGE *href, IMAGE *lut );
|
|
|
|
int im_hsp( IMAGE *in, IMAGE *ref, IMAGE *out );
|
|
|
|
int im_identity( IMAGE *lut, int bands );
|
|
|
|
int im_identity_ushort( IMAGE *lut, int bands, int sz );
|
|
|
|
int im_lhisteq( IMAGE *in, IMAGE *out, int xwin, int ywin );
|
|
|
|
int im_lhisteq_raw( IMAGE *in, IMAGE *out, int xwin, int ywin );
|
|
|
|
int im_invertlut( DOUBLEMASK *input, IMAGE *output, int lut_size );
|
|
|
|
int im_buildlut( DOUBLEMASK *input, IMAGE *output );
|
|
|
|
int im_stdif( IMAGE *in, IMAGE *out,
|
|
|
|
double a, double m0, double b, double s0, int xwin, int ywin );
|
|
|
|
int im_stdif_raw( IMAGE *in, IMAGE *out,
|
|
|
|
double a, double m0, double b, double s0, int xwin, int ywin );
|
|
|
|
int im_tone_build_range( IMAGE *out,
|
|
|
|
int in_max, int out_max,
|
|
|
|
double Lb, double Lw, double Ps, double Pm, double Ph,
|
|
|
|
double S, double M, double H );
|
|
|
|
int im_tone_build( IMAGE *out,
|
|
|
|
double Lb, double Lw, double Ps, double Pm, double Ph,
|
|
|
|
double S, double M, double H );
|
|
|
|
int im_tone_analyse( IMAGE *in, IMAGE *lut,
|
|
|
|
double Ps, double Pm, double Ph, double S, double M, double H );
|
|
|
|
int im_ismonotonic( IMAGE *lut, int *out );
|
|
|
|
int im_tone_map( IMAGE *in, IMAGE *out, IMAGE *lut );
|
|
|
|
int im_project( IMAGE *in, IMAGE *hout, IMAGE *vout );
|
|
|
|
|
|
|
|
/* conversion
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Copy and swap types.
|
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
IM_ARCH_NATIVE,
|
|
|
|
IM_ARCH_BYTE_SWAPPED,
|
|
|
|
IM_ARCH_LSB_FIRST,
|
|
|
|
IM_ARCH_MSB_FIRST
|
|
|
|
} im_arch_type;
|
|
|
|
|
2008-11-17 23:56:16 +01:00
|
|
|
gboolean im_isnative( im_arch_type arch );
|
|
|
|
|
2007-08-29 18:23:50 +02:00
|
|
|
DOUBLEMASK *im_vips2mask( IMAGE *, const char * );
|
|
|
|
int im_mask2vips( DOUBLEMASK *, IMAGE * );
|
|
|
|
int im_copy_set( IMAGE *, IMAGE *, int, float, float, int, int );
|
|
|
|
int im_copy_set_meta( IMAGE *in, IMAGE *out, const char *field, GValue *meta );
|
|
|
|
int im_copy_morph( IMAGE *, IMAGE *, int, int, int );
|
|
|
|
int im_copy( IMAGE *, IMAGE * );
|
|
|
|
int im_copy_swap( IMAGE *in, IMAGE *out );
|
|
|
|
int im_copy_from( IMAGE *in, IMAGE *out, im_arch_type architecture );
|
|
|
|
int im_extract( IMAGE *, IMAGE *, IMAGE_BOX * );
|
|
|
|
int im_extract_band( IMAGE *in, IMAGE *out, int band );
|
|
|
|
int im_extract_bands( IMAGE *in, IMAGE *out, int band, int nbands );
|
|
|
|
int im_extract_area( IMAGE *in, IMAGE *out, int x, int y, int w, int h );
|
|
|
|
int im_extract_areabands( IMAGE *in, IMAGE *out,
|
|
|
|
int left, int top, int width, int height, int band, int nbands );
|
|
|
|
int im_subsample( IMAGE *, IMAGE *, int, int );
|
|
|
|
int im_zoom( IMAGE *, IMAGE *, int, int );
|
|
|
|
int im_bandjoin( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_gbandjoin( IMAGE **, IMAGE *, int );
|
|
|
|
int im_black( IMAGE *, int, int, int );
|
|
|
|
int im_text( IMAGE *out, const char *text, const char *font,
|
|
|
|
int width, int alignment, int dpi );
|
|
|
|
int im_c2amph( IMAGE *, IMAGE * );
|
|
|
|
int im_c2rect( IMAGE *, IMAGE * );
|
|
|
|
int im_clip2fmt( IMAGE *in, IMAGE *out, int ofmt );
|
|
|
|
int im_clip2dcm( IMAGE *, IMAGE * );
|
|
|
|
int im_clip2cm( IMAGE *, IMAGE * );
|
|
|
|
int im_clip2us( IMAGE *, IMAGE * );
|
|
|
|
int im_clip2ui( IMAGE *, IMAGE * );
|
|
|
|
int im_clip2s( IMAGE *, IMAGE * );
|
|
|
|
int im_clip2i( IMAGE *, IMAGE * );
|
|
|
|
int im_clip2d( IMAGE *, IMAGE * );
|
|
|
|
int im_clip2f( IMAGE *, IMAGE * );
|
|
|
|
int im_clip2c( IMAGE *, IMAGE * );
|
|
|
|
int im_clip( IMAGE *, IMAGE * );
|
|
|
|
int im_ri2c( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_c2imag( IMAGE *, IMAGE * );
|
|
|
|
int im_c2real( IMAGE *, IMAGE * );
|
|
|
|
int im_c2ps( IMAGE *, IMAGE * );
|
|
|
|
int im_fliphor( IMAGE *, IMAGE * );
|
|
|
|
int im_flipver( IMAGE *, IMAGE * );
|
|
|
|
int im_falsecolour( IMAGE *, IMAGE * );
|
|
|
|
int im_recomb( IMAGE *, IMAGE *, DOUBLEMASK * );
|
|
|
|
int im_insert( IMAGE *, IMAGE *, IMAGE *, int, int );
|
|
|
|
int im_insert_noexpand( IMAGE *, IMAGE *, IMAGE *, int, int );
|
|
|
|
int im_rot90( IMAGE *, IMAGE * );
|
|
|
|
int im_rot180( IMAGE *, IMAGE * );
|
|
|
|
int im_rot270( IMAGE *, IMAGE * );
|
|
|
|
int im_lrjoin( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_tbjoin( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_scale( IMAGE *, IMAGE * );
|
|
|
|
int im_scaleps( IMAGE *, IMAGE * );
|
|
|
|
int im_slice( IMAGE *, IMAGE *, double, double );
|
|
|
|
int im_system( IMAGE *im, const char *cmd, char **out );
|
|
|
|
int im_print( const char *message );
|
|
|
|
int im_thresh( IMAGE *, IMAGE *, double );
|
|
|
|
int im_jpeg2vips( const char *, IMAGE * );
|
|
|
|
int im_vips2jpeg( IMAGE *, const char * );
|
|
|
|
int im_vips2mimejpeg( IMAGE *, int );
|
|
|
|
int im_vips2bufjpeg( IMAGE *, IMAGE *, int, char **, int * );
|
|
|
|
int im_vips2tiff( IMAGE *, const char * );
|
|
|
|
int im_bernd( const char *, int, int, int, int );
|
|
|
|
int im_tiff2vips( const char *, IMAGE * );
|
|
|
|
int im_tile_cache( IMAGE *, IMAGE *, int, int, int );
|
|
|
|
int im_magick2vips( const char *, IMAGE * );
|
|
|
|
int im_png2vips( const char *, IMAGE * );
|
|
|
|
int im_exr2vips( const char *, IMAGE * );
|
|
|
|
int im_ppm2vips( const char *, IMAGE * );
|
|
|
|
int im_vips2ppm( IMAGE *, const char * );
|
|
|
|
int im_analyze2vips( const char *filename, IMAGE *out );
|
|
|
|
int im_vips2csv( IMAGE *in, const char *filename );
|
|
|
|
int im_csv2vips( const char *filename, IMAGE *out );
|
|
|
|
int im_vips2png( IMAGE *, const char * );
|
|
|
|
int im_raw2vips( const char *filename, IMAGE *out,
|
|
|
|
int width, int height, int bpp, int offset );
|
|
|
|
int im_replicate( IMAGE *in, IMAGE *out, int across, int down );
|
|
|
|
int im_grid( IMAGE *in, IMAGE *out, int tile_height, int across, int down );
|
|
|
|
int im_msb ( IMAGE * in, IMAGE * out );
|
|
|
|
int im_msb_band ( IMAGE * in, IMAGE * out, int band );
|
2008-01-22 11:56:14 +01:00
|
|
|
int im_wrap( IMAGE *in, IMAGE *out, int x, int y );
|
2008-08-15 10:40:05 +02:00
|
|
|
int im_vips2raw( IMAGE *in, int fd );
|
2007-08-29 18:23:50 +02:00
|
|
|
|
|
|
|
/* colour
|
|
|
|
*/
|
|
|
|
int im_Lab2LCh( IMAGE *, IMAGE * );
|
|
|
|
int im_LCh2Lab( IMAGE *, IMAGE * );
|
|
|
|
int im_LabQ2XYZ( IMAGE *, IMAGE * );
|
|
|
|
int im_LCh2UCS( IMAGE *, IMAGE * );
|
|
|
|
int im_Lab2LCh( IMAGE *, IMAGE * );
|
|
|
|
int im_Lab2LabQ( IMAGE *, IMAGE * );
|
|
|
|
int im_Lab2LabS( IMAGE *, IMAGE * );
|
|
|
|
int im_Lab2XYZ( IMAGE *, IMAGE * );
|
|
|
|
int im_Lab2XYZ_temp( IMAGE *, IMAGE *, double X0, double Y0, double Z0 );
|
|
|
|
int im_Lab2UCS( IMAGE *, IMAGE * );
|
|
|
|
int im_LabQ2Lab( IMAGE *, IMAGE * );
|
|
|
|
int im_LabQ2LabS( IMAGE *, IMAGE * );
|
|
|
|
int im_LabS2LabQ( IMAGE *, IMAGE * );
|
|
|
|
int im_LabS2Lab( IMAGE *, IMAGE * );
|
|
|
|
int im_UCS2XYZ( IMAGE *, IMAGE * );
|
|
|
|
int im_UCS2LCh( IMAGE *, IMAGE * );
|
|
|
|
int im_UCS2Lab( IMAGE *, IMAGE * );
|
|
|
|
int im_XYZ2Lab( IMAGE *, IMAGE * );
|
|
|
|
int im_XYZ2Lab_temp( IMAGE *, IMAGE *, double X0, double Y0, double Z0 );
|
|
|
|
int im_XYZ2UCS( IMAGE *, IMAGE * );
|
|
|
|
int im_sRGB2XYZ( IMAGE *, IMAGE * );
|
|
|
|
int im_XYZ2sRGB( IMAGE *, IMAGE * );
|
|
|
|
int im_Yxy2XYZ( IMAGE *, IMAGE * );
|
|
|
|
int im_XYZ2Yxy( IMAGE *, IMAGE * );
|
|
|
|
|
|
|
|
int im_dECMC_fromLab( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_dE_fromXYZ( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_dE_fromLab( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
|
|
|
|
void imb_Lab2LCh( float *, float *, int );
|
|
|
|
void imb_LCh2Lab( float *, float *, int );
|
|
|
|
void imb_XYZ2Lab_tables( void );
|
|
|
|
void imb_XYZ2Lab( float *, float *, int, im_colour_temperature * );
|
|
|
|
void imb_Lab2XYZ( float *, float *, int, im_colour_temperature * );
|
|
|
|
void imb_LabQ2Lab( PEL *, float *, int );
|
|
|
|
void imb_Lab2LabQ( float *, PEL *, int );
|
|
|
|
void imb_LabS2Lab( signed short *, float *, int );
|
|
|
|
void imb_Lab2LabS( float *, signed short *, int n );
|
|
|
|
|
|
|
|
void im_col_make_tables_UCS( void );
|
|
|
|
|
|
|
|
float im_col_dECMC( float, float, float, float, float, float );
|
|
|
|
float im_col_dE00( float, float, float, float, float, float );
|
|
|
|
|
|
|
|
int im_lab_morph( IMAGE *in, IMAGE *out,
|
|
|
|
DOUBLEMASK *mask,
|
|
|
|
double L_offset, double L_scale,
|
|
|
|
double a_scale, double b_scale );
|
|
|
|
|
|
|
|
/* other
|
|
|
|
*/
|
|
|
|
int im_feye( IMAGE *image,
|
|
|
|
const int xsize, const int ysize, const double factor );
|
|
|
|
int im_eye( IMAGE *image,
|
|
|
|
const int xsize, const int ysize, const double factor );
|
|
|
|
int im_zone( IMAGE *im, int size );
|
|
|
|
int im_fzone( IMAGE *im, int size );
|
|
|
|
int im_grey( IMAGE *im, const int xsize, const int ysize );
|
|
|
|
int im_fgrey( IMAGE *im, const int xsize, const int ysize );
|
|
|
|
int im_make_xy( IMAGE *out, const int xsize, const int ysize );
|
|
|
|
int im_benchmarkn( IMAGE *in, IMAGE *out, int n );
|
|
|
|
int im_benchmark2( IMAGE *in, double *out );
|
|
|
|
|
|
|
|
int im_cooc_matrix( IMAGE *im, IMAGE *m,
|
|
|
|
int xp, int yp, int xs, int ys, int dx, int dy, int flag );
|
|
|
|
int im_cooc_asm( IMAGE *m, double *asmoment );
|
|
|
|
int im_cooc_contrast( IMAGE *m, double *contrast );
|
|
|
|
int im_cooc_correlation( IMAGE *m, double *correlation );
|
|
|
|
int im_cooc_entropy( IMAGE *m, double *entropy );
|
|
|
|
|
|
|
|
int im_glds_matrix( IMAGE *im, IMAGE *m,
|
|
|
|
int xpos, int ypos, int xsize, int ysize, int dx, int dy );
|
|
|
|
int im_glds_asm( IMAGE *m, double *asmoment );
|
|
|
|
int im_glds_contrast( IMAGE *m, double *contrast );
|
|
|
|
int im_glds_entropy( IMAGE *m, double *entropy );
|
|
|
|
int im_glds_mean( IMAGE *m, double *mean );
|
|
|
|
|
|
|
|
int im_simcontr( IMAGE *image, int xs, int ys );
|
|
|
|
int im_sines( IMAGE *image,
|
|
|
|
int xsize, int ysize, double horfreq, double verfreq );
|
|
|
|
int im_spatres( IMAGE *in, IMAGE *out, int step );
|
|
|
|
|
|
|
|
int im_rightshift_size( IMAGE *in, IMAGE *out, int xshift, int yshift, int band_fmt );
|
|
|
|
|
|
|
|
/* mosaicing
|
|
|
|
*/
|
|
|
|
int im_lrmerge( IMAGE *ref, IMAGE *sec, IMAGE *out,
|
|
|
|
int dx, int dy, int mwidth );
|
|
|
|
int im_tbmerge( IMAGE *ref, IMAGE *sec, IMAGE *out,
|
|
|
|
int dx, int dy, int mwidth );
|
|
|
|
|
|
|
|
int im_lrmerge1( IMAGE *ref, IMAGE *sec, IMAGE *out,
|
|
|
|
int xr1, int yr1, int xs1, int ys1,
|
|
|
|
int xr2, int yr2, int xs2, int ys2,
|
|
|
|
int mwidth );
|
|
|
|
int im_tbmerge1( IMAGE *ref, IMAGE *sec, IMAGE *out,
|
|
|
|
int xr1, int yr1, int xs1, int ys1,
|
|
|
|
int xr2, int yr2, int xs2, int ys2,
|
|
|
|
int mwidth );
|
|
|
|
|
|
|
|
int im_lrmosaic( IMAGE *ref, IMAGE *sec, IMAGE *out,
|
|
|
|
int bandno,
|
|
|
|
int xref, int yref, int xsec, int ysec,
|
|
|
|
int halfcorrelation, int halfarea,
|
|
|
|
int balancetype,
|
|
|
|
int mwidth );
|
|
|
|
int im_tbmosaic( IMAGE *ref, IMAGE *sec, IMAGE *out,
|
|
|
|
int bandno,
|
|
|
|
int xref, int yref, int xsec, int ysec,
|
|
|
|
int halfcorrelation, int halfarea,
|
|
|
|
int balancetype,
|
|
|
|
int mwidth );
|
|
|
|
|
|
|
|
int im_lrmosaic1( IMAGE *ref, IMAGE *sec, IMAGE *out,
|
|
|
|
int bandno,
|
|
|
|
int xr1, int yr1, int xs1, int ys1,
|
|
|
|
int xr2, int yr2, int xs2, int ys2,
|
|
|
|
int halfcorrelation, int halfarea,
|
|
|
|
int balancetype,
|
|
|
|
int mwidth );
|
|
|
|
int im_tbmosaic1( IMAGE *ref, IMAGE *sec, IMAGE *out,
|
|
|
|
int bandno,
|
|
|
|
int xr1, int yr1, int xs1, int ys1,
|
|
|
|
int xr2, int yr2, int xs2, int ys2,
|
|
|
|
int halfcorrelation, int halfarea,
|
|
|
|
int balancetype,
|
|
|
|
int mwidth );
|
|
|
|
|
|
|
|
int im_global_balance( IMAGE *in, IMAGE *out, double gamma );
|
|
|
|
int im_global_balancef( IMAGE *in, IMAGE *out, double gamma );
|
|
|
|
|
|
|
|
int im_match_linear( IMAGE *ref, IMAGE *sec, IMAGE *out,
|
|
|
|
int xr1, int yr1, int xs1, int ys1,
|
|
|
|
int xr2, int yr2, int xs2, int ys2 );
|
|
|
|
int im_match_linear_search( IMAGE *ref, IMAGE *sec, IMAGE *out,
|
|
|
|
int xr1, int yr1, int xs1, int ys1,
|
|
|
|
int xr2, int yr2, int xs2, int ys2,
|
|
|
|
int hwindowsize, int hsearchsize );
|
|
|
|
|
2008-11-17 23:56:16 +01:00
|
|
|
int im_affinei( IMAGE *in, IMAGE *out,
|
|
|
|
VipsInterpolate *interpolate,
|
|
|
|
double a, double b, double c, double d, double dx, double dy,
|
|
|
|
int ox, int oy, int ow, int oh );
|
2008-11-18 23:56:09 +01:00
|
|
|
int im_affinei_all( IMAGE *in, IMAGE *out, VipsInterpolate *interpolate,
|
|
|
|
double a, double b, double c, double d, double dx, double dy ) ;
|
2008-11-17 23:56:16 +01:00
|
|
|
int im_correl( IMAGE *ref, IMAGE *sec,
|
|
|
|
int xref, int yref, int xsec, int ysec,
|
|
|
|
int hwindowsize, int hsearchsize,
|
|
|
|
double *correlation, int *x, int *y );
|
|
|
|
int im_remosaic( IMAGE *in, IMAGE *out,
|
|
|
|
const char *old_str, const char *new_str );
|
|
|
|
|
|
|
|
/* Old stuff, for compat.
|
|
|
|
*/
|
2007-08-29 18:23:50 +02:00
|
|
|
int im_affine( IMAGE *in, IMAGE *out,
|
|
|
|
double a, double b, double c, double d, double dx, double dy,
|
|
|
|
int ox, int oy, int ow, int oh );
|
|
|
|
int im_similarity( IMAGE *in, IMAGE *out,
|
|
|
|
double a, double b, double dx, double dy );
|
|
|
|
int im_similarity_area( IMAGE *in, IMAGE *out,
|
|
|
|
double a, double b, double dx, double dy,
|
|
|
|
int ox, int oy, int ow, int oh );
|
|
|
|
|
2008-02-05 13:31:01 +01:00
|
|
|
int im_align_bands( IMAGE *in, IMAGE *out );
|
2008-02-07 14:05:03 +01:00
|
|
|
int im_maxpos_subpel( IMAGE *in, double *x, double *y );
|
2008-02-05 13:31:01 +01:00
|
|
|
|
2007-08-29 18:23:50 +02:00
|
|
|
/* inplace
|
|
|
|
*/
|
|
|
|
int im_plotmask( IMAGE *, int, int, PEL *, PEL *, Rect * );
|
|
|
|
int im_smear( IMAGE *, int, int, Rect * );
|
|
|
|
int im_smudge( IMAGE *, int, int, Rect * );
|
|
|
|
int im_paintrect( IMAGE *, Rect *, PEL * );
|
|
|
|
int im_circle( IMAGE *, int, int, int, int );
|
|
|
|
int im_insertplace( IMAGE *, IMAGE *, int, int );
|
|
|
|
int im_line( IMAGE *, int, int, int, int, int );
|
|
|
|
int im_fastlineuser();
|
|
|
|
int im_readpoint( IMAGE *, int, int, PEL * );
|
|
|
|
int im_flood( IMAGE *, int, int, PEL *, Rect * );
|
|
|
|
int im_flood_blob( IMAGE *, int, int, PEL *, Rect * );
|
|
|
|
int im_flood_blob_copy( IMAGE *in, IMAGE *out, int x, int y, PEL *ink );
|
|
|
|
int im_lineset( IMAGE *in, IMAGE *out, IMAGE *mask, IMAGE *ink,
|
|
|
|
int n, int *x1v, int *y1v, int *x2v, int *y2v );
|
|
|
|
|
|
|
|
/* relational
|
|
|
|
*/
|
|
|
|
int im_equal( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_equalconst( IMAGE *, IMAGE *, double );
|
|
|
|
int im_equal_vec( IMAGE *, IMAGE *, int, double * );
|
|
|
|
int im_notequal( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_notequalconst( IMAGE *, IMAGE *, double );
|
|
|
|
int im_notequal_vec( IMAGE *, IMAGE *, int, double * );
|
|
|
|
int im_more( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_moreconst( IMAGE *, IMAGE *, double );
|
|
|
|
int im_more_vec( IMAGE *, IMAGE *, int, double * );
|
|
|
|
int im_less( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_lessconst( IMAGE *, IMAGE *, double );
|
|
|
|
int im_less_vec( IMAGE *, IMAGE *, int, double * );
|
|
|
|
int im_moreeq( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_moreeqconst( IMAGE *, IMAGE *, double );
|
|
|
|
int im_moreeq_vec( IMAGE *, IMAGE *, int, double * );
|
|
|
|
int im_lesseq( IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_lesseqconst( IMAGE *, IMAGE *, double );
|
|
|
|
int im_lesseq_vec( IMAGE *, IMAGE *, int, double * );
|
|
|
|
int im_ifthenelse( IMAGE *, IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
int im_blend( IMAGE *, IMAGE *, IMAGE *, IMAGE * );
|
|
|
|
|
|
|
|
/* matrix
|
|
|
|
*/
|
|
|
|
DOUBLEMASK *im_mattrn( DOUBLEMASK *, const char * );
|
|
|
|
DOUBLEMASK *im_matcat( DOUBLEMASK *, DOUBLEMASK *, const char * );
|
|
|
|
DOUBLEMASK *im_matmul( DOUBLEMASK *, DOUBLEMASK *, const char * );
|
|
|
|
|
|
|
|
DOUBLEMASK *im_lu_decomp( const DOUBLEMASK *mat, const char *name );
|
|
|
|
int im_lu_solve( const DOUBLEMASK *lu, double *vec );
|
|
|
|
DOUBLEMASK *im_matinv( const DOUBLEMASK *mat, const char *name );
|
|
|
|
int im_matinv_inplace( DOUBLEMASK *mat );
|
|
|
|
|
|
|
|
|
|
|
|
int *im_ivector();
|
|
|
|
float *im_fvector();
|
|
|
|
double *im_dvector();
|
|
|
|
void im_free_ivector();
|
|
|
|
void im_free_fvector();
|
|
|
|
void im_free_dvector();
|
|
|
|
|
|
|
|
int **im_imat_alloc();
|
|
|
|
float **im_fmat_alloc();
|
|
|
|
double **im_dmat_alloc();
|
|
|
|
void im_free_imat();
|
|
|
|
void im_free_fmat();
|
|
|
|
void im_free_dmat();
|
|
|
|
|
|
|
|
int im_invmat( double **, int );
|
|
|
|
|
|
|
|
/* video
|
|
|
|
*/
|
|
|
|
int im_video_v4l1( IMAGE *im, const char *device,
|
|
|
|
int channel, int brightness, int colour, int contrast, int hue,
|
|
|
|
int ngrabs );
|
|
|
|
int im_video_test( IMAGE *im, int brightness, int error );
|
|
|
|
|
|
|
|
/* Backwards compatibility macros.
|
|
|
|
*/
|
|
|
|
#define im_clear_error_string() im_error_clear()
|
|
|
|
#define im_errorstring() im_error_buffer()
|
|
|
|
|
|
|
|
/* Deprecated API.
|
|
|
|
*/
|
|
|
|
void im_errormsg( const char *fmt, ... )
|
|
|
|
__attribute__((format(printf, 1, 2)));
|
|
|
|
void im_verrormsg( const char *fmt, va_list ap );
|
|
|
|
void im_errormsg_system( int err, const char *fmt, ... )
|
|
|
|
__attribute__((format(printf, 2, 3)));
|
|
|
|
void im_diagnostics( const char *fmt, ... )
|
|
|
|
__attribute__((format(printf, 1, 2)));
|
|
|
|
void im_warning( const char *fmt, ... )
|
|
|
|
__attribute__((format(printf, 1, 2)));
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /*__cplusplus*/
|
|
|
|
|
|
|
|
#endif /*IM_PROTO_H*/
|