![]() |
Zivid C++ API 2.18.0+1b44dbef-1
|
Color with 8-bit red, green and blue channels (no alpha) More...
#include <Zivid/Color.h>
Public Member Functions | |
| ColorRGBBase ()=default | |
| Constructor. | |
| ColorRGBBase (T red, T green, T blue) | |
| Constructor. | |
| Public Member Functions inherited from Zivid::ColorRGBBase< uint8_t > | |
| ColorRGBBase ()=default | |
| Constructor. | |
| ZIVID_UTILS_EXPORT bool | operator== (const ColorRGBBase &rhs) const |
| Check for equality. | |
| ZIVID_UTILS_EXPORT bool | operator!= (const ColorRGBBase &rhs) const |
| Check for inequality. | |
| std::string | toString () const |
| Get string representation. | |
Additional Inherited Members | |
| Public Types inherited from Zivid::ColorRGBBase< uint8_t > | |
| using | ValueType |
| The type of the channel values. | |
| Public Attributes inherited from Zivid::ColorRGBBase< uint8_t > | |
| uint8_t | r |
| Red channel. | |
| uint8_t | g |
| Green channel. | |
| uint8_t | b |
| Blue channel. | |
Color with 8-bit red, green and blue channels (no alpha)
The order of the members is r, g, b and each member is represented as an uint8_t. The members have values from 0 to 255. This format is identical to ColorRGBA but skips the alpha channel for ~25% bandwidth savings on the device-side path.
This format holds linear color values, which are suitable as input to computer vision algorithms. For showing colors on a display for viewing, consider using the ColorRGB_SRGB format.
|
default |
Constructor.
|
inline |
Constructor.