| http://www.ccl.net/cca/software/X-WINDOW/ImageMagick/ImageMagick/www/api/effects.shtml |
|
CCL effects |
|
NAMEeffects - ImageMagick Image Effects Routines
SYNOPSISnoisy_image=AddNoiseImage(image,noise_type)blurred_image=BlurImage(image,factor) despeckled_image=DespeckleImage(image) edged_image=EdgeImage(image,factor) embossed_image=EmbossImage(image) enhanced_image=EnhanceImage(image) imploded_image=ImplodeImage(image,factor) painted_image=OilPaintImage(image,radius) status=PlasmaImage(image,segment_info,attenuate,depth) RaiseImage(image,raise_info,raised) 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) swirled_image=SwirlImage(image,degrees)
FUNCTION DESCRIPTIONS
AddNoiseImageFunction 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:
BlurImageFunction 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:
DespeckleImageFunction 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:
EdgeImageFunction 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 0 -1
0 W 0
-1 0 -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:
EmbossImageFunction 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:
EnhanceImageFunction 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:
ImplodeImageFunction 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:
OilPaintImageFunction 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:
PlasmaImageFunction 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:
RaiseImageFunction RaiseImage lightens and darkens the edges of an image to give a 3-D raised or lower effect.The format of the RaiseImage routine is:
RaiseImage(image,raise_info,raised) A description of each parameter follows:
ReduceNoiseImageFunction 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:
ShadeImageFunction 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:
SharpenImageFunction 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:
SolarizeImageFunction 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:
SpreadImageFunction 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:
SwirlImageFunction 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:
|
[ CCL Home Page ]
[ api ]
[ Raw Version of this page ]
| Modified: Wed May 7 00:32:25 1997 GMT |
| Page accessed 1706 times since Sat Apr 17 22:32:30 1999 GMT |