| http://www.ccl.net/cca/software/X-WINDOW/ImageMagick/ImageMagick/www/api/colors.shtml |
|
CCL colors |
|
NAMEcolors - Count the Colors in an Image
SYNOPSISDestroyList(node)Histogram(node,file) node=InitializeNode(level) status=IsPseudoClass(image) NumberColors(image,file)
FUNCTION DESCRIPTIONS
DestroyListProcedure DestroyList traverses the color cube tree and free the list of unique colors.The format of the DestroyList routine is:
DestroyList(node) A description of each parameter follows.
HistogramProcedure Histogram traverses the color cube tree and produces a list of unique pixel field values and the number of times each occurs in the image.The format of the Histogram routine is:
Histogram(node,file) A description of each parameter follows.
InitializeNodeFunction InitializeNode allocates memory for a new node in the color cube tree and presets all fields to zero.The format of the InitializeNode routine is:
node=InitializeNode(level) A description of each parameter follows.
IsPseudoClassFunction IsPseudoClass returns True if the image is PseudoClass and has 256 unique colors or less. If the image is DirectClass and has less 256 colors or less, the image is demoted to PseudoClass.The format of the IsPseudoClass routine is:
status=IsPseudoClass(image) A description of each parameter follows.
NumberColorsFunction NumberColors returns the number of unique colors in an image.The format of the NumberColors routine is:
NumberColors(image,file) 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 1711 times since Sat Apr 17 22:32:29 1999 GMT |