The different color spaces.
More...
#include <image/Color.h>
The different color spaces.
Color in RGB color space
◆ RGB() [1/3]
RGB |
( |
float |
ir, |
|
|
float |
ig, |
|
|
float |
ib |
|
) |
| |
|
inline |
Constructs RGB color R,G and B: range from 0.0 to 1.0.
◆ RGB() [2/3]
Default constructor that creates a black color.
◆ RGB() [3/3]
◆ reflect()
void reflect |
( |
Reflector & |
reflector | ) |
|
|
inline |
◆ toRGB()
no conversion is done here, because it is already RGB
Implements ColorBase.
◆ isInRange()
Returns true, if all rgb components are within valid ranges, i.e.
between 0.0 and 1.0.
◆ operator cv::Scalar()
operator cv::Scalar |
( |
| ) |
const |
|
inlinevirtualinherited |
converts color to cv::Scalar Converts color to cv::Scalar by first converting to RGB and then creating a 4 channel cv::Scalar(B,G,R,255);
cast operator to cv::Scalar converts color to OpenCV BGRA format by scaling range to 0..255 and setting alpha channel to 255
Reimplemented in RGBA.
◆ getClass()
Class const& getClass |
( |
| ) |
const |
|
inlineinherited |
◆ CLASS()
◆ internalGetClass()
virtual Class const& internalGetClass |
( |
| ) |
const |
|
protectedpure virtualinherited |
The documentation for this class was generated from the following file: