MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
attribute.c File Reference
#include "MagickCore/studio.h"
#include "MagickCore/artifact.h"
#include "MagickCore/attribute.h"
#include "MagickCore/blob.h"
#include "MagickCore/blob-private.h"
#include "MagickCore/cache.h"
#include "MagickCore/cache-private.h"
#include "MagickCore/cache-view.h"
#include "MagickCore/channel.h"
#include "MagickCore/client.h"
#include "MagickCore/color.h"
#include "MagickCore/color-private.h"
#include "MagickCore/colormap.h"
#include "MagickCore/colormap-private.h"
#include "MagickCore/colorspace.h"
#include "MagickCore/colorspace-private.h"
#include "MagickCore/composite.h"
#include "MagickCore/composite-private.h"
#include "MagickCore/constitute.h"
#include "MagickCore/draw.h"
#include "MagickCore/draw-private.h"
#include "MagickCore/effect.h"
#include "MagickCore/enhance.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/geometry.h"
#include "MagickCore/histogram.h"
#include "MagickCore/identify.h"
#include "MagickCore/image.h"
#include "MagickCore/image-private.h"
#include "MagickCore/list.h"
#include "MagickCore/log.h"
#include "MagickCore/memory_.h"
#include "MagickCore/magick.h"
#include "MagickCore/monitor.h"
#include "MagickCore/monitor-private.h"
#include "MagickCore/option.h"
#include "MagickCore/paint.h"
#include "MagickCore/pixel.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/property.h"
#include "MagickCore/quantize.h"
#include "MagickCore/quantum-private.h"
#include "MagickCore/random_.h"
#include "MagickCore/resource_.h"
#include "MagickCore/semaphore.h"
#include "MagickCore/segment.h"
#include "MagickCore/splay-tree.h"
#include "MagickCore/string_.h"
#include "MagickCore/string-private.h"
#include "MagickCore/thread-private.h"
#include "MagickCore/threshold.h"
#include "MagickCore/transform.h"
#include "MagickCore/utility.h"
Include dependency graph for attribute.c:

Go to the source code of this file.

Data Structures

struct  _EdgeInfo
 
struct  _CaliperInfo
 

Typedefs

typedef struct _EdgeInfo EdgeInfo
 
typedef struct _CaliperInfo CaliperInfo
 

Functions

static double GetEdgeBackgroundCensus (const Image *image, const CacheView *image_view, const GravityType gravity, const size_t width, const size_t height, const ssize_t x_offset, const ssize_t y_offset, ExceptionInfo *exception)
 
static double GetMinEdgeBackgroundCensus (const EdgeInfo *edge)
 
static RectangleInfo GetEdgeBoundingBox (const Image *image, ExceptionInfo *exception)
 
MagickExport RectangleInfo GetImageBoundingBox (const Image *image, ExceptionInfo *exception)
 
static double LexicographicalOrder (PointInfo *a, PointInfo *b, PointInfo *c)
 
static PixelInfo GetEdgeBackgroundColor (const Image *image, const CacheView *image_view, ExceptionInfo *exception)
 
void TraceConvexHull (PointInfo *vertices, size_t number_vertices, PointInfo ***monotone_chain, size_t *chain_length)
 
MagickExport PointInfoGetImageConvexHull (const Image *image, size_t *number_vertices, ExceptionInfo *exception)
 
MagickExport size_t GetImageDepth (const Image *image, ExceptionInfo *exception)
 
static double getAngle (PointInfo *p, PointInfo *q)
 
static double getDistance (PointInfo *p, PointInfo *q)
 
static double getProjection (PointInfo *p, PointInfo *q, PointInfo *v)
 
static double getFeretDiameter (PointInfo *p, PointInfo *q, PointInfo *v)
 
MagickExport PointInfoGetImageMinimumBoundingBox (Image *image, size_t *number_vertices, ExceptionInfo *exception)
 
MagickExport size_t GetImageQuantumDepth (const Image *image, const MagickBooleanType constrain)
 
MagickExport ImageType GetImageType (const Image *image)
 
MagickExport ImageType IdentifyImageGray (const Image *image, ExceptionInfo *exception)
 
