---
title: Color
description: "色彩值，用于图像处理补边功能，描述三通道色彩的结构体。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/msadg/mxvisionug_0158.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/msadg/mxvisionug_0158.html
indexId: 84a82b3e453077f0fa8cf605409a779ac989d5845f3baec04ffd25bae52bc4fe102
---
# Color

#### 功能

色彩值，用于图像处理补边功能，描述三通道色彩的结构体。


#### 结构定义

```
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;
};
```


#### 参数说明

| 参数名 | 说明 |
| --- | --- |
| channel\_zero，inputRed | 0号通道取值，范围[0, 255]。 例如：对于RGB\_888格式图像，该通道为R；对于YUV格式图像，该通道为Y。 |
| channel\_one，inputGreen | 1号通道取值，范围[0, 255]。 例如：对于RGB\_888格式图像，该通道为G；对于YUV格式图像，该通道为U。 |
| channel\_two，inputBlue | 2号通道取值，范围[0, 255]。 例如：对于RGB\_888格式图像，该通道为B；对于YUV格式图像，该通道为V。 |
