1 /* morphology.h
2  *
3  * 20/9/09
4  * 	- from proto.h
5  */
6 
7 /*
8 
9     This file is part of VIPS.
10 
11     VIPS is free software; you can redistribute it and/or modify
12     it under the terms of the GNU Lesser General Public License as published by
13     the Free Software Foundation; either version 2 of the License, or
14     (at your option) any later version.
15 
16     This program is distributed in the hope that it will be useful,
17     but WITHOUT ANY WARRANTY; without even the implied warranty of
18     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19     GNU Lesser General Public License for more details.
20 
21     You should have received a copy of the GNU Lesser General Public License
22     along with this program; if not, write to the Free Software
23     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24     02110-1301  USA
25 
26  */
27 
28 /*
29 
30     These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
31 
32  */
33 
34 #ifndef VIPS_MORPHOLOGY_H
35 #define VIPS_MORPHOLOGY_H
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif /*__cplusplus*/
40 
41 typedef enum {
42 	VIPS_OPERATION_MORPHOLOGY_ERODE,
43 	VIPS_OPERATION_MORPHOLOGY_DILATE,
44 	VIPS_OPERATION_MORPHOLOGY_LAST
45 } VipsOperationMorphology;
46 
47 int vips_morph( VipsImage *in, VipsImage **out, VipsImage *mask,
48 	VipsOperationMorphology morph, ... )
49 	__attribute__((sentinel));
50 int vips_rank( VipsImage *in, VipsImage **out,
51 	int width, int height, int index, ... )
52 	__attribute__((sentinel));
53 int vips_median( VipsImage *in, VipsImage **out, int size, ... )
54 	__attribute__((sentinel));
55 int vips_countlines( VipsImage *in, double *nolines,
56 	VipsDirection direction, ... )
57 	__attribute__((sentinel));
58 int vips_labelregions( VipsImage *in, VipsImage **mask, ... )
59 	__attribute__((sentinel));
60 int vips_fill_nearest( VipsImage *in, VipsImage **out, ... )
61 	__attribute__((sentinel));
62 
63 #ifdef __cplusplus
64 }
65 #endif /*__cplusplus*/
66 
67 #endif /*VIPS_MORPHOLOGY_H*/
68