MagickCore 6.9.12
shear.c File Reference
Include dependency graph for shear.c:

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 ImageDeskewImage (const Image *image, const double threshold, ExceptionInfo *exception)
 
MagickExport ImageIntegralRotateImage (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 ImageShearImage (const Image *image, const double x_shear, const double y_shear, ExceptionInfo *exception)
 
MagickExport ImageShearRotateImage (const Image *image, const double degrees, ExceptionInfo *exception)
 

Macro Definition Documentation

◆ RotateImageTag

#define RotateImageTag   "Rotate/Image"

◆ XShearImageTag

#define XShearImageTag   "XShear/Image"

◆ YShearImageTag

#define YShearImageTag   "YShear/Image"

Function Documentation

◆ CropToFitImage()

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

◆ DeskewImage()

◆ GetImageBackgroundColor()

◆ IntegralRotateImage()

◆ RadonProjection()

static void RadonProjection ( const Image image,
MatrixInfo source_matrix,
MatrixInfo destination_matrix,
const ssize_t  sign,
size_t *  projection 
)
static

Definition at line 219 of file shear.c.

References GetMatrixColumns(), GetMatrixElement(), GetMatrixRows(), MagickFalse, and SetMatrixElement().

Referenced by RadonTransform().

◆ RadonTransform()

static MagickBooleanType RadonTransform ( const Image image,
const double  threshold,
size_t *  projection,
ExceptionInfo exception 
)
static

◆ ShearImage()

◆ ShearRotateImage()

◆ XShearImage()

◆ YShearImage()