stuff
This commit is contained in:
parent
ea4562a24a
commit
6cc135dcc7
@ -41,6 +41,8 @@
|
||||
<chapter>
|
||||
<title>VIPS operation API by section (no gtkdoc comments yet)</title>
|
||||
<xi:include href="xml/conversion.xml"/>
|
||||
<xi:include href="xml/convolution.xml"/>
|
||||
<xi:include href="xml/mask.xml"/>
|
||||
</chapter>
|
||||
|
||||
<chapter>
|
||||
|
@ -19,6 +19,8 @@ pkginclude_HEADERS = \
|
||||
image.h \
|
||||
vips \
|
||||
conversion.h \
|
||||
convolution.h \
|
||||
mask.h \
|
||||
rect.h \
|
||||
region.h \
|
||||
generate.h \
|
||||
|
87
libvips/include/vips/convolution.h
Normal file
87
libvips/include/vips/convolution.h
Normal file
@ -0,0 +1,87 @@
|
||||
/* convolution.h
|
||||
*
|
||||
* 20/9/09
|
||||
* - from proto.h
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
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_CONVOLUTION_H
|
||||
#define IM_CONVOLUTION_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /*__cplusplus*/
|
||||
|
||||
int im_rank( IMAGE *in, IMAGE *out, int width, int height, int rank );
|
||||
int im_rank_image( IMAGE **in, IMAGE *out, int n, int index );
|
||||
int im_rank_raw( IMAGE *in, IMAGE *out, int xsize, int ysize, int n );
|
||||
int im_zerox( IMAGE *, IMAGE *, 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_maxvalue( IMAGE **in, IMAGE *out, int n );
|
||||
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 );
|
||||
|
||||
int im_phasecor_fft( IMAGE *in1, IMAGE *in2, IMAGE *out );
|
||||
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_embed( IMAGE *, IMAGE *, int, int, int, int, int );
|
||||
|
||||
int im_stretch3( IMAGE *in, IMAGE *out, double dx, double dy );
|
||||
int im_shrink( IMAGE *, IMAGE *, double, double );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /*__cplusplus*/
|
||||
|
||||
#endif /*IM_CONVOLUTION_H*/
|
102
libvips/include/vips/mask.h
Normal file
102
libvips/include/vips/mask.h
Normal file
@ -0,0 +1,102 @@
|
||||
/* convolution.h
|
||||
*
|
||||
* 20/9/09
|
||||
* - from proto.h
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
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_MASK_H
|
||||
#define IM_MASK_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /*__cplusplus*/
|
||||
|
||||
typedef struct im__INTMASK {
|
||||
int xsize;
|
||||
int ysize;
|
||||
int scale;
|
||||
int offset;
|
||||
int *coeff;
|
||||
char *filename;
|
||||
} INTMASK ;
|
||||
|
||||
typedef struct im__DOUBLEMASK {
|
||||
int xsize;
|
||||
int ysize;
|
||||
double scale;
|
||||
double offset;
|
||||
double *coeff;
|
||||
char *filename;
|
||||
} DOUBLEMASK ;
|
||||
|
||||
void im_copy_dmask_matrix( DOUBLEMASK *mask, double **matrix );
|
||||
void im_copy_matrix_dmask( double **matrix, DOUBLEMASK *mask );
|
||||
|
||||
INTMASK *im_create_imask( const char *name, int width, int height );
|
||||
INTMASK *im_create_imaskv( const char *name, int width, int height, ... );
|
||||
DOUBLEMASK *im_create_dmask( const char *name, int width, int height );
|
||||
DOUBLEMASK *im_create_dmaskv( const char *name, int width, int height, ... );
|
||||
|
||||
INTMASK *im_log_imask( const char *name, double, double );
|
||||
DOUBLEMASK *im_log_dmask( const char *name, double, double );
|
||||
INTMASK *im_gauss_imask( const char *name, double, double );
|
||||
INTMASK *im_gauss_imask_sep( const char *name, double, double );
|
||||
DOUBLEMASK *im_gauss_dmask( const char *name, double, double );
|
||||
|
||||
INTMASK *im_dup_imask( INTMASK *m, const char *name );
|
||||
DOUBLEMASK *im_dup_dmask( DOUBLEMASK *m, const char *name );
|
||||
|
||||
int im_free_imask( INTMASK *m );
|
||||
int im_free_dmask( DOUBLEMASK *m );
|
||||
|
||||
INTMASK *im_read_imask( const char *filename );
|
||||
DOUBLEMASK *im_read_dmask( const char *filename );
|
||||
|
||||
void im_print_imask( INTMASK *m );
|
||||
void im_print_dmask( DOUBLEMASK *m );
|
||||
|
||||
int im_write_imask( INTMASK *m );
|
||||
int im_write_dmask( DOUBLEMASK *m );
|
||||
int im_write_imask_name( INTMASK *m, const char *filename );
|
||||
int im_write_dmask_name( DOUBLEMASK *m, const char *filename );
|
||||
|
||||
INTMASK *im_scale_dmask( DOUBLEMASK *m, const char *name );
|
||||
void im_norm_dmask( DOUBLEMASK *mask );
|
||||
int *im_offsets45( int );
|
||||
int *im_offsets90( int );
|
||||
INTMASK *im_rotate_imask90( INTMASK *m, const char *name );
|
||||
INTMASK *im_rotate_imask45( INTMASK *m, const char *name );
|
||||
DOUBLEMASK *im_rotate_dmask90( DOUBLEMASK *m, const char *name );
|
||||
DOUBLEMASK *im_rotate_dmask45( DOUBLEMASK *m, const char *name );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /*__cplusplus*/
|
||||
|
||||
#endif /*IM_MASK_H*/
|
@ -73,83 +73,6 @@ 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 );
|
||||
INTMASK *im_gauss_imask_sep( 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 );
|
||||
|
||||
int im_phasecor_fft( IMAGE *in1, IMAGE *in2, IMAGE *out );
|
||||
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 );
|
||||
|
@ -101,27 +101,7 @@ extern "C" {
|
||||
|
||||
#include <vips/private.h>
|
||||
|
||||
/* Argh, these horrible things must go :(
|
||||
*/
|
||||
|
||||
typedef struct im__INTMASK {
|
||||
int xsize;
|
||||
int ysize;
|
||||
int scale;
|
||||
int offset;
|
||||
int *coeff;
|
||||
char *filename;
|
||||
} INTMASK ;
|
||||
|
||||
typedef struct im__DOUBLEMASK {
|
||||
int xsize;
|
||||
int ysize;
|
||||
double scale;
|
||||
double offset;
|
||||
double *coeff;
|
||||
char *filename;
|
||||
} DOUBLEMASK ;
|
||||
|
||||
#include <vips/mask.h>
|
||||
#include <vips/image.h>
|
||||
#include <vips/memory.h>
|
||||
#include <vips/almostdeprecated.h>
|
||||
@ -145,6 +125,7 @@ typedef struct im__DOUBLEMASK {
|
||||
#include <vips/boolean.h>
|
||||
#include <vips/relational.h>
|
||||
#include <vips/conversion.h>
|
||||
#include <vips/convolution.h>
|
||||
#include <vips/colour.h>
|
||||
#include <vips/disp.h>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user