casa
$Rev:20696$
|
Global functions for generating color cube dimensions. More...
#include <ColorDistribution.h>
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) |
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.
Bool casa::ColorDistribution_global_functions_Color_Distribution_interface::getHSVDistribution | ( | uInt | nCells, |
Bool | pow2, | ||
uInt & | nHue, | ||
uInt & | nSat, | ||
uInt & | nVal | ||
) |
Bool casa::ColorDistribution_global_functions_Color_Distribution_interface::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.
If pow2 is True, then returned dimensions are limited to powers of two.