MagickCore  7.0.10
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

typedef struct _CaliperInfo CaliperInfo
typedef struct _EdgeInfo EdgeInfo

Function Documentation

static double getAngle ( PointInfo p,
PointInfo q 
)
inlinestatic

Definition at line 1107 of file attribute.c.

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

Referenced by GetImageMinimumBoundingBox().

static double getDistance ( PointInfo p,
PointInfo q 
)
inlinestatic

Definition at line 1115 of file attribute.c.

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

Referenced by getFeretDiameter(), and getProjection().

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

Definition at line 1138 of file attribute.c.

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

Referenced by GetImageMinimumBoundingBox().

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

Definition at line 1413 of file attribute.c.

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

static double GetMinEdgeBackgroundCensus ( const EdgeInfo edge)
inlinestatic

Definition at line 239 of file attribute.c.

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

Referenced by GetEdgeBoundingBox().

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

Definition at line 1124 of file attribute.c.

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

Referenced by GetImageMinimumBoundingBox().

MagickExport MagickBooleanType IsImageMonochrome ( const Image image)

Definition at line 1767 of file attribute.c.

References BilevelType, MagickCoreSignature, MagickFalse, MagickTrue, _Image::signature, and _Image::type.

Referenced by GetImageType().

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

Definition at line 548 of file attribute.c.

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

Referenced by TraceConvexHull().

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

Definition at line 681 of file attribute.c.

References LexicographicalOrder().

Referenced by GetImageConvexHull().