MagickCore
6.8.5
|
#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/monitor.h"
#include "magick/monitor-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/transform.h"
Data Structures | |
struct | _RadonInfo |
Macros | |
#define | RotateImageTag "Rotate/Image" |
#define | XShearImageTag "XShear/Image" |
#define | YShearImageTag "YShear/Image" |
Typedefs | |
typedef struct _RadonInfo | RadonInfo |
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 RadonInfo * | DestroyRadonInfo (RadonInfo *radon_info) |
static MagickBooleanType | ResetRadonCells (RadonInfo *radon_info) |
static RadonInfo * | AcquireRadonInfo (const Image *image, const size_t width, const size_t height, ExceptionInfo *exception) |
static size_t | MagickMin (const size_t x, const size_t y) |
static ssize_t | ReadRadonCell (const RadonInfo *radon_info, const MagickOffsetType offset, const size_t length, unsigned char *buffer) |
static ssize_t | WriteRadonCell (const RadonInfo *radon_info, const MagickOffsetType offset, const size_t length, const unsigned char *buffer) |
static unsigned short | GetRadonCell (const RadonInfo *radon_info, const ssize_t x, const ssize_t y) |
static MagickBooleanType | SetRadonCell (const RadonInfo *radon_info, const ssize_t x, const ssize_t y, const unsigned short value) |
static void | RadonProjection (const Image *image, RadonInfo *source_cells, RadonInfo *destination_cells, 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" |
Referenced by IntegralRotateImage().
#define XShearImageTag "XShear/Image" |
Referenced by XShearImage().
#define YShearImageTag "YShear/Image" |
Referenced by YShearImage().
typedef struct _RadonInfo RadonInfo |
|
static |
References AcquireMagickMemory(), AcquireMagickResource(), AcquireUniqueFileResource(), AreaResource, CacheError, _RadonInfo::cells, DestroyRadonInfo(), DiskCache, DiskResource, _RadonInfo::file, _Image::filename, GetMagickModule, _RadonInfo::height, IOMode, _RadonInfo::length, MagickFalse, MagickTrue, MapBlob(), MapCache, _RadonInfo::mapped, MapResource, MemoryCache, MemoryResource, _RadonInfo::path, RelinquishMagickResource(), ResetMagickMemory(), ResetRadonCells(), ThrowMagickException(), _RadonInfo::type, and _RadonInfo::width.
Referenced by RadonTransform().
|
static |
References CropImage(), DestroyImage(), _RectangleInfo::height, MagickFalse, MagickTrue, _Image::page, ParseAbsoluteGeometry(), _RectangleInfo::width, _RectangleInfo::x, _PointInfo::x, _RectangleInfo::y, and _PointInfo::y.
Referenced by ShearImage(), and ShearRotateImage().
MagickExport Image* DeskewImage | ( | const Image * | image, |
const double | threshold, | ||
ExceptionInfo * | exception | ||
) |
References AcquireQuantumMemory(), AffineTransformImage(), BackgroundVirtualPixelMethod, CloneImage(), _Image::columns, CropImage(), _Image::debug, DegreesToRadians(), DestroyImage(), FormatLocaleString(), GetImageArtifact(), GetImageBackgroundColor(), GetImageBoundingBox(), GetMagickModule, _RectangleInfo::height, 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.
References _RadonInfo::cells, DiskCache, DiskResource, _RadonInfo::file, _RadonInfo::length, MagickFalse, MapCache, _RadonInfo::mapped, MapResource, MemoryCache, MemoryResource, _RadonInfo::path, RelinquishMagickMemory(), RelinquishMagickResource(), RelinquishUniqueFileResource(), _RadonInfo::type, and UnmapBlob().
Referenced by AcquireRadonInfo(), and RadonTransform().
|
static |
References AcquireVirtualCacheView(), _Image::background_color, _MagickPixelPacket::blue, _PixelPacket::blue, ClampToQuantum(), _Image::columns, DestroyCacheView(), GetCacheViewVirtualPixels(), GetMagickPixelPacket(), GetPixelBlue, GetPixelGreen, GetPixelOpacity, GetPixelRed, _MagickPixelPacket::green, _PixelPacket::green, _MagickPixelPacket::opacity, _PixelPacket::opacity, QuantumRange, QuantumScale, _MagickPixelPacket::red, _PixelPacket::red, and _Image::rows.
Referenced by DeskewImage().
|
inlinestatic |
References _RadonInfo::cells, DiskCache, _RadonInfo::height, _RadonInfo::length, ReadRadonCell(), and _RadonInfo::type.
Referenced by RadonProjection().
MagickExport Image* IntegralRotateImage | ( | const Image * | image, |
size_t | rotations, | ||
ExceptionInfo * | exception | ||
) |
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), CloneImage(), _Image::columns, DestroyCacheView(), DestroyImage(), GetCacheViewAuthenticIndexQueue(), GetCacheViewVirtualIndexQueue(), GetCacheViewVirtualPixels(), GetPixelCacheTileSize(), GetPixelIndex, _RectangleInfo::height, 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().
|
inlinestatic |
Referenced by ReadRadonCell(), and WriteRadonCell().
|
static |
References GetRadonCell(), _RadonInfo::height, SetRadonCell(), and _RadonInfo::width.
Referenced by RadonTransform().
|
static |
References AcquireRadonInfo(), AcquireVirtualCacheView(), _Image::columns, DestroyCacheView(), DestroyRadonInfo(), GetCacheViewVirtualPixels(), GetPixelBlue, GetPixelGreen, GetPixelRed, MagickFalse, MagickTrue, RadonProjection(), ResetRadonCells(), _Image::rows, and SetRadonCell().
Referenced by DeskewImage().
|
inlinestatic |
References _RadonInfo::file, and MagickMin().
Referenced by GetRadonCell().
|
static |
References _RadonInfo::cells, DiskCache, _RadonInfo::file, _RadonInfo::height, _RadonInfo::length, MagickFalse, MagickTrue, ResetMagickMemory(), _RadonInfo::type, and _RadonInfo::width.
Referenced by AcquireRadonInfo(), and RadonTransform().
|
inlinestatic |
References _RadonInfo::cells, DiskCache, _RadonInfo::height, _RadonInfo::length, MagickFalse, MagickTrue, _RadonInfo::type, and WriteRadonCell().
Referenced by RadonProjection(), and RadonTransform().
MagickExport Image* ShearImage | ( | const Image * | image, |
const double | x_shear, | ||
const double | y_shear, | ||
ExceptionInfo * | exception | ||
) |
References _Image::background_color, _Image::border_color, BorderImage(), CloneImage(), _Image::columns, _Image::compose, CopyCompositeOp, CropToFitImage(), _Image::debug, DegreesToRadians(), DestroyImage(), DirectClass, _Image::exception, _Image::filename, GetMagickModule, _RectangleInfo::height, ImageError, InheritException(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::matte, OpaqueAlphaChannel, _Image::page, ResourceLimitError, _Image::rows, SetImageAlphaChannel(), SetImageStorageClass(), _ExceptionInfo::signature, _Image::signature, ThrowImageException, TraceEvent, _RectangleInfo::width, _PointInfo::x, XShearImage(), _PointInfo::y, and YShearImage().
Referenced by PreviewImage().
MagickExport Image* ShearRotateImage | ( | const Image * | image, |
const double | degrees, | ||
ExceptionInfo * | exception | ||
) |
References _Image::background_color, _Image::border_color, BorderImage(), _Image::columns, _Image::compose, CopyCompositeOp, CropToFitImage(), _Image::debug, DegreesToRadians(), DestroyImage(), DirectClass, _Image::exception, _Image::filename, GetMagickModule, _RectangleInfo::height, InheritException(), IntegralRotateImage(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::matte, OpaqueAlphaChannel, _Image::page, ResourceLimitError, _Image::rows, SetImageAlphaChannel(), SetImageStorageClass(), _ExceptionInfo::signature, _Image::signature, ThrowImageException, TraceEvent, _RectangleInfo::width, _PointInfo::x, XShearImage(), _PointInfo::y, and YShearImage().
|
inlinestatic |
References _RadonInfo::file, and MagickMin().
Referenced by SetRadonCell().
|
static |
References AcquireAuthenticCacheView(), _Image::background_color, CMYKColorspace, _Image::colorspace, _Image::columns, ConvertRGBToCMYK(), _Image::debug, DestroyCacheView(), _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetMagickModule, GetMagickPixelPacket(), GetPixelOpacity, LogMagickEvent(), MagickFalse, MagickPixelCompositeAreaBlend(), MagickSignature, MagickTrue, _MagickPixelPacket::opacity, _Image::progress_monitor, SetImageProgress(), SetMagickPixelPacket(), SetPixelPacket(), _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, and XShearImageTag.
Referenced by ShearImage(), and ShearRotateImage().
|
static |
References AcquireAuthenticCacheView(), _Image::background_color, CMYKColorspace, _Image::colorspace, ConvertRGBToCMYK(), _Image::debug, DestroyCacheView(), _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetMagickModule, GetMagickPixelPacket(), GetPixelOpacity, LogMagickEvent(), MagickFalse, MagickPixelCompositeAreaBlend(), MagickSignature, MagickTrue, _MagickPixelPacket::opacity, _Image::progress_monitor, _Image::rows, SetImageProgress(), SetMagickPixelPacket(), SetPixelPacket(), _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, and YShearImageTag.
Referenced by ShearImage(), and ShearRotateImage().