Raw value to determine black and white.
More...
#include <unit_color_utility.hpp>
|
| | Calibration (const uint16_t br, const uint16_t wr, const uint16_t bg, const uint16_t wg, const uint16_t bb, const uint16_t wb) |
| |
|
uint8_t | R8 (const Data &d) const |
| | Get the red value with calibration.
|
| |
|
uint8_t | G8 (const Data &d) const |
| | Get the green value with calibration.
|
| |
|
uint8_t | B8 (const Data &d) const |
| | Get the blue value with calibration.
|
| |
|
|
static uint8_t | linear (const uint16_t raw, const uint16_t low, const uint16_t high) |
| | Linear interpolation in a specified range.
|
| |
|
|
uint16_t | blackR {} |
| | Black reference value for red.
|
| |
|
uint16_t | whiteR {} |
| | White reference value for red.
|
| |
|
uint16_t | blackG {} |
| | Black reference value for green.
|
| |
|
uint16_t | whiteG {} |
| | White reference value for green.
|
| |
|
uint16_t | blackB {} |
| | Black reference value for blue.
|
| |
|
uint16_t | whiteB {} |
| | White reference value for blue.
|
| |
Raw value to determine black and white.
◆ Calibration()
| m5::unit::tcs3472x::Calibration::Calibration |
( |
const uint16_t | br, |
|
|
const uint16_t | wr, |
|
|
const uint16_t | bg, |
|
|
const uint16_t | wg, |
|
|
const uint16_t | bb, |
|
|
const uint16_t | wb ) |
|
inline |
- Parameters
-
| br | Black reference value for red |
| wr | White reference value for red |
| bg | Black reference value for green |
| wg | White reference value for green |
| bb | Black reference value for blue |
| wb | White reference value for blue |