MagickCore 6.9.12
|
#include "magick/studio.h"
#include "magick/artifact.h"
#include "magick/cache.h"
#include "magick/cache-view.h"
#include "magick/channel.h"
#include "magick/color-private.h"
#include "magick/colorspace.h"
#include "magick/colorspace-private.h"
#include "magick/composite-private.h"
#include "magick/distort.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/gem.h"
#include "magick/hashmap.h"
#include "magick/image.h"
#include "magick/list.h"
#include "magick/matrix.h"
#include "magick/memory_.h"
#include "magick/monitor-private.h"
#include "magick/option.h"
#include "magick/pixel.h"
#include "magick/pixel-accessor.h"
#include "magick/pixel-private.h"
#include "magick/resample.h"
#include "magick/resample-private.h"
#include "magick/registry.h"
#include "magick/resource_.h"
#include "magick/semaphore.h"
#include "magick/shear.h"
#include "magick/string_.h"
#include "magick/string-private.h"
#include "magick/thread-private.h"
#include "magick/token.h"
#include "magick/transform.h"
Go to the source code of this file.
Macros | |
#define | DistortResizeImageTag "Distort/Image" |
#define | DistortImageTag "Distort/Image" |
#define | InitalBounds(p) |
#define | ExpandBounds(p) |
#define | ScaleFilter(F, A, B, C, D) |
#define | SparseColorTag "Distort/SparseColor" |
Functions | |
static void | AffineArgsToCoefficients (double *affine) |
static void | CoefficientsToAffineArgs (double *coeff) |
static void | InvertAffineCoefficients (const double *coeff, double *inverse) |
static void | InvertPerspectiveCoefficients (const double *coeff, double *inverse) |
static size_t | poly_number_terms (double order) |
static double | poly_basis_fn (ssize_t n, double x, double y) |
static const char * | poly_basis_str (ssize_t n) |
static double | poly_basis_dx (ssize_t n, double x, double y) |
static double | poly_basis_dy (ssize_t n, double x, double y) |
MagickExport Image * | AffineTransformImage (const Image *image, const AffineMatrix *affine_matrix, ExceptionInfo *exception) |
static double | MagickRound (double x) |
static double * | GenerateCoefficients (const Image *image, DistortImageMethod *method, const size_t number_arguments, const double *arguments, size_t number_values, ExceptionInfo *exception) |
MagickExport Image * | DistortResizeImage (const Image *image, const size_t columns, const size_t rows, ExceptionInfo *exception) |
MagickExport Image * | DistortImage (const Image *image, DistortImageMethod method, const size_t number_arguments, const double *arguments, MagickBooleanType bestfit, ExceptionInfo *exception) |
MagickExport Image * | RotateImage (const Image *image, const double degrees, ExceptionInfo *exception) |
MagickExport Image * | SparseColorImage (const Image *image, const ChannelType channel, const SparseColorMethod method, const size_t number_arguments, const double *arguments, ExceptionInfo *exception) |
#define DistortImageTag "Distort/Image" |
#define DistortResizeImageTag "Distort/Image" |
#define ExpandBounds | ( | p | ) |
#define InitalBounds | ( | p | ) |
#define ScaleFilter | ( | F, | |
A, | |||
B, | |||
C, | |||
D | |||
) |
#define SparseColorTag "Distort/SparseColor" |
|
inlinestatic |
Definition at line 81 of file distort.c.
Referenced by GenerateCoefficients().
MagickExport Image * AffineTransformImage | ( | const Image * | image, |
const AffineMatrix * | affine_matrix, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 285 of file distort.c.
References AffineProjectionDistortion, DistortImage(), _Image::filename, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, _AffineMatrix::rx, _AffineMatrix::ry, _ExceptionInfo::signature, _Image::signature, _AffineMatrix::sx, _AffineMatrix::sy, TraceEvent, _AffineMatrix::tx, and _AffineMatrix::ty.
Referenced by DeskewImage().
|
inlinestatic |
Definition at line 89 of file distort.c.
Referenced by DistortImage().
MagickExport Image * DistortImage | ( | const Image * | image, |
DistortImageMethod | method, | ||
const size_t | number_arguments, | ||
const double * | arguments, | ||
MagickBooleanType | bestfit, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1679 of file distort.c.
References AcquireAuthenticCacheView(), AcquireQuantumMemory(), AcquireResampleFilterTLS(), AffineDistortion, ArcDistortion, _Image::background_color, BarrelDistortion, BarrelInverseDistortion, BilinearDistortion, BilinearForwardDistortion, BilinearReverseDistortion, CloneImage(), CMYKColorspace, CoefficientsToAffineArgs(), _Image::colorspace, _Image::columns, ConvertRGBToCMYK(), Cylinder2PlaneDistortion, DePolarDistortion, DestroyCacheView(), DestroyImage(), DestroyResampleFilterTLS(), DirectClass, DistortImageTag, DistortResizeImage(), _Image::exception, ExpandBounds, _Image::filename, FormatLocaleFile(), FormatLocaleString(), GenerateCoefficients(), GetCacheViewAuthenticIndexQueue(), GetImageArtifact(), GetMagickModule, GetMagickPixelPacket(), GetMagickPrecision(), GetOpenMPThreadId(), _RectangleInfo::height, InheritException(), InitalBounds, InvertAffineCoefficients(), InvertPerspectiveCoefficients(), IsEventLogging(), IsGrayColorspace(), IsPixelGray(), LogMagickEvent(), Magick2PI, magick_restrict, MagickCoreSignature, MagickEpsilon, MagickFalse, MagickPI, MagickPI2, MagickPixelCompositeBlend(), MagickRound(), MagickTrue, _Image::matte, _Image::matte_color, MaxTextExtent, NoValue, _PixelPacket::opacity, OpaqueOpacity, OptionError, OptionWarning, _Image::page, ParseAbsoluteGeometry(), PerceptibleReciprocal(), PerspectiveDistortion, Plane2CylinderDistortion, PolarDistortion, poly_basis_dx(), poly_basis_dy(), poly_basis_fn(), poly_basis_str(), PolynomialDistortion, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), RelinquishMagickMemory(), ResamplePixelColor(), ResizeDistortion, ResourceLimitError, _Image::rows, ScaleFilter, SetImageColorspace(), SetImageProgress(), SetImageStorageClass(), SetMagickPixelPacket(), SetPixelPacket(), ShepardsDistortion, _ExceptionInfo::signature, _Image::signature, sRGBColorspace, StringToDouble(), SyncCacheViewAuthenticPixels(), ThrowMagickException(), TraceEvent, UndefinedVirtualPixelMethod, _RectangleInfo::width, _PointInfo::x, _RectangleInfo::x, _PointInfo::y, and _RectangleInfo::y.
Referenced by AffineTransformImage(), DistortResizeImage(), and RotateImage().
MagickExport Image * DistortResizeImage | ( | const Image * | image, |
const size_t | columns, | ||
const size_t | rows, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1463 of file distort.c.
References AffineDistortion, CloneImage(), _Image::columns, _Image::compose, CompositeImage(), CopyOpacityCompositeOp, CropImage(), DeactivateAlphaChannel, DestroyImage(), DistortImage(), _Image::exception, _Image::filename, GetImageVirtualPixelMethod(), GetMagickModule, _RectangleInfo::height, InheritException(), IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, _Image::matte, OpaqueAlphaChannel, _Image::page, _Image::rows, SeparateImageChannel(), SetAlphaChannel, SetImageAlphaChannel(), SetImageVirtualPixelMethod(), _ExceptionInfo::signature, _Image::signature, TraceEvent, TransparentVirtualPixelMethod, TrueAlphaChannel, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by DistortImage().
|
static |
Definition at line 374 of file distort.c.
References AcquireMagickMatrix(), AcquireQuantumMemory(), AffineArgsToCoefficients(), AffineDistortion, AffineProjectionDistortion, ArcDistortion, BarrelDistortion, BarrelInverseDistortion, BilinearForwardDistortion, BilinearReverseDistortion, _Image::columns, CommandOptionToMnemonic(), Cylinder2PlaneDistortion, DegreesToRadians(), DePolarDistortion, GaussJordanElimination(), GetImageArtifact(), GetMagickModule, InvertAffineCoefficients(), InvertPerspectiveCoefficients(), LeastSquaresAddTerms(), Magick2PI, MagickDistortOptions, MagickEpsilon, MagickFalse, MagickMax, MagickMin, MagickPI, MagickPI2, MagickRound(), OptionError, _Image::page, PerspectiveDistortion, PerspectiveProjectionDistortion, Plane2CylinderDistortion, PolarDistortion, poly_basis_fn(), poly_number_terms(), PolynomialDistortion, RelinquishMagickMatrix(), RelinquishMagickMemory(), ResourceLimitError, _Image::rows, ScaleRotateTranslateDistortion, ShepardsDistortion, StringToDouble(), ThrowMagickException(), _RectangleInfo::x, and _RectangleInfo::y.
Referenced by DistortImage(), and SparseColorImage().
|
static |
Definition at line 96 of file distort.c.
References PerceptibleReciprocal().
Referenced by DistortImage(), and GenerateCoefficients().
|
static |
Definition at line 110 of file distort.c.
References PerceptibleReciprocal().
Referenced by DistortImage(), and GenerateCoefficients().
|
inlinestatic |
Definition at line 364 of file distort.c.
Referenced by DistortImage(), and GenerateCoefficients().
|
static |
Definition at line 211 of file distort.c.
Referenced by DistortImage(), and poly_basis_dy().
|
static |
|
static |
Definition at line 155 of file distort.c.
Referenced by DistortImage(), and GenerateCoefficients().
|
static |
Definition at line 183 of file distort.c.
Referenced by DistortImage().
|
static |
Definition at line 146 of file distort.c.
References MagickEpsilon.
Referenced by GenerateCoefficients().
MagickExport Image * RotateImage | ( | const Image * | image, |
const double | degrees, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2864 of file distort.c.
References BackgroundVirtualPixelMethod, CloneImage(), DegreesToRadians(), DestroyImage(), DistortImage(), _Image::filename, GetMagickModule, IntegralRotateImage(), IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickEpsilon, MagickFalse, MagickTrue, ScaleRotateTranslateDistortion, SetImageVirtualPixelMethod(), _ExceptionInfo::signature, _Image::signature, TraceEvent, _PointInfo::x, and _PointInfo::y.
Referenced by AutoOrientImage(), PolaroidImage(), and PreviewImage().
MagickExport Image * SparseColorImage | ( | const Image * | image, |
const ChannelType | channel, | ||
const SparseColorMethod | method, | ||
const size_t | number_arguments, | ||
const double * | arguments, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2951 of file distort.c.
References AcquireAuthenticCacheView(), BarycentricColorInterpolate, BilinearColorInterpolate, _MagickPixelPacket::blue, BlueChannel, ClampPixel(), CloneImage(), _Image::columns, DestroyCacheView(), DestroyImage(), DirectClass, _Image::exception, _Image::filename, FormatLocaleFile(), GenerateCoefficients(), GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetImageArtifact(), GetMagickModule, GetMagickPixelPacket(), _MagickPixelPacket::green, GreenChannel, _MagickPixelPacket::index, IndexChannel, InheritException(), InverseColorInterpolate, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickMaximumValue, MagickTrue, ManhattanColorInterpolate, _MagickPixelPacket::opacity, OpacityChannel, _Image::progress_monitor, QuantumRange, _MagickPixelPacket::red, RedChannel, RelinquishMagickMemory(), _Image::rows, SentinelDistortion, SetImageProgress(), SetImageStorageClass(), SetMagickPixelPacket(), SetPixelPacket(), ShepardsColorInterpolate, ShepardsDistortion, _ExceptionInfo::signature, _Image::signature, SparseColorTag, SyncCacheViewAuthenticPixels(), TraceEvent, and VoronoiColorInterpolate.