NAMEeffect - Add an Effect
SYNOPSISImage * AdaptiveThresholdImage( const Image *image, const unsigned long width, const unsigned long height, const long offset, ExceptionInfo *exception ); Image * AddNoiseImage( const Image *image, const NoiseType noise_type, ExceptionInfo *exception ); MagickBooleanType BilevelImageChannel( Image *image, const ChannelType channel, const double threshold ); MagickBooleanType BlackThresholdImage( Image *image, const char *threshold ); Image * BlurImageChannel( const Image *image, const ChannelType channel, const double radius, const double sigma, ExceptionInfo *exception ); Image * DespeckleImage( const Image *image, ExceptionInfo *exception ); Image * EdgeImage( const Image *image, const double radius, ExceptionInfo *exception ); Image * EmbossImage( const Image *image, const double radius, const double sigma, ExceptionInfo *exception ); Image * GaussianBlurImageChannel( const Image *image, const ChannelType channel, const double radius, const double sigma, ExceptionInfo *exception ); Image * MedianFilterImage( const Image *image, const double radius, ExceptionInfo *exception ); Image * MotionBlurImage( const Image *image, const double radius, const double sigma, const double angle, ExceptionInfo *exception ); Image * RadialBlurImage( const Image *image, const double angle, ExceptionInfo *exception ); MagickBooleanType RandomThresholdImageChannel( Image *image, const ChannelType channel, const char *thresholds, ExceptionInfo *exception ); Image * ReduceNoiseImage( const Image *image, const double radius, ExceptionInfo *exception ); Image * ShadeImage( const Image *image, const MagickBooleanType gray, const double azimuth, const double elevation, ExceptionInfo *exception ); Image * SharpenImageChannel( const Image *image, const ChannelType channel, const double radius, const double sigma, ExceptionInfo *exception ); Image * SpreadImage( const Image *image, const double radius, ExceptionInfo *exception ); Image * UnsharpMaskImageChannel( const Image *image, const ChannelType channel, const double radius, const double sigma, const double amount, const double threshold, ExceptionInfo *exception ); MagickBooleanType WhiteThresholdImage( Image *image, const char *threshold );
FUNCTION DESCRIPTIONS
AdaptiveThresholdImageAdaptiveThresholdImage() selects an individual threshold for each pixel based on the range of intensity values in its local neighborhood. This allows for thresholding of an image whose global intensity histogram doesn't contain distinctive peaks. The format of the AdaptiveThresholdImage method is: Image *AdaptiveThresholdImage ( const Image *image, const unsigned long width, const unsigned long height, const long offset, ExceptionInfo *exception ); A description of each parameter follows:
AddNoiseImageAddNoiseImage() adds random noise to the image. The format of the AddNoiseImage method is: Image *AddNoiseImage ( const Image *image, const NoiseType noise_type, ExceptionInfo *exception ); A description of each parameter follows:
BilevelImageChannelBilevelImageChannel() changes the value of individual pixels based on the intensity of each pixel channel. The result is a high-contrast image. The format of the BilevelImageChannel method is: MagickBooleanType BilevelImageChannel ( Image *image, const ChannelType channel, const double threshold ); A description of each parameter follows:
BlackThresholdImageBlackThresholdImage() is like ThresholdImage ( ) but forces all pixels below the threshold into black while leaving all pixels above the threshold unchanged. The format of the BlackThresholdImage method is: MagickBooleanType BlackThresholdImage ( Image *image, const char *threshold ); A description of each parameter follows:
BlurImageChannelBlurImageChannel() blurs an image. We convolve the image with a Gaussian operator of the given radius and standard deviation ( sigma ) . For reasonable results, the radius should be larger than sigma. Use a radius of 0 and BlurImageChannel ( ) selects a suitable radius for you. BlurImageChannel() differs from GaussianImageChannel ( ) in that it uses a separable kernel which is faster but mathematically equivalent to the non-separable kernel. The format of the BlurImageChannel method is: Image *BlurImageChannel ( const Image *image, const ChannelType channel, const double radius, const double sigma, ExceptionInfo *exception ); A description of each parameter follows:
DespeckleImageDespeckleImage() reduces the speckle noise in an image while perserving the edges of the original image. The format of the DespeckleImage method is: Image *DespeckleImage ( const Image *image, ExceptionInfo *exception ); A description of each parameter follows:
EdgeImageEdgeImage() finds edges in an image. Radius defines the radius of the convolution filter. Use a radius of 0 and EdgeImage ( ) selects a suitable radius for you. The format of the EdgeImage method is: Image *EdgeImage ( const Image *image, const double radius, ExceptionInfo *exception ); A description of each parameter follows:
EmbossImageEmbossImage() returns a grayscale image with a three-dimensional effect. We convolve the image with a Gaussian operator of the given radius and standard deviation ( sigma ) . For reasonable results, radius should be larger than sigma. Use a radius of 0 and Emboss ( ) selects a suitable radius for you. The format of the EmbossImage method is: Image *EmbossImage ( const Image *image, const double radius, const double sigma, ExceptionInfo *exception ); A description of each parameter follows:
GaussianBlurImageChannelGaussianBlurImageChannel() blurs an image. We convolve the image with a Gaussian operator of the given radius and standard deviation ( sigma ) . For reasonable results, the radius should be larger than sigma. Use a radius of 0 and GaussianBlurImage ( ) selects a suitable radius for you The format of the GaussianBlurImageChannel method is: Image *GaussianBlurImageChannel ( const Image *image, const ChannelType channel, const double radius, const double sigma, ExceptionInfo *exception ); A description of each parameter follows:
MedianFilterImageMedianFilterImage() applies a digital filter that improves the quality of a noisy image. Each pixel is replaced by the median in a set of neighboring pixels as defined by radius. The algorithm was contributed by Mike Edmonds and implements an insertion sort for selecting median color-channel values. For more on this algorithm see ``Skip Lists: A probabilistic Alternative to Balanced Trees'' by William Pugh in the June 1990 of Communications of the ACM. The format of the MedianFilterImage method is: Image *MedianFilterImage ( const Image *image, const double radius, ExceptionInfo *exception ); A description of each parameter follows:
MotionBlurImageMotionBlurImage() simulates motion blur. We convolve the image with a Gaussian operator of the given radius and standard deviation ( sigma ) . For reasonable results, radius should be larger than sigma. Use a radius of 0 and MotionBlurImage ( ) selects a suitable radius for you. Angle gives the angle of the blurring motion. Andrew Protano contributed this effect. The format of the MotionBlurImage method is: Image *MotionBlurImage ( const Image *image, const double radius, const double sigma, const double angle, ExceptionInfo *exception ); A description of each parameter follows:
PreviewImagePreviewImage() tiles 9 thumbnails of the specified image with an image processing operation applied with varying parameters. This may be helpful pin-pointing an appropriate parameter for a particular image processing operation. The format of the PreviewImages method is: Image *PreviewImages(const Image *image,const PreviewType preview, ExceptionInfo *exception) A description of each parameter follows:
RadialBlurImageRadialBlurImage() applies a radial blur to the image. Andrew Protano contributed this effect. The format of the RadialBlurImage method is: Image *RadialBlurImage ( const Image *image, const double angle, ExceptionInfo *exception ); A description of each parameter follows:
RandomThresholdImageChannelRandomThresholdImageChannel() changes the value of individual pixels based on the intensity of each pixel compared to a random threshold. The result is a low-contrast, two color image. The format of the RandomThresholdImageChannel method is: MagickBooleanType RandomThresholdImageChannel ( Image *image, const ChannelType channel, const char *thresholds, ExceptionInfo *exception ); A description of each parameter follows:
ReduceNoiseImageReduceNoiseImage() smooths the contours of an image while still preserving edge information. The algorithm works by replacing each pixel with its neighbor closest in value. A neighbor is defined by radius. Use a radius of 0 and ReduceNoise ( ) selects a suitable radius for you. The format of the ReduceNoiseImage method is: Image *ReduceNoiseImage ( const Image *image, const double radius, ExceptionInfo *exception ); A description of each parameter follows:
ShadeImageShadeImage() shines a distant light on an image to create a three-dimensional effect. You control the positioning of the light with azimuth and elevation; azimuth is measured in degrees off the x axis and elevation is measured in pixels above the Z axis. The format of the ShadeImage method is: Image *ShadeImage ( const Image *image, const MagickBooleanType gray, const double azimuth, const double elevation, ExceptionInfo *exception ); A description of each parameter follows:
SharpenImageChannelSharpenImageChannel() sharpens one or more image channels. We convolve the image with a Gaussian operator of the given radius and standard deviation ( sigma ) . For reasonable results, radius should be larger than sigma. Use a radius of 0 and SharpenImage ( ) selects a suitable radius for you. Using a separable kernel would be faster, but the negative weights cancel out on the corners of the kernel producing often undesirable ringing inthe filtered result; this can be avoided by using a 2D gaussian shaped image sharpening kernel instead. The format of the SharpenImage method is: Image *SharpenImageChannel ( const Image *image, const ChannelType channel, const double radius, const double sigma, ExceptionInfo *exception ); A description of each parameter follows:
SpreadImageSpreadImage() is a special effects method that randomly displaces each pixel in a block defined by the radius parameter. The format of the SpreadImage method is: Image *SpreadImage ( const Image *image, const double radius, ExceptionInfo *exception ); A description of each parameter follows:
UnsharpMaskImageChannel
The format of the UnsharpMaskImage method is: Image *UnsharpMaskImageChannel ( const Image *image, const ChannelType channel, const double radius, const double sigma, const double amount, const double threshold, ExceptionInfo *exception ); A description of each parameter follows:
WhiteThresholdImageWhiteThresholdImage() is like ThresholdImage ( ) but forces all pixels above the threshold into white while leaving all pixels below the threshold unchanged. The format of the WhiteThresholdImage method is: MagickBooleanType WhiteThresholdImage ( Image *image, const char *threshold ); A description of each parameter follows:
|