statistic.c File Reference

#include "magick/studio.h"
#include "magick/property.h"
#include "magick/animate.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/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/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/memory_.h"
#include "magick/module.h"
#include "magick/monitor.h"
#include "magick/monitor-private.h"
#include "magick/option.h"
#include "magick/paint.h"
#include "magick/pixel-private.h"
#include "magick/profile.h"
#include "magick/quantize.h"
#include "magick/random_.h"
#include "magick/random-private.h"
#include "magick/segment.h"
#include "magick/semaphore.h"
#include "magick/signature-private.h"
#include "magick/statistic.h"
#include "magick/string_.h"
#include "magick/thread-private.h"
#include "magick/timer.h"
#include "magick/utility.h"
#include "magick/version.h"
Include dependency graph for statistic.c:

Go to the source code of this file.

Defines

#define EvaluateImageTag   "Evaluate/Image"
#define FunctionImageTag   "Function/Image "

Functions

static MagickPixelPacket ** DestroyPixelThreadSet (MagickPixelPacket **pixels)
static MagickPixelPacket ** AcquirePixelThreadSet (const Image *image)
static double MagickMax (const double x, const double y)
static double MagickMin (const double x, const double y)
static MagickRealType ApplyEvaluateOperator (RandomInfo *random_info, Quantum pixel, const MagickEvaluateOperator op, const MagickRealType value)
MagickExport MagickBooleanType EvaluateImage (Image *image, const MagickEvaluateOperator op, const double value, ExceptionInfo *exception)
MagickExport ImageEvaluateImages (const Image *images, const MagickEvaluateOperator op, ExceptionInfo *exception)
MagickExport MagickBooleanType EvaluateImageChannel (Image *image, const ChannelType channel, const MagickEvaluateOperator op, const double value, ExceptionInfo *exception)
static Quantum ApplyFunction (Quantum pixel, const MagickFunction function, const unsigned long number_parameters, const double *parameters, ExceptionInfo *exception)
MagickExport MagickBooleanType FunctionImage (Image *image, const MagickFunction function, const unsigned long number_parameters, const double *parameters, ExceptionInfo *exception)
MagickExport MagickBooleanType FunctionImageChannel (Image *image, const ChannelType channel, const MagickFunction function, const unsigned long number_parameters, const double *parameters, ExceptionInfo *exception)
MagickExport MagickBooleanType GetImageExtrema (const Image *image, unsigned long *minima, unsigned long *maxima, ExceptionInfo *exception)
MagickExport MagickBooleanType GetImageChannelExtrema (const Image *image, const ChannelType channel, unsigned long *minima, unsigned long *maxima, ExceptionInfo *exception)
MagickExport MagickBooleanType GetImageMean (const Image *image, double *mean, double *standard_deviation, ExceptionInfo *exception)
MagickExport MagickBooleanType GetImageChannelMean (const Image *image, const ChannelType channel, double *mean, double *standard_deviation, ExceptionInfo *exception)
MagickExport MagickBooleanType GetImageKurtosis (const Image *image, double *kurtosis, double *skewness, ExceptionInfo *exception)
MagickExport MagickBooleanType GetImageChannelKurtosis (const Image *image, const ChannelType channel, double *kurtosis, double *skewness, ExceptionInfo *exception)
MagickExport MagickBooleanType GetImageRange (const Image *image, double *minima, double *maxima, ExceptionInfo *exception)
MagickExport MagickBooleanType GetImageChannelRange (const Image *image, const ChannelType channel, double *minima, double *maxima, ExceptionInfo *exception)
MagickExport ChannelStatisticsGetImageChannelStatistics (const Image *image, ExceptionInfo *exception)

Define Documentation

#define EvaluateImageTag   "Evaluate/Image"
#define FunctionImageTag   "Function/Image "

Referenced by FunctionImageChannel().


Function Documentation

