20 # define MAX(x,y) ((x)>(y)?(x):(y)) 21 # define MIN(x,y) ((x)>(y)?(y):(x)) 58 double deltaI1I2 = r - g;
59 double root = deltaI1I2*deltaI1I2 +
68 theBuf[0] = acos((.5*((r-g)+(r-b)))/
unsigned char getR() const
ossimHsiVector(ossim_float64 h=0, ossim_float64 s=0, ossim_float64 i=0)
void setFromRgb(ossim_float64 r, ossim_float64 g, ossim_float64 b)
void setI(ossim_float64 I)
void setH(ossim_float64 H)
unsigned char getB() const
unsigned char getG() const
ossim_float64 getB() const
void setS(ossim_float64 S)
ossim_float64 getG() const
ossim_float64 getR() const
ossimHsiVector & operator=(const ossimRgbVector &rgb)