>K [ 1 U 4 ImageMagick QuantizeInfo StructureV<> 
H



0ImageMagick QuantizeInfo Structure

QThe QuantizeInfo structure is used to support passing parameters to ImageMagick'sKcolor quantization (reduction) functions. Color quantization is the processFof analyzing one or more images, and calculating a color palette whichMbest approximates the image within a specified colorspace, and then adjustingHthe image pixels to use the calculated color palette. The maximum number8of colors allowed in the color palette may be specified.
 .9I2MJQ5CKEF
Methods Supporting QuantizeInfo

Method

#
Description

GetQuantizeInfo()Allocate new structure with defaults set.
CloneQuantizeInfo()Copy existing structure, allocating new structure in the process.
DestroyQuantizeInfo()Deallocate structure, including any members.
QuantizeImageAnalyzes the colors within a reference image and chooses a fixed number&of colors to represent the image.
QuantizeImagesAnalyzes the colors within a set of reference images and chooses a1fixed number of colors to represent the set.
5
 
 .8FKFKKG
QuantizeInfo Structure Members

Member


Type

#
Description

colorspaceColorspaceTypeThe colorspace to quantize in. Color reduction, by default, takes placeJin the RGB color space.  Empirical  evidence  suggests thatLdistances in color spaces such as YUV or YIQ  correspond  to Mperceptual  color differences more closely  than  do distancesOin RGB space. The Transparent color space behaves uniquely in that it preserves1the matte channel of the image if it exists.
ditherunsigned intSet to True (non-zero) to apply Floyd/Steinberg error diffusion toLthe image. When the size of the color palette is less than the image colors,Gthis trades off spacial resolution for color resolution by dithering to%achieve a similar looking image.
measure_errorunsigned intSet to True (non-zero) to calculate quantization errors when quantizingthe image.
number_colorsunsigned intSpecify the maximum number of colors in the output image. Must be equalHto, or less than MaxRGB, which is determined by the value of QuantumLeap#when ImageMagick was compiled.
signatureunsigned long ???
tree_depthunsigned intSpecify the tree depth to use while quantizing. The values zero andLone support automatic tree depth determination. The tree depth may be forcedIvia values ranging from two to eight. The ideal tree depth depends on theWcharacteristics of the input image, and may be determined through experimentation.

˜

Home Page9Image manipulation software that works like magic.