effects - ImageMagick Image Effects Methods
noisy_image=AddNoiseImage(image,noise_type)
blurred_image=BlurImage(image,factor)
ColorizeImage(image,opaque_color,pen_color)
despeckled_image=DespeckleImage(image)
edged_image=EdgeImage(image,factor)
embossed_image=EmbossImage(image)
enhanced_image=EnhanceImage(image)
imploded_image=ImplodeImage(image,factor)
morphed_image=MorphImages(images,number_frames)
painted_image=OilPaintImage(image,radius)
status=PlasmaImage(image,segment_info,attenuate,depth)
noisy_image=ReduceNoiseImage(image)
shaded_image=ShadeImage(image,color_shading,azimuth,elevation)
sharpened_image=SharpenImage(image,factor)
SolarizeImage(image,factor)
spread_image=SpreadImage(image,amount)
stegano_image=SteganoImage(image,watermark)
stereo_image=StereoImage(left_image,right_image)
swirled_image=SwirlImage(image,degrees)
ThresholdImage(image,threshold)
waved_image=WaveImage(image,amplitude,frequency)
Method AddNoiseImage creates a new image that is a copy of an existing one with noise added. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.
The format of the AddNoiseImage routine is:
noisy_image=AddNoiseImage(image,noise_type)
A description of each parameter follows:
Method AddNoiseImage returns a pointer to the image after the noise is minified. A null image is returned if there is a memory shortage.
The address of a structure of type Image; returned from ReadImage.
The type of noise: Gaussian, multiplicative Gaussian, impulse, laplacian, or Poisson.
Method BlurImage creates a new image that is a copy of an existing one with the pixels blurred. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.
BlurImage convolves the pixel neighborhood with this blurring mask:
1 2 1
2 W 2
1 2 1
The scan only processes pixels that have a full set of neighbors. Pixels in the top, bottom, left, and right pairs of rows and columns are omitted from the scan.
The format of the BlurImage routine is:
blurred_image=BlurImage(image,factor)
A description of each parameter follows:
Method BlurImage returns a pointer to the image after it is blurred. A null image is returned if there is a memory shortage.
The address of a structure of type Image; returned from ReadImage.
An double value reflecting the percent weight to give to the center pixel of the neighborhood.
Method ColorizeImage colorizes an image with the pen color. The amount of the coloring is controlled with the opacity levels.
The format of the ColorizeImage routine is:
ColorizeImage(image,opaque_color,pen_color)
A description of each parameter follows:
The address of a structure of type Image; returned from ReadImage.
A character string that contain an X11 color string.
Method DespeckleImage creates a new image that is a copy of an existing one with the speckle noise minified. It uses the eight hull algorithm described in Applied Optics, Vol. 24, No. 10, 15 May 1985, ``Geometric filter for Speckle Reduction'', by Thomas R Crimmins. Each pixel in the image is replaced by one of its eight of its surrounding pixels using a polarity and negative hull function. DespeckleImage allocates the memory necessary for the new Image structure and returns a pointer to the new image.
The format of the DespeckleImage routine is:
despeckled_image=DespeckleImage(image)
A description of each parameter follows:
Method DespeckleImage returns a pointer to the image after it is despeckled. A null image is returned if there is a memory shortage.
The address of a structure of type Image; returned from ReadImage.
Method EdgeImage creates a new image that is a copy of an existing one with the edges highlighted. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.
EdgeImage convolves the pixel neighborhood with this edge detection mask:
-1 -1 -1
-1 W -1
-1 -1 -1
The scan only processes pixels that have a full set of neighbors. Pixels in the top, bottom, left, and right pairs of rows and columns are omitted from the scan.
The format of the EdgeImage routine is:
edged_image=EdgeImage(image,factor)
A description of each parameter follows:
Method EdgeImage returns a pointer to the image after it is edged. A null image is returned if there is a memory shortage.
The address of a structure of type Image; returned from ReadImage.
An double value reflecting the percent weight to give to the center pixel of the neighborhood.
Method EmbossImage creates a new image that is a copy of an existing one with the edge highlighted. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.
EmbossImage convolves the pixel neighborhood with this edge detection mask:
-1 -2 0
-2 0 2
0 2 1
The scan only processes pixels that have a full set of neighbors. Pixels in the top, bottom, left, and right pairs of rows and columns are omitted from the scan.
The format of the EmbossImage routine is:
embossed_image=EmbossImage(image)
A description of each parameter follows:
Method EmbossImage returns a pointer to the image after it is embossed. A null image is returned if there is a memory shortage.
The address of a structure of type Image; returned from ReadImage.
Method EnhanceImage creates a new image that is a copy of an existing one with the noise minified. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.
EnhanceImage does a weighted average of pixels in a 5x5 cell around each target pixel. Only pixels in the 5x5 cell that are within a RGB distance threshold of the target pixel are averaged.
Weights assume that the importance of neighboring pixels is negately proportional to the square of their distance from the target pixel.
The scan only processes pixels that have a full set of neighbors. Pixels in the top, bottom, left, and right pairs of rows and columns are omitted from the scan.
The format of the EnhanceImage routine is:
enhanced_image=EnhanceImage(image)
A description of each parameter follows:
Method EnhanceImage returns a pointer to the image after it is enhanced. A null image is returned if there is a memory shortage.
The address of a structure of type Image; returned from ReadImage.
Method ImplodeImage creates a new image that is a copy of an existing one with the image pixels ``imploded'' by the specified percentage. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.
The format of the ImplodeImage routine is:
imploded_image=ImplodeImage(image,factor)
A description of each parameter follows:
Method ImplodeImage returns a pointer to the image after it is imploded. A null image is returned if there is a memory shortage.
The address of a structure of type Image; returned from ReadImage.
A double value that defines the extent of the implosion.
Method MorphImages morphs a set of images. both the image pixels and size are linearly interpolated to give the appearance of a meta-morphosis from one image to the next.
The format of the MorphImage routine is:
morphed_image=MorphImages(images,number_frames)
A description of each parameter follows:
Method MorphImages returns an image sequence that has linearly interpolated pixels and size between two input images.
The address of a structure of type Image; returned from ReadImage.
This unsigned integer reflects the number of in-between images to generate. The more in-between frames, the smoother the morph.
Method OilPaintImage creates a new image that is a copy of an existing one with each pixel component replaced with the color of greatest frequency in a circular neighborhood.
The format of the OilPaintImage routine is:
painted_image=OilPaintImage(image,radius)
A description of each parameter follows:
Method OilPaintImage returns a pointer to the image after it is `painted'. A null image is returned if there is a memory shortage.
The address of a structure of type Image; returned from ReadImage.
An unsigned int that is the radius of the circular neighborhood.
Method PlasmaImage initializes an image with plasma fractal values. The image must be initialized with a base color and the random number generator seeded before this routine is called.
The format of the PlasmaImage routine is:
status=PlasmaImage(image,segment_info,attenuate,depth)
A description of each parameter follows:
Method PlasmaImage returns True when the fractal process is complete. Otherwise False is returned.
The address of a structure of type Image; returned from ReadImage.
specifies a structure of type SegmentInfo that defines the boundaries of the area where the plasma fractals are applied.
specifies the plasma attenuation factor.
this integer values define the plasma recursion depth.
Method ReduceNoiseImage creates a new image that is a copy of an existing one with the noise minified with a noise peak elimination filter. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.
The principal function of noise peak elimination filter is to smooth the objects within an image without losing edge information and without creating undesired structures. The central idea of the algorithm is to replace a pixel with its next neighbor in value within a 3 x 3 window, if this pixel has been found to be noise. A pixel is defined as noise if and only if this pixel is a maximum or minimum within the 3 x 3 window.
The format of the ReduceNoiseImage routine is:
noisy_image=ReduceNoiseImage(image)
A description of each parameter follows:
Method ReduceNoiseImage returns a pointer to the image after the noise is minified. A null image is returned if there is a memory shortage.
The address of a structure of type Image; returned from ReadImage.
Method ShadeImage creates a new image that is a copy of an existing one with the image pixels shaded using a distance light source. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.
The format of the ShadeImage routine is:
shaded_image=ShadeImage(image,color_shading,azimuth,elevation)
A description of each parameter follows:
Method ShadeImage returns a pointer to the image after it is shaded. A null image is returned if there is a memory shortage.
The address of a structure of type Image; returned from ReadImage.
A value other than zero shades the red, green, and blue components of the image.
A double value that indicates the light source direction.
Method SharpenImage creates a new image that is a copy of an existing one with the pixels sharpened. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.
SharpenImage convolves the pixel neighborhood with this sharpening mask:
-1 -2 -1
-2 W -2
-1 -2 -1
The scan only processes pixels that have a full set of neighbors. Pixels in the top, bottom, left, and right pairs of rows and columns are omitted from the scan.
The format of the SharpenImage routine is:
sharpened_image=SharpenImage(image,factor)
A description of each parameter follows:
Method SharpenImage returns a pointer to the image after it is sharpened. A null image is returned if there is a memory shortage.
The address of a structure of type Image; returned from ReadImage.
An double value reflecting the percent weight to give to the center pixel of the neighborhood.
Method SolarizeImage produces a 'solarization' effect seen when exposing a photographic film to light during the development process.
The format of the SolarizeImage routine is:
SolarizeImage(image,factor)
A description of each parameter follows:
The address of a structure of type Image; returned from ReadImage.
An double value that defines the extent of the solarization.
Method SpreadImage creates a new image that is a copy of an existing one with the image pixels randomly displaced. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.
The format of the SpreadImage routine is:
spread_image=SpreadImage(image,amount)
A description of each parameter follows:
Method SpreadImage returns a pointer to the image after it is spread. A null image is returned if there is a memory shortage.
The address of a structure of type Image; returned from ReadImage.
An unsigned value constraining the ``vicinity'' for choosing a random pixel to swap.
Method SteganoImage hides a digital watermark within the image.
The format of the SteganoImage routine is:
stegano_image=SteganoImage(image,watermark)
A description of each parameter follows:
Method SteganoImage returns a pointer to the steganographic image with the watermark hidden. A null image is returned if there is a memory shortage.
The address of a structure of type Image.
The address of a structure of type Image.
Method StereoImage combines two images and produces a single image that is the composite of a left and right image of a stereo pair. The left image is converted to gray scale and written to the red channel of the stereo image. The right image is converted to gray scale and written to the blue channel of the stereo image. View the composite image with red-blue glasses to create a stereo effect.
The format of the StereoImage routine is:
stereo_image=StereoImage(left_image,right_image)
A description of each parameter follows:
Method StereoImage returns a pointer to the stereo image. A null image is returned if there is a memory shortage.
The address of a structure of type Image.
The address of a structure of type Image.
Method SwirlImage creates a new image that is a copy of an existing one with the image pixels ``swirled'' at a specified angle. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.
The format of the SwirlImage routine is:
swirled_image=SwirlImage(image,degrees)
A description of each parameter follows:
Method SwirlImage returns a pointer to the image after it is swirled. A null image is returned if there is a memory shortage.
The address of a structure of type Image; returned from ReadImage.
An double value that defines the tightness of the swirling.
Method ThresholdImage thresholds the reference image.
The format of the ThresholdImage routine is:
ThresholdImage(image,threshold)
A description of each parameter follows:
The address of a structure of type Image; returned from ReadImage.
A double indicating the threshold value.
Method WaveImage creates a new image that is a copy of an existing one with the image pixels altered along a sine wave. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.
The format of the WaveImage routine is:
waved_image=WaveImage(image,amplitude,frequency)
A description of each parameter follows:
Method WaveImage returns a pointer to the image after it is shaded. A null image is returned if there is a memory shortage.
The address of a structure of type Image; returned from ReadImage.
A double value that indicates the amplitude and wavelength of the sine wave.