24. ColorTone¶
24.1. Functional Description¶
in WB basicofunder, againextraoutsideAdjustimagecolorbiasredorbiasblueetc.biasgood.
24.2. API Reference¶
CVI_ISP_SetColorToneAttr: Set color tone attribute parameters
CVI_ISP_GetColorToneAttr: Get color tone attribute parameters
24.2.1. CVI_ISP_SetColorToneAttr¶
[Description]
Set color tone attribute parameters
[Syntax]
CVI_S32 CVI_ISP_SetColorToneAttr(VI_PIPE ViPipe, const ISP_COLOR_TONE_ATTR_S *pstColorToneAttr);
[Parameters]
Parameter Name |
Description |
Input/Output |
|---|---|---|
ViPipe |
VI_PIPE No. |
Input |
pstColorToneAttr |
color tone attribute parameters |
Input |
[Return Value]
Return Value |
Description |
|---|---|
0 |
Success |
Non-zero |
Failure, whose value isError Code |
[Requirements]
Header File: cvi_isp.h, cvi_comm_isp.h
Library File: libisp.so
[Note]
None
[Example]
None
[Related Topics]
24.2.2. CVI_ISP_GetColorToneAttr¶
[Description]
Get color tone attribute parameters
[Syntax]
CVI_S32 CVI_ISP_GetColorToneAttr(VI_PIPE ViPipe, ISP_COLOR_TONE_ATTR_S *pstWBGAttr);
[Parameters]
Parameter Name |
Description |
Input/Output |
|---|---|---|
ViPipe |
VI_PIPE No. |
Input |
pstColorToneAttr |
color tone attribute parameters |
output |
[Return Value]
Return Value |
Description |
|---|---|
0 |
Success |
Non-zero |
Failure, whose value isError Code |
[Requirements]
Header File: cvi_isp.h, cvi_comm_isp.h
Library File: libisp.so
[Note]
None
[Example]
None
[Related Topics]
24.3. Data Types¶
ISP_COLOR_TONE_ATTR_S: color tone attribute parameters
24.3.1. ISP_COLOR_TONE_ATTR_S¶
[Description]
color tone attribute parameters
[Definition]
typedef struct _ISP_COLOR_TONE_ATTR_S {
CVI_U16 u16RedCastGain;
CVI_U16 u16GreenCastGain;
CVI_U16 u16BlueCastGain;
} ISP_COLOR_TONE_ATTR_S;
[Members]
Member Name |
Description |
|---|---|
u16RedCastGain |
R channel gain, 8bit fractional precision. Value Range: [0x0, 0x1000] Data Types: CVI_U16 |
u16GreenCastGain |
G channel gain, 8bit fractional precision. Value Range: [0x0, 0x1000] Data Types: CVI_U16 |
u16BlueCastGain |
B channel gain, 8bit fractional precision. Value Range: [0x0, 0x1000] Data Types: CVI_U16 |
[Precautions]
None
[Related Data Types and Interfaces]