21 #ifndef SH_BMPRGBSAMPLEVALUE_H
22 #define SH_BMPRGBSAMPLEVALUE_H
39 std::string
getName (
void)
const ;
53 {
return ((
EmbValue) ((((rgb.Red & 1) ^ (rgb.Green & 1)) << 1) | ((rgb.Red & 1) ^ (rgb.Blue & 1)))) ; } ;
80 #endif // ndef SH_BMPRGBSAMPLEVALUE_H
BYTE getGreen(void) const
Definition: BmpRGBSampleValue.h:42
BYTE Green
Definition: RGBTriple.h:51
std::string getName(void) const
Definition: BmpRGBSampleValue.cc:122
EmbValue calcEValue(const RGBTriple &rgb) const
Definition: BmpRGBSampleValue.h:51
BYTE minus(BYTE a, BYTE b) const
Definition: BmpRGBSampleValue.cc:129
BYTE Red
Definition: RGBTriple.h:50
an (abstract) sample value in a bmp file
Definition: BmpSampleValue.h:31
the value of a sample in a CvrStgFile
Definition: SampleValue.h:61
BYTE getRed(void) const
Definition: BmpRGBSampleValue.h:41
a sample in a bmp rgb (i.e. 24-bit) file
Definition: BmpRGBSampleValue.h:32
void addNTSVCandidates(std::vector< RGBTriple > &cands, const BYTE cube[3][2], COLOR fc, DIRECTION fd, COLOR i1, COLOR i2, EmbValue t) const
Definition: BmpRGBSampleValue.cc:96
unsigned char BYTE
Definition: common.h:47
UWORD32 calcDistance(const SampleValue *s) const
Definition: BmpRGBSampleValue.cc:37
Definition: RGBTriple.h:26
Definition: BmpRGBSampleValue.h:55
Definition: BmpRGBSampleValue.h:56
COLOR
Definition: BmpRGBSampleValue.h:55
Definition: BmpRGBSampleValue.h:55
unsigned long UWORD32
Definition: common.h:45
BYTE plus(BYTE a, BYTE b) const
Definition: BmpRGBSampleValue.cc:138
RGBTriple Color
Definition: BmpRGBSampleValue.h:43
DIRECTION
Definition: BmpRGBSampleValue.h:56
Definition: BmpRGBSampleValue.h:55
BmpRGBSampleValue(BYTE r, BYTE g, BYTE b)
Definition: BmpRGBSampleValue.cc:23
Definition: BmpRGBSampleValue.h:56
SampleValue * getNearestTargetSampleValue(EmbValue t) const
Definition: BmpRGBSampleValue.cc:50
BYTE Blue
Definition: RGBTriple.h:52
BYTE EmbValue
Definition: common.h:66
BYTE getBlue(void) const
Definition: BmpRGBSampleValue.h:43
UWORD32 calcKey(const RGBTriple &rgb) const
Definition: BmpRGBSampleValue.h:48