casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Public Member Functions
casa::ColorDistribution_global_functions_Color_Distribution_interface Struct Reference

Global functions for generating color cube dimensions. More...

#include <ColorDistribution.h>

List of all members.

Classes

struct  colorDistItem

Public Member Functions

Bool getRGBDistribution (uInt nCells, Bool pow2, uInt &nRed, uInt &nGreen, uInt &nBlue)
 Given nCells cells, return the dimensions of an RGB or HSV color cube that maximally uses those cells by finding the best fit dimensions.
Bool getHSVDistribution (uInt nCells, Bool pow2, uInt &nHue, uInt &nSat, uInt &nVal)

Detailed Description

Global functions for generating color cube dimensions.

This table is used to map X number of color cells into an even cube for RGB distribution. It is unclear in my mind what a good HSV distribution ought to be. Maybe read table as H,V,S. Probably build different one for HSV.

Definition at line 46 of file ColorDistribution.h.


Member Function Documentation

Given nCells cells, return the dimensions of an RGB or HSV color cube that maximally uses those cells by finding the best fit dimensions.

If pow2 is True, then returned dimensions are limited to powers of two.


The documentation for this struct was generated from the following file: