Zivid C++ API 2.18.0+1b44dbef-1
Zivid::ColorBGR Struct Reference

Color with 8-bit blue, green and red channels (no alpha) More...

#include <Zivid/Color.h>

Inheritance diagram for Zivid::ColorBGR:
Zivid::ColorBGRBase< uint8_t >

Public Member Functions

 ColorBGRBase ()=default
 Constructor.
 ColorBGRBase (T blue, T green, T red)
 Constructor.
Public Member Functions inherited from Zivid::ColorBGRBase< uint8_t >
 ColorBGRBase ()=default
 Constructor.
ZIVID_UTILS_EXPORT bool operator== (const ColorBGRBase &rhs) const
 Check for equality.
ZIVID_UTILS_EXPORT bool operator!= (const ColorBGRBase &rhs) const
 Check for inequality.
std::string toString () const
 Get string representation.

Additional Inherited Members

Public Types inherited from Zivid::ColorBGRBase< uint8_t >
using ValueType
 The type of the channel values.
Public Attributes inherited from Zivid::ColorBGRBase< uint8_t >
uint8_t b
 Blue channel.
uint8_t g
 Green channel.
uint8_t r
 Red channel.

Detailed Description

Color with 8-bit blue, green and red channels (no alpha)

The order of the members is b, g, r and each member is represented as an uint8_t. The members have values from 0 to 255. This format is identical to ColorBGRA 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 ColorBGR_SRGB format.

Member Function Documentation

◆ ColorBGRBase() [1/2]

Zivid::ColorBGRBase< T >::ColorBGRBase ( )
default

Constructor.

◆ ColorBGRBase() [2/2]

Zivid::ColorBGRBase< T >::ColorBGRBase ( T blue,
T green,
T red )
inline

Constructor.


The documentation for this struct was generated from the following file: