MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/artifact.h"
#include "MagickCore/attribute.h"
#include "MagickCore/blob-private.h"
#include "MagickCore/cache-private.h"
#include "MagickCore/channel.h"
#include "MagickCore/color-private.h"
#include "MagickCore/colorspace-private.h"
#include "MagickCore/composite.h"
#include "MagickCore/composite-private.h"
#include "MagickCore/decorate.h"
#include "MagickCore/distort.h"
#include "MagickCore/draw.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/gem.h"
#include "MagickCore/geometry.h"
#include "MagickCore/image.h"
#include "MagickCore/image-private.h"
#include "MagickCore/matrix.h"
#include "MagickCore/memory_.h"
#include "MagickCore/list.h"
#include "MagickCore/monitor.h"
#include "MagickCore/monitor-private.h"
#include "MagickCore/nt-base-private.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/quantum.h"
#include "MagickCore/resource_.h"
#include "MagickCore/shear.h"
#include "MagickCore/statistic.h"
#include "MagickCore/string_.h"
#include "MagickCore/string-private.h"
#include "MagickCore/thread-private.h"
#include "MagickCore/threshold.h"
#include "MagickCore/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 double x_shear, const double y_shear, const double width, const double height, const MagickBooleanType rotate, ExceptionInfo *exception) |
static void | RadonProjection (const Image *image, MatrixInfo *source_matrixs, MatrixInfo *destination_matrixs, 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 double 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 double 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 113 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 563 of file shear.c.
References AcquireQuantumMemory(), AffineTransformImage(), BackgroundVirtualPixelMethod, CloneImage(), _Image::columns, CropImage(), _Image::debug, DegreesToRadians(), DestroyImage(), FormatLocaleString(), GetImageArtifact(), GetImageBackgroundColor(), GetImageBoundingBox(), GetMagickModule, _RectangleInfo::height, IsStringTrue(), LogMagickEvent(), MagickFalse, MagickPathExtent, MagickTrue, 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 502 of file shear.c.
References AcquireVirtualCacheView(), _PixelInfo::alpha, _Image::background_color, _PixelInfo::blue, ClampToQuantum(), _Image::columns, DestroyCacheView(), GetCacheViewVirtualPixels(), GetPixelAlpha(), GetPixelAlphaTraits(), GetPixelBlue(), GetPixelChannels(), GetPixelGreen(), GetPixelInfo(), GetPixelRed(), _PixelInfo::green, magick_restrict, QuantumRange, QuantumScale, _PixelInfo::red, _Image::rows, and UpdatePixelTrait.
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(), GetCacheViewVirtualPixels(), GetPixelCacheTileSize(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), _RectangleInfo::height, magick_restrict, MagickFalse, MagickTrue, _Image::page, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), RotateImageTag, _Image::rows, SetImageProgress(), SetPixelChannel(), Swap, SyncCacheViewAuthenticPixels(), _Image::type, UndefinedPixelTrait, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by RotateImage(), and ShearRotateImage().
|
static |
Definition at line 216 of file shear.c.
References GetMatrixColumns(), GetMatrixElement(), GetMatrixRows(), magick_unreferenced, MagickFalse, and SetMatrixElement().
Referenced by RadonTransform().
|
static |
Definition at line 327 of file shear.c.
References AcquireMatrixInfo(), AcquireVirtualCacheView(), _Image::columns, DestroyCacheView(), DestroyMatrixInfo(), GetCacheViewVirtualPixels(), GetPixelBlue(), GetPixelChannels(), 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 1575 of file shear.c.
References _Image::alpha_trait, _Image::background_color, _Image::border_color, BorderImage(), CastDoubleToLong(), CloneImage(), _Image::columns, _Image::compose, CopyCompositeOp, CropToFitImage(), DegreesToRadians(), DestroyImage(), DirectClass, _Image::filename, GetMagickModule, _RectangleInfo::height, ImageError, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, OpaqueAlphaChannel, _Image::page, ResourceLimitError, _Image::rows, SetImageAlphaChannel(), SetImageStorageClass(), _ExceptionInfo::signature, _Image::signature, ThrowImageException, TraceEvent, UndefinedPixelTrait, _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 1708 of file shear.c.
References _Image::alpha_trait, _Image::background_color, _Image::border_color, BorderImage(), CastDoubleToLong(), _Image::columns, _Image::compose, CopyCompositeOp, CropToFitImage(), DegreesToRadians(), DestroyImage(), DirectClass, _Image::filename, GetMagickModule, _RectangleInfo::height, IntegralRotateImage(), IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, OpaqueAlphaChannel, _Image::page, ResourceLimitError, _Image::rows, SetImageAlphaChannel(), SetImageStorageClass(), _ExceptionInfo::signature, _Image::signature, ThrowImageException, TraceEvent, UndefinedPixelTrait, _RectangleInfo::width, _PointInfo::x, _RectangleInfo::x, XShearImage(), _PointInfo::y, _RectangleInfo::y, and YShearImage().
|
static |
Definition at line 1136 of file shear.c.
References AcquireAuthenticCacheView(), _PixelInfo::alpha, _Image::background_color, CastDoubleToLong(), _Image::columns, CompositePixelInfoAreaBlend(), DestroyCacheView(), _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelAlpha(), GetPixelChannels(), GetPixelInfo(), GetPixelInfoPixel(), IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _Image::progress_monitor, SetImageProgress(), SetPixelViaPixelInfo(), _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, and XShearImageTag.
Referenced by ShearImage(), and ShearRotateImage().
|
static |
Definition at line 1353 of file shear.c.
References AcquireAuthenticCacheView(), _PixelInfo::alpha, _Image::background_color, CastDoubleToLong(), CompositePixelInfoAreaBlend(), DestroyCacheView(), _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelAlpha(), GetPixelChannels(), GetPixelInfo(), GetPixelInfoPixel(), IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _Image::progress_monitor, _Image::rows, SetImageProgress(), SetPixelViaPixelInfo(), _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, and YShearImageTag.
Referenced by ShearImage(), and ShearRotateImage().