#include <BmpRGBSampleValue.h>
Inheritance diagram for BmpRGBSampleValue:
Public Member Functions | |
BmpRGBSampleValue (BYTE r, BYTE g, BYTE b) | |
BmpRGBSampleValue (RGBTriple t) | |
UWORD32 | calcDistance (const SampleValue *s) const |
SampleValue * | getNearestTargetSampleValue (EmbValue t) const |
std::string | getName (void) const |
BYTE | getRed (void) const |
BYTE | getGreen (void) const |
BYTE | getBlue (void) const |
Private Types | |
enum | COLOR { RED, GREEN, BLUE } |
enum | DIRECTION { UP, DOWN } |
Private Member Functions | |
UWORD32 | calcKey (const RGBTriple &rgb) const |
EmbValue | calcEValue (const RGBTriple &rgb) const |
BYTE | plus (BYTE a, BYTE b) const |
BYTE | minus (BYTE a, BYTE b) const |
void | addNTSVCandidates (std::vector< RGBTriple > &cands, const BYTE cube[3][2], COLOR fc, DIRECTION fd, COLOR i1, COLOR i2, EmbValue t) const |
Private Attributes | |
RGBTriple | Color |
|
|
|
|
|
|
|
|
|
add candidates for the nearest target sample value
|
|
calculate the distance between the sample value s and this sample value
Reimplemented from BmpSampleValue. |
|
|
|
|
|
get the blue color component Implements BmpSampleValue. |
|
get the green color component Implements BmpSampleValue. |
|
return a short name uniquely identifying this sample value Implements SampleValue. |
|
get the nearest (with the least distance to this sample value) sample value whose embedded value equals the specified target
The returned SampleValue object should be deleted by the callser. Implements SampleValue. |
|
get the red color component Implements BmpSampleValue. |
|
substract the BYTE b from the BYTE a
|
|
add the BYTEs a and b
|
|
|