tmp[0]=affine[1]; tmp[1]=affine[2]; tmp[2]=affine[3]; tmp[3]=affine[4];
affine[3]=tmp[0]; affine[1]=tmp[1]; affine[4]=tmp[2]; affine[2]=tmp[3];
}
+
static inline void CoefficientsToAffineArgs(double *coeff)
{
/* map internal c0,c1,c2,c3,c4,c5 to external sx,ry,rx,sy,tx,ty */
extern "C" {
#endif
-#include <magick/draw.h>
-
/*
These two enum are linked, with common enumerated values. Both
- DistortImages() and SparseColor() often share code to determine
- functional coefficients for common methods.
+ DistortImages() and SparseColor() often share code to determine functional
+ coefficients for common methods.
Caution should be taken to ensure that only the common methods contain the
same enumerated value, while all others remain unique across both
SentinelDistortion
} DistortImageMethod;
-
typedef enum
{
UndefinedColorInterpolate = UndefinedDistortion,
BilinearColorInterpolate = BilinearReverseDistortion,
PolynomialColorInterpolate = PolynomialDistortion,
ShepardsColorInterpolate = ShepardsDistortion,
- /* Methods unique to SparseColor(): */
+ /*
+ Methods unique to SparseColor().
+ */
VoronoiColorInterpolate = SentinelDistortion
} SparseColorMethod;