root / ImageMagick / trunk / magick / distort.h

Revision 12346, 2.2 kB (checked in by cristy, 3 weeks ago)
Line 
1/*
2  Copyright 1999-2008 ImageMagick Studio LLC, a non-profit organization
3  dedicated to making software imaging solutions freely available.
4 
5  You may not use this file except in compliance with the License.
6  obtain a copy of the License at
7 
8    http://www.imagemagick.org/script/license.php
9 
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.
15
16  MagickCore image distortion methods.
17*/
18#ifndef _MAGICKCORE_DISTORT_H
19#define _MAGICKCORE_DISTORT_H
20
21#if defined(__cplusplus) || defined(c_plusplus)
22extern "C" {
23#endif
24
25#include <magick/draw.h>
26
27/*
28  These two enum are linked, with common enumerated values.  Both
29  DistortImages() and SparseColor() often share code to determine
30  functional coefficients for common methods.
31
32  Caution should be taken to ensure that only the common methods contain the
33  same enumerated value, while all others remain unique across both
34  enumerations.
35*/
36typedef enum
37{
38  UndefinedDistortion,
39  AffineDistortion,
40  AffineProjectionDistortion,
41  ScaleRotateTranslateDistortion,
42  PerspectiveDistortion,
43  PerspectiveProjectionDistortion,
44  BilinearDistortion,
45  PolynomialDistortion,
46  ArcDistortion,
47  PolarDistortion,
48  DePolarDistortion,
49  BarrelDistortion,
50  BarrelInverseDistortion,
51  ShepardsDistortion,
52  SentinelDistortion
53} DistortImageMethod;
54
55typedef enum
56{
57  UndefinedColorInterpolate = UndefinedDistortion,
58  BarycentricColorInterpolate = AffineDistortion,
59  BilinearColorInterpolate = BilinearDistortion,
60  PolynomialColorInterpolate = PolynomialDistortion,
61  ShepardsColorInterpolate = ShepardsDistortion,
62  /* Methods unique to SparseColor(): */
63  VoronoiColorInterpolate = SentinelDistortion
64} SparseColorMethod;
65
66extern MagickExport Image
67  *DistortImage(const Image *,const DistortImageMethod,const unsigned long,
68    const double *,MagickBooleanType,ExceptionInfo *exception),
69  *SparseColorImage(const Image *,const ChannelType,const SparseColorMethod,
70    const unsigned long,const double *,ExceptionInfo *);
71
72#if defined(__cplusplus) || defined(c_plusplus)
73}
74#endif
75
76#endif
Note: See TracBrowser for help on using the browser.