Home Page Toolkit Overview Using GML User Input Services Finger Tracker Calibrator Frame Grabber Service protocol Obtaining GML Installing GML Licence Developer Documentation Tcl/Tk API The GML Canvas Image processing Tcl Scripts Library List of Classes List of Files C/C++ API List of Classes List of Files |
gml_TColor_HLS Class Template Reference#include <gml_HLSColor.h>
Collaboration diagram for gml_TColor_HLS: Detailed Descriptiontemplate<typename Channel>
A union type used to represent HLS-encoded color pixels. HLS is Metrick's Hue, Lightness, Saturation colorspace. The type (and bitwidth) used for each channel is the template parameter.
|
Public Member Functions | |
gml_TColor_HLS (UInt8 const r, UInt8 const g, UInt8 const b) | |
Convert a 24-bit RGB triplet into HLS and fill in the object. | |
gml_TColor_HLS (const void *const ptr) | |
Fill the structure from data in memory. | |
gml_TColor_HLS () | |
Leave the structure `as is'. I.e. probably zero. | |
void | Print () |
Dump a representation of the pixel to stdout: channels in hex and in degrees, percent, percent format. | |
void | Store (void *const ptr) |
Place the structure's data in memory. | |
void | Convert (UInt8 &r, UInt8 &g, UInt8 &b) |
Convert the HLS data in this object to a 24 bit RGB triplet. | |
UInt16 | Distance (const gml_TColor_HLS< Channel > other) |
Compute the 16-bit distance to another HLS pixel. The euclidian distance in the hue, saturation disc is used. | |
Public Attributes | |
struct { | |
Channel H | |
< structure for transparent channel access hue channel | |
Channel L | |
saturation channel | |
Channel S | |
value channel | |
} | GML_PACKED |
Static Public Attributes | |
static UInt8 const | sChannelBits = 8 * sizeof (Channel) |
bits per channel | |
static UInt64 const | sChannelMax = (1 << (sChannelBits-1)) |
max channel value |
void Print | ( | ) | [inline] |
Dump a representation of the pixel to stdout: channels in hex and in degrees, percent, percent format.