static MagickPixelPacket** AcquirePixelThreadSet ( const Image image  )  [static]
static MagickRealType ApplyEvaluateOperator ( RandomInfo random_info,
Quantum  pixel,
const MagickEvaluateOperator  op,
const MagickRealType  value 
) [static]
static Quantum ApplyFunction ( Quantum  pixel,
const MagickFunction  function,
const unsigned long  number_parameters,
const double *  parameters,
ExceptionInfo exception 
) [static]
static MagickPixelPacket** DestroyPixelThreadSet ( MagickPixelPacket **  pixels  )  [static]
MagickExport MagickBooleanType EvaluateImage ( Image image,
const MagickEvaluateOperator  op,
const double  value,
ExceptionInfo exception 
)

Definition at line 366 of file statistic.c.

References AllChannels, and EvaluateImageChannel().

MagickExport MagickBooleanType EvaluateImageChannel ( Image image,
const ChannelType  channel,
const MagickEvaluateOperator  op,
const double  value,
ExceptionInfo exception 
)
MagickExport Image* EvaluateImages ( const Image images,
const MagickEvaluateOperator  op,
ExceptionInfo exception 
)
MagickExport MagickBooleanType FunctionImage ( Image image,
const MagickFunction  function,
const unsigned long  number_parameters,
const double *  parameters,
ExceptionInfo exception 
)

Definition at line 794 of file statistic.c.

References AllChannels, and FunctionImageChannel().

MagickExport MagickBooleanType FunctionImageChannel ( Image image,
const ChannelType  channel,
const MagickFunction  function,
const unsigned long  number_parameters,
const double *  parameters,
ExceptionInfo exception 
)
MagickExport MagickBooleanType GetImageChannelExtrema ( const Image image,
const ChannelType  channel,
unsigned long *  minima,
unsigned long *  maxima,
ExceptionInfo exception 
)
MagickExport MagickBooleanType GetImageChannelKurtosis ( const Image image,
const ChannelType  channel,
double *  kurtosis,
double *  skewness,
ExceptionInfo exception 
)
MagickExport MagickBooleanType GetImageChannelMean ( const Image image,
const ChannelType  channel,
double *  mean,
double *  standard_deviation,
ExceptionInfo exception 
)
MagickExport MagickBooleanType GetImageChannelRange ( const Image image,
const ChannelType  channel,
double *  minima,
double *  maxima,
ExceptionInfo exception 
)
MagickExport ChannelStatistics* GetImageChannelStatistics ( const Image image,
ExceptionInfo exception 
)
MagickExport MagickBooleanType GetImageExtrema ( const Image image,
unsigned long *  minima,
unsigned long *  maxima,
ExceptionInfo exception 
)

Definition at line 938 of file statistic.c.

References AllChannels, and GetImageChannelExtrema().

MagickExport MagickBooleanType GetImageKurtosis ( const Image image,
double *  kurtosis,
double *  skewness,
ExceptionInfo exception 
)

Definition at line 1123 of file statistic.c.

References AllChannels, and GetImageChannelKurtosis().

MagickExport MagickBooleanType GetImageMean ( const Image image,
double *  mean,
double *  standard_deviation,
ExceptionInfo exception 
)

Definition at line 999 of file statistic.c.

References AllChannels, and GetImageChannelMean().

MagickExport MagickBooleanType GetImageRange ( const Image image,
double *  minima,
double *  maxima,
ExceptionInfo exception 
)

Definition at line 1283 of file statistic.c.

References AllChannels, and GetImageChannelRange().

static double MagickMax ( const double  x,
const double  y 
) [inline, static]

Definition at line 178 of file statistic.c.

Referenced by ApplyEvaluateOperator(), and GetImageChannelStatistics().

static double MagickMin ( const double  x,
const double  y 
) [inline, static]

Definition at line 185 of file statistic.c.

Referenced by ApplyEvaluateOperator(), and GetImageChannelStatistics().

Generated by  doxygen 1.6.2-20100208