MagickCore 6.9.12
|
#include "magick/studio.h"
#include "magick/artifact.h"
#include "magick/attribute.h"
#include "magick/blob-private.h"
#include "magick/cache-private.h"
#include "magick/channel.h"
#include "magick/color-private.h"
#include "magick/colorspace-private.h"
#include "magick/composite.h"
#include "magick/composite-private.h"
#include "magick/decorate.h"
#include "magick/distort.h"
#include "magick/draw.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/gem.h"
#include "magick/geometry.h"
#include "magick/image.h"
#include "magick/image-private.h"
#include "magick/memory_.h"
#include "magick/list.h"
#include "magick/matrix.h"
#include "magick/monitor.h"
#include "magick/monitor-private.h"
#include "magick/nt-base-private.h"
#include "magick/pixel-private.h"
#include "magick/quantum.h"
#include "magick/resource_.h"
#include "magick/shear.h"
#include "magick/statistic.h"
#include "magick/string_.h"
#include "magick/string-private.h"
#include "magick/thread-private.h"
#include "magick/threshold.h"
#include "magick/token.h"
#include "magick/transform.h"
Go to the source code of this file.
Macros | |
#define | RotateImageTag "Rotate/Image" |
#define | XShearImageTag "XShear/Image" |
#define | YShearImageTag "YShear/Image" |
Functions | |
static MagickBooleanType | CropToFitImage (Image **image, const MagickRealType x_shear, const MagickRealType y_shear, const MagickRealType width, const MagickRealType height, const MagickBooleanType rotate, ExceptionInfo *exception) |
static void | RadonProjection (const Image *image, MatrixInfo *source_matrix, MatrixInfo *destination_matrix, const ssize_t sign, size_t *projection) |
static MagickBooleanType | RadonTransform (const Image *image, const double threshold, size_t *projection, ExceptionInfo *exception) |
static void | GetImageBackgroundColor (Image *image, const ssize_t offset, ExceptionInfo *exception) |
MagickExport Image * | DeskewImage (const Image *image, const double threshold, ExceptionInfo *exception) |
MagickExport Image * | IntegralRotateImage (const Image *image, size_t rotations, ExceptionInfo *exception) |
static MagickBooleanType | XShearImage (Image *image, const MagickRealType degrees, const size_t width, const size_t height, const ssize_t x_offset, const ssize_t y_offset, ExceptionInfo *exception) |
static MagickBooleanType | YShearImage (Image *image, const MagickRealType degrees, const size_t width, const size_t height, const ssize_t x_offset, const ssize_t y_offset, ExceptionInfo *exception) |
MagickExport Image * | ShearImage (const Image *image, const double x_shear, const double y_shear, ExceptionInfo *exception) |
MagickExport Image * | ShearRotateImage (const Image *image, const double degrees, ExceptionInfo *exception) |
#define RotateImageTag "Rotate/Image" |
#define XShearImageTag "XShear/Image" |
#define YShearImageTag "YShear/Image" |
|
static |
Definition at line 114 of file shear.c.
References CastDoubleToLong(), CropImage(), DestroyImage(), _RectangleInfo::height, MagickFalse, MagickTrue, _Image::page, ParseAbsoluteGeometry(), _RectangleInfo::width, _PointInfo::x, _RectangleInfo::x, _PointInfo::y, and _RectangleInfo::y.
Referenced by ShearImage(), and ShearRotateImage().
MagickExport Image * DeskewImage | ( | const Image * | image, |
const double | threshold, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 564 of file shear.c.
References AcquireQuantumMemory(), AffineTransformImage(), BackgroundVirtualPixelMethod, CloneImage(), _Image::columns, CropImage(), _Image::debug, DegreesToRadians(), DestroyImage(), FormatLocaleString(), GetImageArtifact(), GetImageBackgroundColor(), GetImageBoundingBox(), GetMagickModule, _RectangleInfo::height, IsMagickTrue(), LogMagickEvent(), MagickFalse, MagickTrue, MaxTextExtent, MedianStatistic, RadiansToDegrees(), RadonTransform(), RelinquishMagickMemory(), ResourceLimitError, _AffineMatrix::rx, _AffineMatrix::ry, SetImageArtifact(), SetImageVirtualPixelMethod(), StatisticImage(), StringToLong(), _AffineMatrix::sx, _AffineMatrix::sy, ThrowImageException, TransformEvent, _AffineMatrix::tx, _AffineMatrix::ty, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
|
static |
Definition at line 505 of file shear.c.
References AcquireVirtualCacheView(), _Image::background_color, _MagickPixelPacket::blue, _PixelPacket::blue, ClampToQuantum(), _Image::columns, DestroyCacheView(), GetCacheViewVirtualPixels(), GetMagickPixelPacket(), GetPixelBlue, GetPixelGreen, GetPixelOpacity, GetPixelRed, _MagickPixelPacket::green, _PixelPacket::green, magick_restrict, _MagickPixelPacket::opacity, _PixelPacket::opacity, QuantumRange, QuantumScale, _MagickPixelPacket::red, _PixelPacket::red, and _Image::rows.
Referenced by DeskewImage().
MagickExport Image * IntegralRotateImage | ( | const Image * | image, |
size_t | rotations, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 708 of file shear.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), CloneImage(), _Image::columns, DestroyCacheView(), DestroyImage(), GetCacheViewAuthenticIndexQueue(), GetCacheViewVirtualIndexQueue(), GetCacheViewVirtualPixels(), GetPixelCacheTileSize(), GetPixelIndex, _RectangleInfo::height, magick_restrict, MagickFalse, MagickTrue, _Image::page, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), RotateImageTag, _Image::rows, SetImageProgress(), SetPixelIndex, Swap, SyncCacheViewAuthenticPixels(), _Image::type, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by RotateImage(), and ShearRotateImage().
|
static |
Definition at line 219 of file shear.c.
References GetMatrixColumns(), GetMatrixElement(), GetMatrixRows(), MagickFalse, and SetMatrixElement().
Referenced by RadonTransform().
|
static |
Definition at line 328 of file shear.c.
References AcquireMatrixInfo(), AcquireVirtualCacheView(), _Image::columns, DestroyCacheView(), DestroyMatrixInfo(), GetCacheViewVirtualPixels(), GetPixelBlue, GetPixelGreen, GetPixelRed, magick_restrict, MagickFalse, MagickTrue, NullMatrix(), RadonProjection(), _Image::rows, and SetMatrixElement().
Referenced by DeskewImage().
MagickExport Image * ShearImage | ( | const Image * | image, |
const double | x_shear, | ||
const double | y_shear, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1592 of file shear.c.
References _Image::background_color, _Image::border_color, BorderImage(), CastDoubleToLong(), CloneImage(), _Image::columns, _Image::compose, CopyCompositeOp, CropToFitImage(), DegreesToRadians(), DestroyImage(), DirectClass, _Image::exception, _Image::filename, GetMagickModule, _RectangleInfo::height, ImageError, InheritException(), IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, _Image::matte, OpaqueAlphaChannel, _Image::page, ResourceLimitError, _Image::rows, SetImageAlphaChannel(), SetImageStorageClass(), _ExceptionInfo::signature, _Image::signature, ThrowImageException, TraceEvent, _RectangleInfo::width, _PointInfo::x, _RectangleInfo::x, XShearImage(), _PointInfo::y, _RectangleInfo::y, and YShearImage().
Referenced by PreviewImage().
MagickExport Image * ShearRotateImage | ( | const Image * | image, |
const double | degrees, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1726 of file shear.c.
References _Image::background_color, _Image::border_color, BorderImage(), CastDoubleToLong(), _Image::columns, _Image::compose, CopyCompositeOp, CropToFitImage(), DegreesToRadians(), DestroyImage(), DirectClass, _Image::exception, _Image::filename, GetMagickModule, _RectangleInfo::height, InheritException(), IntegralRotateImage(), IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, _Image::matte, OpaqueAlphaChannel, _Image::page, ResourceLimitError, _Image::rows, SetImageAlphaChannel(), SetImageStorageClass(), _ExceptionInfo::signature, _Image::signature, ThrowImageException, TraceEvent, _RectangleInfo::width, _PointInfo::x, _RectangleInfo::x, XShearImage(), _PointInfo::y, _RectangleInfo::y, and YShearImage().
|
static |
Definition at line 1145 of file shear.c.
References AcquireAuthenticCacheView(), _Image::background_color, CastDoubleToLong(), CMYKColorspace, _Image::colorspace, _Image::columns, ConvertRGBToCMYK(), DestroyCacheView(), _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetMagickModule, GetMagickPixelPacket(), GetPixelOpacity, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickPixelCompositeAreaBlend(), MagickTrue, _MagickPixelPacket::opacity, _Image::progress_monitor, SetImageProgress(), SetMagickPixelPacket(), SetPixelPacket(), _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, and XShearImageTag.
Referenced by ShearImage(), and ShearRotateImage().
|
static |
Definition at line 1367 of file shear.c.
References AcquireAuthenticCacheView(), _Image::background_color, CastDoubleToLong(), CMYKColorspace, _Image::colorspace, ConvertRGBToCMYK(), DestroyCacheView(), _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetMagickModule, GetMagickPixelPacket(), GetPixelOpacity, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickPixelCompositeAreaBlend(), MagickTrue, _MagickPixelPacket::opacity, _Image::progress_monitor, _Image::rows, SetImageProgress(), SetMagickPixelPacket(), SetPixelPacket(), _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, and YShearImageTag.
Referenced by ShearImage(), and ShearRotateImage().