MagickCore  7.1.0
vision.c File Reference
Include dependency graph for vision.c:

Go to the source code of this file.

Macros

#define ConnectedComponentsImageTag   "ConnectedComponents/Image"
 

Functions

static int CCObjectInfoCompare (const void *x, const void *y)
 
static void PerimeterThreshold (const Image *component_image, CCObjectInfo *object, const ssize_t metric_index, ExceptionInfo *exception)
 
static void CircularityThreshold (const Image *component_image, CCObjectInfo *object, const ssize_t metric_index, ExceptionInfo *exception)
 
static void MajorAxisThreshold (const Image *component_image, CCObjectInfo *object, const ssize_t metric_index, ExceptionInfo *exception)
 
static void MinorAxisThreshold (const Image *component_image, CCObjectInfo *object, const ssize_t metric_index, ExceptionInfo *exception)
 
static void EccentricityThreshold (const Image *component_image, CCObjectInfo *object, const ssize_t metric_index, ExceptionInfo *exception)
 
static void AngleThreshold (const Image *component_image, CCObjectInfo *object, const ssize_t metric_index, ExceptionInfo *exception)
 
MagickExport ImageConnectedComponentsImage (const Image *image, const size_t connectivity, CCObjectInfo **objects, ExceptionInfo *exception)
 

Macro Definition Documentation

◆ ConnectedComponentsImageTag

#define ConnectedComponentsImageTag   "ConnectedComponents/Image"

Function Documentation

◆ AngleThreshold()

◆ CCObjectInfoCompare()

static int CCObjectInfoCompare ( const void *  x,
const void *  y 
)
static

Definition at line 119 of file vision.c.

References _CCObjectInfo::area.

Referenced by ConnectedComponentsImage().

◆ CircularityThreshold()

static void CircularityThreshold ( const Image component_image,
CCObjectInfo object,
const ssize_t  metric_index,
ExceptionInfo exception 
)
static

◆ ConnectedComponentsImage()

MagickExport Image* ConnectedComponentsImage ( const Image image,
const size_t  connectivity,
CCObjectInfo **  objects,
ExceptionInfo exception 
)

Definition at line 782 of file vision.c.

References AcquireAuthenticCacheView(), AcquireImageColormap(), AcquireMatrixInfo(), AcquireQuantumMemory(), AcquireVirtualCacheView(), AllCompliance, _Image::alpha_trait, AngleThreshold(), CCMaxMetrics, CCObjectInfoCompare(), CircularityThreshold(), CloneImage(), CMYKColorspace, _Image::colormap, _Image::colors, _Image::colorspace, _Image::columns, ConnectedComponentsImageTag, CopyMagickString(), _Image::debug, _Image::depth, DestroyCacheView(), DestroyImage(), DestroyMatrixInfo(), EccentricityThreshold(), _Image::filename, GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetColorTuple(), GetImageArtifact(), GetMagickModule, GetMagickPrecision(), GetMatrixElement(), GetPixelAlpha(), GetPixelBlack(), GetPixelBlue(), GetPixelChannels(), GetPixelGreen(), GetPixelIndex(), GetPixelInfo(), GetPixelInfoPixel(), GetPixelRed(), _RectangleInfo::height, IsFuzzyEquivalencePixelInfo(), IsStringTrue(), LogMagickEvent(), magick_restrict, MAGICKCORE_QUANTUM_DEPTH, MagickCoreSignature, MagickEpsilon, MagickFalse, MagickMin, MagickPathExtent, MagickPI, MagickTrue, MajorAxisThreshold(), MaxColormapSize, MinorAxisThreshold(), PerimeterThreshold(), _Image::progress_monitor, QuantumScale, QueryColorCompliance(), QueueCacheViewAuthenticPixels(), RelinquishMagickMemory(), ResourceLimitError, _Image::rows, SetImageProgress(), SetMatrixElement(), SetPixelIndex(), _ExceptionInfo::signature, _Image::signature, StringToLong(), SyncCacheViewAuthenticPixels(), SyncImage(), ThrowImageException, TraceEvent, UndefinedPixelTrait, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.

◆ EccentricityThreshold()

◆ MajorAxisThreshold()

◆ MinorAxisThreshold()

◆ PerimeterThreshold()

static void PerimeterThreshold ( const Image component_image,
CCObjectInfo object,
const ssize_t  metric_index,
ExceptionInfo exception 
)
static