MagickCore  6.9.11
feature.c File Reference
#include "magick/studio.h"
#include "magick/animate.h"
#include "magick/artifact.h"
#include "magick/blob.h"
#include "magick/blob-private.h"
#include "magick/cache.h"
#include "magick/cache-private.h"
#include "magick/cache-view.h"
#include "magick/channel.h"
#include "magick/client.h"
#include "magick/color.h"
#include "magick/color-private.h"
#include "magick/colorspace.h"
#include "magick/colorspace-private.h"
#include "magick/composite.h"
#include "magick/composite-private.h"
#include "magick/compress.h"
#include "magick/constitute.h"
#include "magick/deprecate.h"
#include "magick/display.h"
#include "magick/draw.h"
#include "magick/enhance.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/feature.h"
#include "magick/gem.h"
#include "magick/geometry.h"
#include "magick/list.h"
#include "magick/image-private.h"
#include "magick/magic.h"
#include "magick/magick.h"
#include "magick/matrix.h"
#include "magick/memory_.h"
#include "magick/module.h"
#include "magick/monitor.h"
#include "magick/monitor-private.h"
#include "magick/morphology-private.h"
#include "magick/option.h"
#include "magick/paint.h"
#include "magick/pixel-private.h"
#include "magick/profile.h"
#include "magick/property.h"
#include "magick/quantize.h"
#include "magick/random_.h"
#include "magick/resource_.h"
#include "magick/segment.h"
#include "magick/semaphore.h"
#include "magick/signature-private.h"
#include "magick/string_.h"
#include "magick/thread-private.h"
#include "magick/timer.h"
#include "magick/token.h"
#include "magick/utility.h"
#include "magick/version.h"
Include dependency graph for feature.c:

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 ImageCannyEdgeImage (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 ChannelFeaturesGetImageChannelFeatures (const Image *image, const size_t distance, ExceptionInfo *exception)
 
static double MagickRound (double x)
 
static ImageRenderHoughLines (const ImageInfo *image_info, const size_t columns, const size_t rows, ExceptionInfo *exception)
 
MagickExport ImageHoughLineImage (const Image *image, const size_t width, const size_t height, const size_t threshold, ExceptionInfo *exception)
 
MagickExport ImageMeanShiftImage (const Image *image, const size_t width, const size_t height, const double color_distance, ExceptionInfo *exception)
 

Macro Definition Documentation

◆ BoundingBox

#define BoundingBox   "viewbox"

◆ CannyEdgeImageTag

#define CannyEdgeImageTag   "CannyEdge/Image"

Referenced by CannyEdgeImage().

◆ HoughLineImageTag

#define HoughLineImageTag   "HoughLine/Image"

Referenced by HoughLineImage().

◆ Log10Epsilon

#define Log10Epsilon   (1.0e-11)

Referenced by MagickLog10().

◆ MaxMeanShiftIterations

#define MaxMeanShiftIterations   100

Referenced by MeanShiftImage().

◆ MeanShiftImageTag

#define MeanShiftImageTag   "MeanShift/Image"

Referenced by MeanShiftImage().

Typedef Documentation

◆ CannyInfo

typedef struct _CannyInfo CannyInfo

Function Documentation

◆ CannyEdgeImage()

◆ GetImageChannelFeatures()

MagickExport ChannelFeatures* GetImageChannelFeatures ( const Image image,
const size_t  distance,
ExceptionInfo exception 
)

◆ HoughLineImage()

◆ IsAuthenticPixel()

static MagickBooleanType IsAuthenticPixel ( const Image image,
const ssize_t  x,
const ssize_t  y 
)
inlinestatic

Definition at line 148 of file feature.c.

References _Image::columns, MagickFalse, MagickTrue, and _Image::rows.

Referenced by TraceEdges().

◆ MagickLog10()

static double MagickLog10 ( const double  x)
inlinestatic

Definition at line 621 of file feature.c.

References Log10Epsilon.

Referenced by GetImageChannelFeatures().

◆ MagickRound()

static double MagickRound ( double  x)
inlinestatic

Definition at line 1784 of file feature.c.

Referenced by HoughLineImage(), and MeanShiftImage().

◆ MeanShiftImage()

◆ RenderHoughLines()

◆ TraceEdges()

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 
)
static