Color
Description
Defines the color value structure that performs padding during image processing and describes colors of the three channels.
Structure Definition
1 2 3 4 5 6 7 8 9 10 | struct Color { Color() : channel_zero(0), channel_one(0), channel_two(0) {}; Color(const uint32_t inputRed, const uint32_t inputGreen, const uint32_t inputBlue) : channel_zero(inputRed), channel_one(inputGreen), channel_two(inputBlue) {}; uint32_t channel_zero; uint32_t channel_one; uint32_t channel_two; }; |
Parameters
Parameter |
Description |
|---|---|
channel_zero, inputRed |
Value of channel 0. Must be in the range of [0, 255]. For example, for RGB_888 images, the channel is R; for YUV images, the channel is Y. |
channel_one, inputGreen |
Value of channel 1. Must be in the range of [0, 255]. For example, for RGB_888 images, the channel is G; for YUV images, the channel is U. |
channel_two, inputBlue |
Value of channel 2. Must be in the range of [0, 255]. For example, for RGB_888 images, the channel is B; for YUV images, the channel is V. |
Parent topic: General Data Structures