| http://www.ccl.net/cca/software/X-WINDOW/ImageMagick/ImageMagick/www/api/gems.shtml |
|
CCL gems |
|
NAMEgems - Graphic Gems - Graphic Support Routines
SYNOPSISGenerateNoise(pixel,noise_type)HSLTransform(hue,saturation,luminosity,red,green,blue) Hull(x_offset,y_offset,polarity,columns,rows,f,g) status=InsidePrimitive(primitive_info,annotate_info,x,y,image) Interpolate(image,pixel,x,y) TransformHSL(red,green,blue,hue,saturation,luminosity) Upsample(width,height,scaled_width,pixels)
FUNCTION DESCRIPTIONS
ConstrastFunction Contrast enhances the intensity differences between the lighter and darker elements of the image.The format of the ContrastImage routine is:
Contrast(sign,red,green,blue) A description of each parameter follows:
GenerateNoiseFunction GenerateNoise adds noise to a pixel.The format of the GenerateNoise routine is:
GenerateNoise(pixel,noise_type) A description of each parameter follows:
HSLTransformFunction HSLTransform converts a (hue, saturation, luminosity) to a (red, green, blue) triple.The format of the HSLTransformImage routine is:
HSLTransform(hue,saturation,luminosity,red,green,blue) A description of each parameter follows:
HullFunction Hull implements 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.The format of the Hull routine is:
Hull(x_offset,y_offset,polarity,columns,rows,f,g) A description of each parameter follows:
InsidePrimitiveFunction InsidePrimitive returns True if the (x,y) position is inside the primitive as defined in primitive_info. Otherwise False is returned.The format of the InsidePrimitive routine is:
status=InsidePrimitive(primitive_info,annotate_info,x,y,image) A description of each parameter follows:
InterpolateFunction Interpolate applies bi-linear interpolation between a pixel and it's neighbors.The format of the Interpolate routine is:
Interpolate(image,pixel,x,y) A description of each parameter follows:
ModulateFunction Modulate modulates the hue, saturation, and brightness of an image.The format of the ModulateImage routine is:
Modulate(percent_hue,percent_saturation,percent_luminosity,red,green,
blue) A description of each parameter follows:
TransformHSLFunction TransformHSL converts a (red, green, blue) to a (hue, saturation, luminosity) triple.The format of the TransformHSL routine is:
TransformHSL(red,green,blue,hue,saturation,luminosity) A description of each parameter follows:
UpsampleFunction UpsampleThe format of the UpSample routine is:
Upsample(width,height,scaled_width,pixels) 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 1742 times since Sat Apr 17 22:32:31 1999 GMT |