MagickExport MagickBooleanType IdentifyImageMonochrome (const Image *image, ExceptionInfo *exception)
 
MagickExport ImageType IdentifyImageType (const Image *image, ExceptionInfo *exception)
 
MagickExport MagickBooleanType IsImageGray (const Image *image)
 
MagickExport MagickBooleanType IsImageMonochrome (const Image *image)
 
MagickExport MagickBooleanType IsImageOpaque (const Image *image, ExceptionInfo *exception)
 
MagickExport MagickBooleanType SetImageDepth (Image *image, const size_t depth, ExceptionInfo *exception)
 
MagickExport MagickBooleanType SetImageType (Image *image, const ImageType type, ExceptionInfo *exception)
 

Typedef Documentation

◆ CaliperInfo

typedef struct _CaliperInfo CaliperInfo

◆ EdgeInfo

typedef struct _EdgeInfo EdgeInfo

Function Documentation

◆ getAngle()

static double getAngle ( PointInfo p,
PointInfo q 
)
inlinestatic

Definition at line 1156 of file attribute.c.

References RadiansToDegrees(), _PointInfo::x, and _PointInfo::y.

Referenced by GetImageMinimumBoundingBox().

◆ getDistance()

static double getDistance ( PointInfo p,
PointInfo q 
)
inlinestatic

Definition at line 1164 of file attribute.c.

References _PointInfo::x, and _PointInfo::y.

Referenced by getFeretDiameter(), and getProjection().

◆ GetEdgeBackgroundCensus()

◆ GetEdgeBackgroundColor()

◆ GetEdgeBoundingBox()

◆ getFeretDiameter()

static double getFeretDiameter ( PointInfo p,
PointInfo q,
PointInfo v 
)
inlinestatic

Definition at line 1187 of file attribute.c.

References getDistance(), INFINITY, MagickEpsilon, _PointInfo::x, and _PointInfo::y.

Referenced by GetImageMinimumBoundingBox().

◆ GetImageBoundingBox()

◆ GetImageConvexHull()

◆ GetImageDepth()

◆ GetImageMinimumBoundingBox()

◆ GetImageQuantumDepth()

MagickExport size_t GetImageQuantumDepth ( const Image image,
const MagickBooleanType  constrain 
)

Definition at line 1459 of file attribute.c.

References _Image::depth, MAGICKCORE_QUANTUM_DEPTH, MagickFalse, and MagickMin.

◆ GetImageType()

◆ GetMinEdgeBackgroundCensus()

static double GetMinEdgeBackgroundCensus ( const EdgeInfo edge)
inlinestatic

Definition at line 241 of file attribute.c.

References _EdgeInfo::bottom, _EdgeInfo::left, MagickMin, _EdgeInfo::right, and _EdgeInfo::top.

Referenced by GetEdgeBoundingBox().

◆ getProjection()

static double getProjection ( PointInfo p,
PointInfo q,
PointInfo v 
)
inlinestatic

Definition at line 1173 of file attribute.c.

References getDistance(), INFINITY, MagickEpsilon, _PointInfo::x, and _PointInfo::y.

Referenced by GetImageMinimumBoundingBox().

◆ IdentifyImageGray()

◆ IdentifyImageMonochrome()

◆ IdentifyImageType()

◆ IsImageGray()

◆ IsImageMonochrome()

MagickExport MagickBooleanType IsImageMonochrome ( const Image image)

◆ IsImageOpaque()

◆ LexicographicalOrder()

static double LexicographicalOrder ( PointInfo a,
PointInfo b,
PointInfo c 
)
static

Definition at line 591 of file attribute.c.

References _PointInfo::x, and _PointInfo::y.

Referenced by TraceConvexHull().

◆ SetImageDepth()

◆ SetImageType()

◆ TraceConvexHull()

void TraceConvexHull ( PointInfo vertices,
size_t  number_vertices,
PointInfo ***  monotone_chain,
size_t *  chain_length 
)

Definition at line 729 of file attribute.c.

References LexicographicalOrder().

Referenced by GetImageConvexHull().