2 Copyright 1999-2010 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
8 http://www.imagemagick.org/script/license.php
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
16 MagickCore morphology methods.
18 #ifndef _MAGICKCORE_MORPHOLOGY_H
19 #define _MAGICKCORE_MORPHOLOGY_H
21 #if defined(__cplusplus) || defined(c_plusplus)
25 #include <magick/geometry.h>
29 UndefinedKernel, /* also the 'no-op' kernel */
30 GaussianKernel, /* Convolution Kernels */
36 RectangleKernel, /* Shape Kernels */
41 ChebyshevKernel, /* Distance Measuring Kernels */
44 UserDefinedKernel /* user specified kernel values */
50 /* Basic Morphology methods */
51 ConvolveMorphology, /* Weighted Sum of pixels - Convolve */
52 ErodeMorphology, /* Weighted Value Minimum */
53 DilateMorphology, /* Weighted Value Maximum */
54 ErodeIntensityMorphology, /* Pixel Pick using GreyScale Erode */
55 DilateIntensityMorphology, /* Pixel Pick using GreyScale Dialate */
56 DistanceMorphology, /* Add to Value, take Minimum */
57 /* Compound Morphology methods */
58 OpenMorphology, /* Dilate then Erode */
59 CloseMorphology, /* Erode then Dilate */
60 OpenIntensityMorphology, /* Pixel Pick using GreyScale Open */
61 CloseIntensityMorphology, /* Pixel Pick using GreyScale Close */
62 EdgeInMorphology, /* Dilate difference from orig */
63 EdgeOutMorphology, /* Erode difference from orig */
64 EdgeMorphology, /* Dilate difference with Erode */
65 TopHatMorphology, /* Close difference from Original */
66 BottomHatMorphology /* Open difference from Original */
93 extern MagickExport KernelInfo
94 *AcquireKernelInfo(const char *),
95 *AcquireKernelBuiltIn(const KernelInfoType, const GeometryInfo *),
96 *DestroyKernelInfo(KernelInfo *);
98 extern MagickExport void
99 ShowKernelInfo(KernelInfo *);
101 extern MagickExport Image
102 *MorphologyImage(const Image *,MorphologyMethod,const long,KernelInfo *,
104 *MorphologyImageChannel(const Image *,const ChannelType,MorphologyMethod,
105 const long,KernelInfo *,ExceptionInfo *);
107 #if defined(__cplusplus) || defined(c_plusplus)