EvaluateImage • FunctionImage • GetImageEntropy • GetImageExtrema • GetImageKurtosis • GetImageMean • GetImageMoments • GetImagePerceptualHash • GetImageRange • GetImageStatistics • PolynomialImage • StatisticImage
EvaluateImage() applies a value to the image with an arithmetic, relational, or logical operator to an image. Use these operations to lighten or darken an image, to increase or decrease contrast in an image, or to produce the "negative" of an image.
The format of the EvaluateImage method is:
MagickBooleanType EvaluateImage(Image *image, const MagickEvaluateOperator op,const double value, ExceptionInfo *exception) MagickBooleanType EvaluateImages(Image *images, const MagickEvaluateOperator op,const double value, ExceptionInfo *exception)
A description of each parameter follows:
FunctionImage() applies a value to the image with an arithmetic, relational, or logical operator to an image. Use these operations to lighten or darken an image, to increase or decrease contrast in an image, or to produce the "negative" of an image.
The format of the FunctionImage method is:
MagickBooleanType FunctionImage(Image *image, const MagickFunction function,const ssize_t number_parameters, const double *parameters,ExceptionInfo *exception)
A description of each parameter follows:
GetImageEntropy() returns the entropy of one or more image channels.
The format of the GetImageEntropy method is:
MagickBooleanType GetImageEntropy(const Image *image,double *entropy, ExceptionInfo *exception)
A description of each parameter follows:
GetImageExtrema() returns the extrema of one or more image channels.
The format of the GetImageExtrema method is:
MagickBooleanType GetImageExtrema(const Image *image,size_t *minima, size_t *maxima,ExceptionInfo *exception)
A description of each parameter follows:
GetImageKurtosis() returns the kurtosis and skewness of one or more image channels.
The format of the GetImageKurtosis method is:
MagickBooleanType GetImageKurtosis(const Image *image,double *kurtosis, double *skewness,ExceptionInfo *exception)
A description of each parameter follows:
GetImageMean() returns the mean and standard deviation of one or more image channels.
The format of the GetImageMean method is:
MagickBooleanType GetImageMean(const Image *image,double *mean, double *standard_deviation,ExceptionInfo *exception)
A description of each parameter follows:
GetImageMoments() returns the normalized moments of one or more image channels.
The format of the GetImageMoments method is:
ChannelMoments *GetImageMoments(const Image *image, ExceptionInfo *exception)
A description of each parameter follows:
GetImagePerceptualHash() returns the perceptual hash of one or more image channels.
The format of the GetImagePerceptualHash method is:
ChannelPerceptualHash *GetImagePerceptualHash(const Image *image, ExceptionInfo *exception)
A description of each parameter follows:
GetImageRange() returns the range of one or more image channels.
The format of the GetImageRange method is:
MagickBooleanType GetImageRange(const Image *image,double *minima, double *maxima,ExceptionInfo *exception)
A description of each parameter follows:
GetImageStatistics() returns statistics for each channel in the image. The statistics include the channel depth, its minima, maxima, mean, standard deviation, kurtosis and skewness. You can access the red channel mean, for example, like this:
channel_statistics=GetImageStatistics(image,exception); red_mean=channel_statistics[RedPixelChannel].mean;
Use MagickRelinquishMemory() to free the statistics buffer.
The format of the GetImageStatistics method is:
ChannelStatistics *GetImageStatistics(const Image *image, ExceptionInfo *exception)
A description of each parameter follows:
PolynomialImage() returns a new image where each pixel is the sum of the pixels in the image sequence after applying its corresponding terms (coefficient and degree pairs).
The format of the PolynomialImage method is:
Image *PolynomialImage(const Image *images,const size_t number_terms, const double *terms,ExceptionInfo *exception)
A description of each parameter follows:
StatisticImage() makes each pixel the min / max / median / mode / etc. of the neighborhood of the specified width and height.
The format of the StatisticImage method is:
Image *StatisticImage(const Image *image,const StatisticType type, const size_t width,const size_t height,ExceptionInfo *exception)
A description of each parameter follows: