#include <ossimHsvVector.h>
Definition at line 18 of file ossimHsvVector.h.
◆ ossimHsvVector() [1/2]
ossimHsvVector::ossimHsvVector |
( |
float |
h = 0 , |
|
|
float |
s = 0 , |
|
|
float |
i = 0 |
|
) |
| |
|
inline |
◆ ossimHsvVector() [2/2]
Definition at line 19 of file ossimHsvVector.cpp.
References clamp(), ossimRgbVector::getB(), ossimRgbVector::getG(), ossimRgbVector::getR(), max, min, OSSIM_HSV_UNDEFINED, theBuf, and x.
46 f = (r ==
x) ? g - b : ((g ==
x) ? b - r : r - g);
47 i = (r ==
x) ? 3 : ((g ==
x) ? 5 : 1);
unsigned char getR() const
float clamp(float colorValue, float min=0, float max=255) const
static const float OSSIM_HSV_UNDEFINED
unsigned char getB() const
unsigned char getG() const
◆ clamp()
float ossimHsvVector::clamp |
( |
float |
colorValue, |
|
|
float |
min = 0 , |
|
|
float |
max = 255 |
|
) |
| const |
|
inline |
◆ getH()
float ossimHsvVector::getH |
( |
| ) |
const |
|
inline |
◆ getS()
float ossimHsvVector::getS |
( |
| ) |
const |
|
inline |
◆ getV()
float ossimHsvVector::getV |
( |
| ) |
const |
|
inline |
◆ getVUnNormalized()
unsigned char ossimHsvVector::getVUnNormalized |
( |
| ) |
const |
|
inline |
◆ operator=()
Definition at line 56 of file ossimHsvVector.cpp.
References clamp(), ossimRgbVector::getB(), ossimRgbVector::getG(), ossimRgbVector::getR(), max, min, OSSIM_HSV_UNDEFINED, theBuf, and x.
83 f = (r ==
x) ? g - b : ((g ==
x) ? b - r : r - g);
84 i = (r ==
x) ? 3 : ((g ==
x) ? 5 : 1);
unsigned char getR() const
float clamp(float colorValue, float min=0, float max=255) const
static const float OSSIM_HSV_UNDEFINED
unsigned char getB() const
unsigned char getG() const
◆ setH()
void ossimHsvVector::setH |
( |
float |
H | ) |
|
|
inline |
◆ setS()
void ossimHsvVector::setS |
( |
float |
S | ) |
|
|
inline |
◆ setV()
void ossimHsvVector::setV |
( |
float |
V | ) |
|
|
inline |
◆ operator<<
◆ OSSIM_HSV_UNDEFINED
const float ossimHsvVector::OSSIM_HSV_UNDEFINED = -1 |
|
static |
◆ theBuf
float ossimHsvVector::theBuf[3] |
|
protected |
The documentation for this class was generated from the following files: