10 #ifndef ossimHsvVector_HEADER 11 #define ossimHsvVector_HEADER 23 out <<
"<" << data.
theBuf[0] <<
", " 42 float getH()
const {
return theBuf[0]; }
43 float getS()
const {
return theBuf[1]; }
44 float getV()
const {
return theBuf[2]; }
48 return static_cast<unsigned char>(theBuf[2]*255);
50 void setH(
float H) { theBuf[0] = H; }
51 void setS(
float S) { theBuf[1] = S; }
52 void setV(
float V) { theBuf[2] = V; }
54 float clamp(
float colorValue,
float min=0,
float max=255)
const 56 colorValue = colorValue >
max?
max:colorValue;
57 colorValue = colorValue <
min?
min:colorValue;
float clamp(float colorValue, float min=0, float max=255) const
static const float OSSIM_HSV_UNDEFINED
ossimHsvVector(float h=0, float s=0, float i=0)
ostream & operator<<(ostream &out, const ossimAxes &axes)
unsigned char getVUnNormalized() const
std::basic_ostream< char > ostream
Base class for char output streams.