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_LRG Class Template Reference#include <gml_LRGColor.h>
Collaboration diagram for gml_TColor_LRG: Detailed Descriptiontemplate<typename Channel, typename KSize>
A union type used to represent LRG-color pixels. LRG stands for Luminance, Normalized Red, Normalized Green colorspace.
|
Public Member Functions | |
gml_TColor_LRG (const UInt8 r, const UInt8 g, const UInt8 b) | |
Convert a 24-bit RGB triplet into LRG and fill in the object. | |
gml_TColor_LRG (const void *const ptr) | |
Fill the structure from data in memory. | |
gml_TColor_LRG () | |
Leave structure `as is'. | |
void | Print () |
Dump a representation of the pixel to stdout: channels in hex and in 8-bit per channel hex format. | |
void | Store (void *const ptr) |
Place the structure's data in memory. | |
void | Convert (UInt8 &r, UInt8 &g, UInt8 &b) |
Convert the LRG data in this object to a 24 bit RGB triplet. | |
UInt16 | Distance (const gml_TColor_LRG< Channel, KSize > other) |
Compute the 16-bit distance to another LRG pixel. Depending on __GML_LRG_USE_EUCLIDIAN_DISTANCE, the euclidian distance in the (Cr,Cg) plane is used, or the city block distance. | |
Static Public Member Functions | |
static UInt8 | sChannelBits () |
bits per channel | |
static KSize | sChannelMax () |
max channel value | |
Public Attributes | |
struct { | |
Channel L | |
< structure for transparent channel access luminance channel | |
Channel R | |
red chrominance channel | |
Channel G | |
green chrominance channel | |
} | GML_PACKED |
void Print | ( | ) | [inline] |
Dump a representation of the pixel to stdout: channels in hex and in 8-bit per channel hex format.
Reimplemented in gml_TColor_LRG_FFF.
Convert the LRG data in this object to a 24 bit RGB triplet.
Reimplemented in gml_TColor_LRG_FFF.