vigra - vigra/bordertreatment.hxx Source File

[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]

bordertreatment.hxx |

1 /************************************************************************/
2 /* */
3 /* Copyright 1998-2002 by Ullrich Koethe */
4 /* */
5 /* This file is part of the VIGRA computer vision library. */
6 /* The VIGRA Website is */
7 /* http://hci.iwr.uni-heidelberg.de/vigra/ */
8 /* Please direct questions, bug reports, and contributions to */
9 /* ullrich.koethe@iwr.uni-heidelberg.de or */
10 /* vigra@informatik.uni-hamburg.de */
11 /* */
12 /* Permission is hereby granted, free of charge, to any person */
13 /* obtaining a copy of this software and associated documentation */
14 /* files (the "Software"), to deal in the Software without */
15 /* restriction, including without limitation the rights to use, */
16 /* copy, modify, merge, publish, distribute, sublicense, and/or */
17 /* sell copies of the Software, and to permit persons to whom the */
18 /* Software is furnished to do so, subject to the following */
19 /* conditions: */
20 /* */
21 /* The above copyright notice and this permission notice shall be */
22 /* included in all copies or substantial portions of the */
23 /* Software. */
24 /* */
25 /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND */
26 /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES */
27 /* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND */
28 /* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT */
29 /* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, */
30 /* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING */
31 /* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR */
32 /* OTHER DEALINGS IN THE SOFTWARE. */
33 /* */
34 /************************************************************************/
35
36
37 #ifndef VIGRA_BORDERTREATMENT_HXX
38 #define VIGRA_BORDERTREATMENT_HXX
39
40 namespace vigra {
41
42
43 /** \page BorderTreatmentMode BorderTreatmentMode
44
45 Choose between different border treatment modes. In the convolution
46 algorithms, these modes apply to
47 all image pixels where the kernel does not completely fit inside
48 the image.
49
50 <b>\#include</b> <vigra/bordertreatment.hxx><br>
51 Namespace: vigra
52
53 \code
54 enum BorderTreatmentMode
55 {
56 // do not operate on a pixel where the kernel does
57 // not fit in the image
58 BORDER_TREATMENT_AVOID,
59
60 // clip kernel at image border (this is only useful if the
61 // kernel is >= 0 everywhere)
62 BORDER_TREATMENT_CLIP,
63
64 // repeat the nearest valid pixel
65 BORDER_TREATMENT_REPEAT,
66
67 // reflect image at last row/column
68 BORDER_TREATMENT_REFLECT,
69
70 // wrap image around (periodic boundary conditions)
71 BORDER_TREATMENT_WRAP
72
73 // assume that all outside points have value zero
74 BORDER_TREATMENT_ZEROPAD
75 };
76 \endcode
77 */
78 enum BorderTreatmentMode
79 {
80 BORDER_TREATMENT_AVOID,
81 BORDER_TREATMENT_CLIP,
82 BORDER_TREATMENT_REPEAT,
83 BORDER_TREATMENT_REFLECT,
84 BORDER_TREATMENT_WRAP,
85 BORDER_TREATMENT_ZEROPAD
86 };
87
88 } // namespace vigra
89
90 #endif // VIGRA_BORDERTREATMENT_HXX

© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) Heidelberg Collaboratory for Image Processing, University of Heidelberg, Germany | html generated using doxygen and Python vigra 1.10.0 (Mon Nov 18 2013)