MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
vision.c File Reference
Include dependency graph for vision.c:

Go to the source code of this file.

Macros

#define ConnectedComponentsImageTag   "ConnectedComponents/Image"
 
#define IntegralImageTag   "Integral/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)
 
MagickExport ImageIntegralImage (const Image *image, ExceptionInfo *exception)
 

Macro Definition Documentation

◆ ConnectedComponentsImageTag

#define ConnectedComponentsImageTag   "ConnectedComponents/Image"

◆ IntegralImageTag

#define IntegralImageTag   "Integral/Image"

Function Documentation

◆ AngleThreshold()

◆ CCObjectInfoCompare()

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

◆ 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 790 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::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, _CCObjectInfo::id, IsEventLogging(), IsFuzzyEquivalencePixelInfo(), IsStringTrue(), LocaleCompare(), 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()

◆ IntegralImage()

◆ MajorAxisThreshold()

◆ MinorAxisThreshold()

◆ PerimeterThreshold()

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