MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/artifact.h"
#include "MagickCore/blob.h"
#include "MagickCore/cache-view.h"
#include "MagickCore/color.h"
#include "MagickCore/color-private.h"
#include "MagickCore/colormap.h"
#include "MagickCore/colorspace.h"
#include "MagickCore/constitute.h"
#include "MagickCore/decorate.h"
#include "MagickCore/distort.h"
#include "MagickCore/draw.h"
#include "MagickCore/enhance.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/effect.h"
#include "MagickCore/gem.h"
#include "MagickCore/geometry.h"
#include "MagickCore/image-private.h"
#include "MagickCore/list.h"
#include "MagickCore/log.h"
#include "MagickCore/matrix.h"
#include "MagickCore/memory_.h"
#include "MagickCore/memory-private.h"
#include "MagickCore/monitor.h"
#include "MagickCore/monitor-private.h"
#include "MagickCore/montage.h"
#include "MagickCore/morphology.h"
#include "MagickCore/morphology-private.h"
#include "MagickCore/opencl-private.h"
#include "MagickCore/paint.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/property.h"
#include "MagickCore/quantum.h"
#include "MagickCore/resource_.h"
#include "MagickCore/signature-private.h"
#include "MagickCore/string_.h"
#include "MagickCore/string-private.h"
#include "MagickCore/thread-private.h"
#include "MagickCore/token.h"
#include "MagickCore/vision.h"
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 Image * | ConnectedComponentsImage (const Image *image, const size_t connectivity, CCObjectInfo **objects, ExceptionInfo *exception) |
MagickExport Image * | IntegralImage (const Image *image, ExceptionInfo *exception) |
#define ConnectedComponentsImageTag "ConnectedComponents/Image" |
#define IntegralImageTag "Integral/Image" |
|
static |
Definition at line 672 of file vision.c.
References AcquireAuthenticCacheView(), _Image::colors, DestroyCacheView(), GetCacheViewVirtualPixels(), GetPixelChannels(), GetPixelIndex(), _RectangleInfo::height, magick_restrict, MagickFalse, MagickTrue, PerceptibleReciprocal(), RadiansToDegrees(), _RectangleInfo::width, _PointInfo::x, _RectangleInfo::x, _PointInfo::y, and _RectangleInfo::y.
Referenced by ConnectedComponentsImage().
|
static |
Definition at line 119 of file vision.c.
References _CCObjectInfo::area, _CCObjectInfo::bounding_box, _RectangleInfo::height, _CCObjectInfo::key, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by ConnectedComponentsImage().
|
static |
Definition at line 259 of file vision.c.
References AcquireAuthenticCacheView(), _Image::colors, DestroyCacheView(), GetCacheViewVirtualPixels(), GetPixelChannels(), GetPixelIndex(), _RectangleInfo::height, magick_restrict, MagickFalse, MagickPI, MagickSQ1_2, MagickSQ2, MagickTrue, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by 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.
|
static |
Definition at line 568 of file vision.c.
References AcquireAuthenticCacheView(), _Image::colors, DestroyCacheView(), GetCacheViewVirtualPixels(), GetPixelChannels(), GetPixelIndex(), _RectangleInfo::height, magick_restrict, MagickFalse, MagickTrue, PerceptibleReciprocal(), _RectangleInfo::width, _PointInfo::x, _RectangleInfo::x, _PointInfo::y, and _RectangleInfo::y.
Referenced by ConnectedComponentsImage().
MagickExport Image * IntegralImage | ( | const Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 1680 of file vision.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), ClampToQuantum(), CloneImage(), _Image::columns, CopyPixelTrait, DestroyCacheView(), DestroyImage(), DirectClass, _Image::filename, GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetMagickModule, GetPixelChannels(), GetPixelChannelTraits(), IntegralImageTag, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _Image::progress_monitor, _Image::rows, SetImageProgress(), SetImageStorageClass(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, and UndefinedPixelTrait.
|
static |
Definition at line 370 of file vision.c.
References AcquireAuthenticCacheView(), _Image::colors, DestroyCacheView(), GetCacheViewVirtualPixels(), GetPixelChannels(), GetPixelIndex(), _RectangleInfo::height, magick_restrict, MagickFalse, MagickTrue, PerceptibleReciprocal(), _RectangleInfo::width, _PointInfo::x, _RectangleInfo::x, _PointInfo::y, and _RectangleInfo::y.
Referenced by ConnectedComponentsImage().
|
static |
Definition at line 469 of file vision.c.
References AcquireAuthenticCacheView(), _Image::colors, DestroyCacheView(), GetCacheViewVirtualPixels(), GetPixelChannels(), GetPixelIndex(), _RectangleInfo::height, magick_restrict, MagickFalse, MagickTrue, PerceptibleReciprocal(), _RectangleInfo::width, _PointInfo::x, _RectangleInfo::x, _PointInfo::y, and _RectangleInfo::y.
Referenced by ConnectedComponentsImage().
|
static |
Definition at line 150 of file vision.c.
References AcquireAuthenticCacheView(), _Image::colors, DestroyCacheView(), GetCacheViewVirtualPixels(), GetPixelChannels(), GetPixelIndex(), _RectangleInfo::height, magick_restrict, MagickFalse, MagickSQ1_2, MagickSQ2, MagickTrue, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by ConnectedComponentsImage().