MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/animate.h"
#include "MagickCore/artifact.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/colorspace.h"
#include "MagickCore/colorspace-private.h"
#include "MagickCore/composite.h"
#include "MagickCore/composite-private.h"
#include "MagickCore/compress.h"
#include "MagickCore/constitute.h"
#include "MagickCore/display.h"
#include "MagickCore/draw.h"
#include "MagickCore/enhance.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/feature.h"
#include "MagickCore/gem.h"
#include "MagickCore/geometry.h"
#include "MagickCore/list.h"
#include "MagickCore/image-private.h"
#include "MagickCore/magic.h"
#include "MagickCore/magick.h"
#include "MagickCore/matrix.h"
#include "MagickCore/memory_.h"
#include "MagickCore/module.h"
#include "MagickCore/monitor.h"
#include "MagickCore/monitor-private.h"
#include "MagickCore/morphology-private.h"
#include "MagickCore/option.h"
#include "MagickCore/paint.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/profile.h"
#include "MagickCore/property.h"
#include "MagickCore/quantize.h"
#include "MagickCore/quantum-private.h"
#include "MagickCore/random_.h"
#include "MagickCore/resource_.h"
#include "MagickCore/segment.h"
#include "MagickCore/semaphore.h"
#include "MagickCore/signature-private.h"
#include "MagickCore/string_.h"
#include "MagickCore/thread-private.h"
#include "MagickCore/timer.h"
#include "MagickCore/utility.h"
#include "MagickCore/version.h"
Go to the source code of this file.
Data Structures | |
struct | _CannyInfo |
Macros | |
#define | CannyEdgeImageTag "CannyEdge/Image" |
#define | Log10Epsilon (1.0e-11) |
#define | BoundingBox "viewbox" |
#define | HoughLineImageTag "HoughLine/Image" |
#define | MaxMeanShiftIterations 100 |
#define | MeanShiftImageTag "MeanShift/Image" |
Typedefs | |
typedef struct _CannyInfo | CannyInfo |
Functions | |
static MagickBooleanType | IsAuthenticPixel (const Image *image, const ssize_t x, const ssize_t y) |
static MagickBooleanType | TraceEdges (Image *edge_image, CacheView *edge_view, MatrixInfo *canny_cache, const ssize_t x, const ssize_t y, const double lower_threshold, ExceptionInfo *exception) |
MagickExport Image * | CannyEdgeImage (const Image *image, const double radius, const double sigma, const double lower_percent, const double upper_percent, ExceptionInfo *exception) |
static double | MagickLog10 (const double x) |
MagickExport ChannelFeatures * | GetImageFeatures (const Image *image, const size_t distance, ExceptionInfo *exception) |
static double | MagickRound (double x) |
static Image * | RenderHoughLines (const ImageInfo *image_info, const size_t columns, const size_t rows, ExceptionInfo *exception) |
MagickExport Image * | HoughLineImage (const Image *image, const size_t width, const size_t height, const size_t threshold, ExceptionInfo *exception) |
MagickExport Image * | MeanShiftImage (const Image *image, const size_t width, const size_t height, const double color_distance, ExceptionInfo *exception) |
#define BoundingBox "viewbox" |
#define CannyEdgeImageTag "CannyEdge/Image" |
#define HoughLineImageTag "HoughLine/Image" |
#define Log10Epsilon (1.0e-11) |
#define MaxMeanShiftIterations 100 |
#define MeanShiftImageTag "MeanShift/Image" |
typedef struct _CannyInfo CannyInfo |
MagickExport Image * CannyEdgeImage | ( | const Image * | image, |
const double | radius, | ||
const double | sigma, | ||
const double | lower_percent, | ||
const double | upper_percent, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 237 of file feature.c.
References AcquireAuthenticCacheView(), AcquireKernelInfo(), AcquireMatrixInfo(), AcquireVirtualCacheView(), CannyEdgeImageTag, _Image::columns, ConvolveMorphology, DestroyCacheView(), DestroyImage(), DestroyKernelInfo(), DestroyMatrixInfo(), _Image::filename, FormatLocaleString(), GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetMagickModule, GetMatrixElement(), GetPixelChannels(), GetPixelIntensity(), GRAYColorspace, _CannyInfo::intensity, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickEpsilon, MagickFalse, MagickPathExtent, MagickTrue, _CannyInfo::magnitude, MorphologyImage(), OffAlphaChannel, _CannyInfo::orientation, _Image::progress_monitor, ResourceLimitError, _Image::rows, SetImageAlphaChannel(), SetImageProgress(), SetMatrixElement(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), ThrowImageException, TraceEdges(), TraceEvent, and TransformImageColorspace().
MagickExport ChannelFeatures * GetImageFeatures | ( | const Image * | image, |
const size_t | distance, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 623 of file feature.c.
References AcquireQuantumMemory(), AcquireVirtualCacheView(), _PixelPacket::alpha, _Image::alpha_trait, AlphaPixelChannel, _ChannelFeatures::angular_second_moment, _PixelPacket::black, BlackPixelChannel, _PixelPacket::blue, BluePixelChannel, CMYKColorspace, _Image::colorspace, _Image::columns, _ChannelFeatures::contrast, _ChannelFeatures::correlation, DestroyCacheView(), _ChannelFeatures::difference_entropy, _ChannelFeatures::difference_variance, _ChannelFeatures::entropy, _Image::filename, GetCacheViewVirtualPixels(), GetMagickModule, GetPixelAlpha(), GetPixelBlack(), GetPixelBlue(), GetPixelChannels(), GetPixelGreen(), GetPixelRed(), _PixelPacket::green, GreenPixelChannel, _ChannelFeatures::inverse_difference_moment, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickAbsoluteValue, MagickCoreSignature, MagickEpsilon, MagickFalse, MagickLog10(), MagickTrue, _ChannelFeatures::maximum_correlation_coefficient, MaxMap, MaxPixelChannels, _ChannelFeatures::measure_of_correlation_1, _ChannelFeatures::measure_of_correlation_2, PerceptibleReciprocal(), _PixelPacket::red, RedPixelChannel, RelinquishMagickMemory(), ResourceLimitError, ResourceLimitFatalError, _Image::rows, _Image::signature, _ChannelFeatures::sum_average, _ChannelFeatures::sum_entropy, _ChannelFeatures::sum_variance, ThrowFatalException, ThrowMagickException(), TraceEvent, UndefinedPixelTrait, and _ChannelFeatures::variance_sum_of_squares.
Referenced by IdentifyImage().
MagickExport Image * HoughLineImage | ( | const Image * | image, |
const size_t | width, | ||
const size_t | height, | ||
const size_t | threshold, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1838 of file feature.c.
References AcquireImageInfo(), AcquireMatrixInfo(), AcquireUniqueFileResource(), AcquireVirtualCacheView(), AppendImageToList(), _Image::background_color, _ImageInfo::background_color, CannyEdgeImageTag, _Image::columns, DegreesToRadians(), DestroyCacheView(), DestroyImageInfo(), DestroyMatrixInfo(), _Image::filename, _ImageInfo::filename, FormatLocaleString(), GetCacheViewVirtualPixels(), GetFirstImageInList(), GetImageArtifact(), GetMagickModule, GetMatrixElement(), GetPixelChannels(), GetPixelIntensity(), IsEventLogging(), IsStringTrue(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickPathExtent, MagickRound(), MagickTrue, MatrixToImage(), NullMatrix(), _Image::progress_monitor, QuantumRange, RelinquishUniqueFileResource(), RenderHoughLines(), ResourceLimitError, _Image::rows, SetImageOption(), SetImageProgress(), SetMatrixElement(), _ExceptionInfo::signature, _Image::signature, ThrowImageException, TraceEvent, _PointInfo::x, _SegmentInfo::x1, _SegmentInfo::x2, _PointInfo::y, _SegmentInfo::y1, and _SegmentInfo::y2.
|
inlinestatic |
Definition at line 147 of file feature.c.
References _Image::columns, MagickFalse, MagickTrue, and _Image::rows.
Referenced by TraceEdges().
|
inlinestatic |
Definition at line 614 of file feature.c.
References Log10Epsilon.
Referenced by GetImageFeatures().
|
inlinestatic |
Definition at line 1765 of file feature.c.
Referenced by HoughLineImage(), and MeanShiftImage().
MagickExport Image * MeanShiftImage | ( | const Image * | image, |
const size_t | width, | ||
const size_t | height, | ||
const double | color_distance, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2165 of file feature.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), _PixelInfo::alpha, _PixelInfo::blue, ClampToQuantum(), CloneImage(), _Image::columns, DestroyCacheView(), DestroyImage(), DirectClass, _Image::filename, GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetMagickModule, GetOneCacheViewVirtualPixelInfo(), GetPixelChannels(), GetPixelInfo(), GetPixelInfoPixel(), _PixelInfo::green, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickRound(), MagickTrue, MaxMeanShiftIterations, MeanShiftImageTag, PerceptibleReciprocal(), _Image::progress_monitor, QuantumScale, _PixelInfo::red, _Image::rows, SetImageProgress(), SetImageStorageClass(), SetPixelAlpha(), SetPixelBlue(), SetPixelGreen(), SetPixelRed(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, _PointInfo::x, and _PointInfo::y.
|
static |
Definition at line 1775 of file feature.c.
References AcquireImage(), AcquireQuantumMemory(), _DrawInfo::affine, CloneDrawInfo(), CloseBlob(), _Image::columns, DefaultResolution, DestroyDrawInfo(), DestroyImageList(), DrawImage(), _Image::filename, FileToString(), GetBlobSize(), GetBlobStreamData(), GetFirstImageInList(), MagickFalse, OpenBlob(), _DrawInfo::primitive, ReadBinaryBlobMode, _Image::resolution, _Image::rows, SetImageBackgroundColor(), SetImageExtent(), _AffineMatrix::sx, _AffineMatrix::sy, _PointInfo::x, and _PointInfo::y.
Referenced by HoughLineImage().
|
static |
Definition at line 157 of file feature.c.
References GetCacheViewAuthenticPixels(), GetMatrixElement(), GetPixelIntensity(), _CannyInfo::intensity, IsAuthenticPixel(), MagickFalse, MagickTrue, QuantumRange, SetMatrixElement(), SyncCacheViewAuthenticPixels(), _CannyInfo::x, and _CannyInfo::y.
Referenced by CannyEdgeImage().