18. DEMOSAIC¶
18.1. Functional Description¶
handleimageby Bayer Pattern interpolateoutputcompletewhole RGB andraiseincreasedetailsandsharpness.
18.2. API Reference¶
CVI_ISP_SetDemosaicAttr : SetDemosaicdemosaic attribute parameters
CVI_ISP_GetDemosaicAttr : GetDemosaicdemosaic attribute parameters
CVI_ISP_SetDemosaicDemoireAttr : SetDemosaicdemosaic attribute parameters
CVI_ISP_GetDemosaicDemoireAttr : GetDemosaicdemosaic attribute parameters
18.2.1. CVI_ISP_SetDemosaicAttr¶
[Description]
SetDemosaicdemosaic attribute parameters
[Syntax]
CVI_S32 CVI_ISP_SetDemosaicAttr(VI_PIPE ViPipe, const ISP_DEMOSAIC_ATTR_S *pstDemosaicAttr);
[Parameters]
Parameter Name |
Description |
Input/Output |
|---|---|---|
ViPipe |
VI_PIPE No. |
Input |
pstDemosaicAttr |
Demosaicdemosaic attribute parameters |
Input |
[Return Value]
Return Value |
Description |
|---|---|
0 |
Success |
Non-zero |
Failure, whose value is Error Code. |
[Requirements]
Header File: cvi_isp.h, cvi_comm_isp.h
Library File: libisp.so
[Note]
None
[Example]
VI_PIPE ViPipe = 0;
ISP_DEMOSAIC_ATTR_S stAttr;
CVI_ISP_GetDemosaicAttr(ViPipe, &stAttr);
stAttr.enOpType = OP_TYPE_AUTO;
CVI_ISP_SetDemosaicAttr(ViPipe, &stAttr);
[Related Topics]
18.2.2. CVI_ISP_GetDemosaicAttr¶
[Description]
GetDemosaicdemosaic attribute parameters
[Syntax]
CVI_S32 CVI_ISP_GetDemosaicAttr(VI_PIPE ViPipe, ISP_DEMOSAIC_ATTR_S *pstDemosaicAttr);
[Parameters]
Parameter Name |
Description |
Input/Output |
|---|---|---|
ViPipe |
VI_PIPE No. |
Input |
pstDemosaicAttr |
Demosaicdemosaic attribute parameters |
output |
[Return Value]
Return Value |
Description |
|---|---|
0 |
Success |
Non-zero |
Failure, whose value is Error Code. |
[Requirements]
Header File: cvi_isp.h, cvi_comm_isp.h
Library File: libisp.so
[Note]
None
[Example]
None
[Related Topics]
18.2.3. CVI_ISP_SetDemosaicDemoireAttr¶
[Description]
SetDemosaicdemosaic attribute parameters
[Syntax]
CVI_S32 CVI_ISP_SetDemosaicDemoireAttr(VI_PIPE ViPipe, const ISP_DEMOSAIC_DEMOIRE_ATTR_S *pstDemosaicDemoireAttr);
[Parameters]
Parameter Name |
Description |
Input/Output |
|---|---|---|
ViPipe |
VI_PIPE No. |
Input |
pstDemosaicDemoireAttr |
Demosaicdemosaic attribute parameters |
Input |
[Return Value]
Return Value |
Description |
|---|---|
0 |
Success |
Non-zero |
Failure, whose value is Error Code. |
[Requirements]
Header File: cvi_isp.h, cvi_comm_isp.h
Library File: libisp.so
[Note]
None
[Example]
VI_PIPE ViPipe = 0;
ISP_DEMOSAIC_DEMOIRE_ATTR_S stAttr;
CVI_ISP_GetDemosaicDemoireAttr(ViPipe, &stAttr);
stAttr.enOpType = OP_TYPE_AUTO;
CVI_ISP_SetDemosaicDemoireAttr(ViPipe, &stAttr);
[Related Topics]
18.2.4. CVI_ISP_GetDemosaicDemoireAttr¶
[Description]
GetDemosaicdemosaic attribute parameters
[Syntax]
CVI_S32 CVI_ISP_GetDemosaicDemoireAttr(VI_PIPE ViPipe, ISP_DEMOSAIC_DEMOIRE_ATTR_S *pstDemosaicDemoireAttr);
[Parameters]
Parameter Name |
Description |
Input/Output |
|---|---|---|
ViPipe |
VI_PIPE No. |
Input |
pstDemosaicDemoireAttr |
Demosaicdemosaic attribute parameters |
output |
[Return Value]
Return Value |
Description |
|---|---|
0 |
Success |
Non-zero |
Failure, whose value is Error Code. |
[Requirements]
Header File: cvi_isp.h, cvi_comm_isp.h
Library File: libisp.so
[Note]
None
[Example]
None
[Related Topics]
18.3. Data Types¶
ISP_DEMOSAIC_MANUAL_ATTR_S : Manual DefinitionDemosaicdemosaic attribute parameters
ISP_DEMOSAIC_AUTO_ATTR_S : Automatic DefinitionDemosaicdemosaic attribute parameters
ISP_DEMOSAIC_ATTR_S : Define Demosaicdemosaic attribute parameters
ISP_DEMOSAIC_DEMOIRE_MANUAL_ATTR_S : Manual DefinitionDemosaicdemosaic attribute parameters
ISP_DEMOSAIC_DEMOIRE_AUTO_ATTR_S : Automatic DefinitionDemosaicdemosaic attribute parameters
ISP_DEMOSAIC_DEMOIRE_ATTR_S : Define Demosaicdemosaic attribute parameters
18.3.1. ISP_DEMOSAIC_MANUAL_ATTR_S¶
[Description]
Manual DefinitionDemosaicdemosaic attribute parameters
[Definition]
typedef struct _ISP_DEMOSAIC_MANUAL_ATTR_S {
CVI_U16 CoarseEdgeThr; /*Rw; Range:[0, 4095]*/
CVI_U16 CoarseStr; /*Rw; Range:[0, 4095]*/
CVI_U16 FineEdgeThr; /*Rw; Range:[0, 4095]*/
CVI_U16 FineStr; /*Rw; Range:[0, 4095]*/
CVI_U16 RbSigLumaThd; /*Rw; Range:[0, 4095]*/
CVI_U8 FilterMode; /*Rw; Range:[0, 1]*/
} ISP_DEMOSAIC_MANUAL_ATTR_S;
[Members]
Member Name |
Description |
|---|---|
CoarseEdgeThr |
edgecoarseadjustdetectionthreshold. the smaller the value, detectionisedge quantitythe moremultiple. Recommended companion parametersCoarseStrDebug. Value Range: [0, 4095] Data Types: CVI_U16 |
CoarseStr |
edgecoarseadjuststrengthvalue. the smaller the value, more directional processing. and vice versa, more non-directional processing. Value Range: [0, 4095] Data Types: CVI_U16 |
FineEdgeThr |
edgedetailadjustdetectionthreshold. the smaller the value, detectionisedge quantitythe moremultiple. Recommended companion parametersFineStrDebug. Value Range: [0, 4095] Data Types: CVI_U16 |
FineStr |
edgedetailadjuststrengthvalue. the smaller the value, more directional processing. and vice versa, more non-directional processing. Value Range: [0, 4095] Data Types: CVI_U16 |
RbSigLumaThd |
None Value Range: [0, 4095] Data Types: CVI_U16 |
FilterMode |
DCimage sharpeningwidth, numberthe larger the value, edgeissharptransform widththe morewidth, visualvisualonwillthe moreobviouspurpose. Value Range: [0, 1] Data Types: CVI_U8 |
[Precautions]
None
[Related Data Types and Interfaces]
18.3.2. ISP_DEMOSAIC_AUTO_ATTR_S¶
[Description]
Automatic DefinitionDemosaicdemosaic attribute parameters
[Definition]
typedef struct _ISP_DEMOSAIC_AUTO_ATTR_S {
CVI_U16 CoarseEdgeThr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 4095]*/
CVI_U16 CoarseStr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 4095]*/
CVI_U16 FineEdgeThr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 4095]*/
CVI_U16 FineStr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 4095]*/
CVI_U16 RbSigLumaThd[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 4095]*/
CVI_U8 FilterMode[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 1]*/
} ISP_DEMOSAIC_AUTO_ATTR_S;
[Members]
Member Name |
Description |
|---|---|
CoarseEdgeThr |
edgecoarseadjustdetectionthreshold. the smaller the value, detectionisedge quantitythe moremultiple. Recommended companion parametersCoarseStrDebug. Value Range: [0, 4095] Data Types: CVI_U16 |
CoarseStr |
edgecoarseadjuststrengthvalue. the smaller the value, more directional processing. and vice versa, more non-directional processing. Value Range: [0, 4095] Data Types: CVI_U16 |
FineEdgeThr |
edgedetailadjustdetectionthreshold. the smaller the value, detectionisedge quantitythe moremultiple. Recommended companion parametersFineStrDebug. Value Range: [0, 4095] Data Types: CVI_U16 |
FineStr |
edgedetailadjuststrengthvalue. the smaller the value, more directional processing. and vice versa, more non-directional processing. Value Range: [0, 4095] Data Types: CVI_U16 |
RbSigLumaThd |
None Value Range: [0, 4095] Data Types: CVI_U16 |
FilterMode |
DCimage sharpeningwidth, numberthe larger the value, edgeissharptransform widththe morewidth, visualvisualonwillthe moreobviouspurpose. Value Range: [0, 1] Data Types: CVI_U8 |
[Precautions]
None
[Related Data Types and Interfaces]
18.3.3. ISP_DEMOSAIC_ATTR_S¶
[Description]
Define Demosaicdemosaic attribute parameters
[Definition]
typedef struct _ISP_DEMOSAIC_ATTR_S {
CVI_BOOL Enable; /*Rw; Range:[0, 1]*/
ISP_OP_TYPE_E enOpType;
CVI_U8 UpdateInterval; /*Rw; Range:[0, 255]*/
CVI_BOOL TuningMode; /*Rw; Range:[0, 1]*/
CVI_BOOL RbVtEnable; /*Rw; Range:[0, 1]*/
ISP_DEMOSAIC_MANUAL_ATTR_S stManual;
ISP_DEMOSAIC_AUTO_ATTR_S stAuto;
} ISP_DEMOSAIC_ATTR_S;
[Members]
Member Name |
Description |
|---|---|
Enable |
module enable switch Value Range: [0, 1] Data Types: CVI_BOOL |
enOpType |
operation type OP_TYPE_AUTO: automatic mode OP_TYPE_MANUAL: manual mode Data Types: ISP_OP_TYPE_E |
UpdateInterval |
affects the parameter update interval,the larger the value, the slower the image changes,the better the performance. Value Range: [0, 255] Data Types: CVI_U8 |
TuningMode |
outputDebugscheme, auxiliaryAdjustparameternumber. 0: Demosaicimageresult. 1: flatflat/vertical/horizontaledgedetectionimageresult. Value Range: [0, 1] Data Types: CVI_BOOL |
RbVtEnable |
None Value Range: [0, 1] Data Types: CVI_BOOL |
stManual |
manual parameters |
stAuto |
automatic parameters |
[Precautions]
None
[Related Data Types and Interfaces]
18.3.4. ISP_DEMOSAIC_DEMOIRE_MANUAL_ATTR_S¶
[Description]
Manual DefinitionDemosaicdemosaic attribute parameters
[Definition]
typedef struct _ISP_DEMOSAIC_DEMOIRE_MANUAL_ATTR_S {
CVI_U8 AntiFalseColorStr; /*Rw; Range:[0, 255]*/
CVI_U16 SatGainIn[2]; /*Rw; Range:[0, 4095]*/
CVI_U16 SatGainOut[2]; /*Rw; Range:[0, 4095]*/
CVI_U16 ProtectColorGainIn[2]; /*Rw; Range:[0, 4095]*/
CVI_U16 ProtectColorGainOut[2]; /*Rw; Range:[0, 4095]*/
CVI_U16 UserDefineProtectColor1; /*Rw; Range:[0, 4095]*/
CVI_U16 UserDefineProtectColor2; /*Rw; Range:[0, 4095]*/
CVI_U16 UserDefineProtectColor3; /*Rw; Range:[0, 4095]*/
CVI_U16 EdgeGainIn[2]; /*Rw; Range:[0, 4095]*/
CVI_U16 EdgeGainOut[2]; /*Rw; Range:[0, 4095]*/
CVI_U16 DetailGainIn[2]; /*Rw; Range:[0, 4095]*/
CVI_U16 DetailGaintOut[2]; /*Rw; Range:[0, 4095]*/
CVI_U16 DetailDetectLumaStr; /*Rw; Range:[0, 4095]*/
CVI_U8 DetailSmoothStr; /*Rw; Range:[0, 255]*/
CVI_U8 DetailWgtThr; /*Rw; Range:[0, 255]*/
CVI_U16 DetailWgtMin; /*Rw; Range:[0, 256]*/
CVI_U16 DetailWgtMax; /*Rw; Range:[0, 256]*/
CVI_U16 DetailWgtSlope; /*Rw; Range:[0, 1024]*/
CVI_U8 EdgeWgtNp; /*Rw; Range:[0, 255]*/
CVI_U8 EdgeWgtThr; /*Rw; Range:[0, 255]*/
CVI_U16 EdgeWgtMin; /*Rw; Range:[0, 256]*/
CVI_U16 EdgeWgtMax; /*Rw; Range:[0, 256]*/
CVI_U16 EdgeWgtSlope; /*Rw; Range:[0, 1024]*/
CVI_U8 DetailSmoothMapTh; /*Rw; Range:[0, 255]*/
CVI_U16 DetailSmoothMapMin; /*Rw; Range:[0, 256]*/
CVI_U16 DetailSmoothMapMax; /*Rw; Range:[0, 256]*/
CVI_U16 DetailSmoothMapSlope; /*Rw; Range:[0, 1024]*/
CVI_U8 LumaWgt; /*Rw; Range:[0, 255]*/
CVI_U8 SharpenGain; /*Rw; Range:[0, 255]*/
} ISP_DEMOSAIC_DEMOIRE_MANUAL_ATTR_S;
[Members]
Member Name |
Description |
|---|---|
AntiFalseColorStr |
None Value Range: [0, 255] Data Types: CVI_U8 |
SatGainIn |
None Value Range: [0, 4095] Data Types: CVI_U16 |
SatGainOut |
None Value Range: [0, 4095] Data Types: CVI_U16 |
ProtectColorGainIn |
None Value Range: [0, 4095] Data Types: CVI_U16 |
ProtectColorGainOut |
None Value Range: [0, 4095] Data Types: CVI_U16 |
UserDefineProtectColor1 |
None Value Range: [0, 4095] Data Types: CVI_U16 |
UserDefineProtectColor2 |
None Value Range: [0, 4095] Data Types: CVI_U16 |
UserDefineProtectColor3 |
None Value Range: [0, 4095] Data Types: CVI_U16 |
EdgeGainIn |
None Value Range: [0, 4095] Data Types: CVI_U16 |
EdgeGainOut |
None Value Range: [0, 4095] Data Types: CVI_U16 |
DetailGainIn |
None Value Range: [0, 4095] Data Types: CVI_U16 |
DetailGaintOut |
None Value Range: [0, 4095] Data Types: CVI_U16 |
DetailDetectLumaStr |
None Value Range: [0, 4095] Data Types: CVI_U16 |
DetailSmoothStr |
detailssmoothstrength. the larger the value, smooththe stronger the intensity, forfalsedetails suppressstrengththe morelarge. Value Range: [0, 255] Data Types: CVI_U8 |
DetailWgtThr |
detailsreservedrangethreshold. the smaller the value, detailsreservedoperationuse rangethe morelarge. Value Range: [0, 255] Data Types: CVI_U8 |
DetailWgtMin |
edgedetailssmoothreservedallowofminimumgain. Value Range: [0, 256] Data Types: CVI_U16 |
DetailWgtMax |
edgedetailssmoothreservedallowofmaximumgain. Value Range: [0, 256] Data Types: CVI_U16 |
DetailWgtSlope |
detailsreservedstrength. the larger the value, detailsreservedthe moremultiple. Value Range: [0, 1024] Data Types: CVI_U16 |
EdgeWgtNp |
None Value Range: [0, 255] Data Types: CVI_U8 |
EdgeWgtThr |
detailsreservedrangethreshold. the smaller the value, detailsreservedoperationuse rangethe morelarge. Value Range: [0, 255] Data Types: CVI_U8 |
EdgeWgtMin |
edgedetailssmoothreservedallowofminimumgain. Value Range: [0, 256] Data Types: CVI_U16 |
EdgeWgtMax |
edgedetailssmoothreservedallowofmaximumgain. Value Range: [0, 256] Data Types: CVI_U16 |
EdgeWgtSlope |
detailsreservedstrength. the larger the value, detailsreservedthe moremultiple. Value Range: [0, 1024] Data Types: CVI_U16 |
DetailSmoothMapTh |
None Value Range: [0, 255] Data Types: CVI_U8 |
DetailSmoothMapMin |
None Value Range: [0, 256] Data Types: CVI_U16 |
DetailSmoothMapMax |
None Value Range: [0, 256] Data Types: CVI_U16 |
DetailSmoothMapSlope |
None Value Range: [0, 1024] Data Types: CVI_U16 |
LumaWgt |
None Value Range: [0, 255] Data Types: CVI_U8 |
SharpenGain |
forCFAoutput RGBFigureapplyadd sharpeningstrength, the larger the value, sharpeningthe morestrong, 32is 1x gain. Value Range: [0, 255] Data Types: CVI_U8 |
[Precautions]
None
[Related Data Types and Interfaces]
18.3.5. ISP_DEMOSAIC_DEMOIRE_AUTO_ATTR_S¶
[Description]
Automatic DefinitionDemosaicdemosaic attribute parameters
[Definition]
typedef struct _ISP_DEMOSAIC_DEMOIRE_AUTO_ATTR_S {
CVI_U8 AntiFalseColorStr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
CVI_U16 SatGainIn[2][ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 4095]*/
CVI_U16 SatGainOut[2][ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 4095]*/
CVI_U16 ProtectColorGainIn[2][ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 4095]*/
CVI_U16 ProtectColorGainOut[2][ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 4095]*/
CVI_U16 UserDefineProtectColor1[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 4095]*/
CVI_U16 UserDefineProtectColor2[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 4095]*/
CVI_U16 UserDefineProtectColor3[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 4095]*/
CVI_U16 EdgeGainIn[2][ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 4095]*/
CVI_U16 EdgeGainOut[2][ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 4095]*/
CVI_U16 DetailGainIn[2][ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 4095]*/
CVI_U16 DetailGaintOut[2][ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 4095]*/
CVI_U16 DetailDetectLumaStr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 4095]*/
CVI_U8 DetailSmoothStr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
CVI_U8 DetailWgtThr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
CVI_U16 DetailWgtMin[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 256]*/
CVI_U16 DetailWgtMax[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 256]*/
CVI_U16 DetailWgtSlope[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 1024]*/
CVI_U8 EdgeWgtNp[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
CVI_U8 EdgeWgtThr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
CVI_U16 EdgeWgtMin[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 256]*/
CVI_U16 EdgeWgtMax[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 256]*/
CVI_U16 EdgeWgtSlope[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 1024]*/
CVI_U8 DetailSmoothMapTh[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
CVI_U16 DetailSmoothMapMin[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 256]*/
CVI_U16 DetailSmoothMapMax[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 256]*/
CVI_U16 DetailSmoothMapSlope[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 1024]*/
CVI_U8 LumaWgt[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
CVI_U8 SharpenGain[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
} ISP_DEMOSAIC_DEMOIRE_AUTO_ATTR_S;
[Members]
Member Name |
Description |
|---|---|
AntiFalseColorStr |
None Value Range: [0, 255] Data Types: CVI_U8 |
SatGainIn |
None Value Range: [0, 4095] Data Types: CVI_U16 |
SatGainOut |
None Value Range: [0, 4095] Data Types: CVI_U16 |
ProtectColorGainIn |
None Value Range: [0, 4095] Data Types: CVI_U16 |
ProtectColorGainOut |
None Value Range: [0, 4095] Data Types: CVI_U16 |
UserDefineProtectColor1 |
None Value Range: [0, 4095] Data Types: CVI_U16 |
UserDefineProtectColor2 |
None Value Range: [0, 4095] Data Types: CVI_U16 |
UserDefineProtectColor3 |
None Value Range: [0, 4095] Data Types: CVI_U16 |
EdgeGainIn |
None Value Range: [0, 4095] Data Types: CVI_U16 |
EdgeGainOut |
None Value Range: [0, 4095] Data Types: CVI_U16 |
DetailGainIn |
None Value Range: [0, 4095] Data Types: CVI_U16 |
DetailGaintOut |
None Value Range: [0, 4095] Data Types: CVI_U16 |
DetailDetectLumaStr |
None Value Range: [0, 4095] Data Types: CVI_U16 |
DetailSmoothStr |
detailssmoothstrength. the larger the value, smooththe stronger the intensity, forfalsedetails suppressstrengththe morelarge. Value Range: [0, 255] Data Types: CVI_U8 |
DetailWgtThr |
detailsreservedrangethreshold. the smaller the value, detailsreservedoperationuse rangethe morelarge. Value Range: [0, 255] Data Types: CVI_U8 |
DetailWgtMin |
edgedetailssmoothreservedallowofminimumgain. Value Range: [0, 256] Data Types: CVI_U16 |
DetailWgtMax |
edgedetailssmoothreservedallowofmaximumgain. Value Range: [0, 256] Data Types: CVI_U16 |
DetailWgtSlope |
detailsreservedstrength. the larger the value, detailsreservedthe moremultiple. Value Range: [0, 1024] Data Types: CVI_U16 |
EdgeWgtNp |
None Value Range: [0, 255] Data Types: CVI_U8 |
EdgeWgtThr |
detailsreservedrangethreshold. the smaller the value, detailsreservedoperationuse rangethe morelarge. Value Range: [0, 255] Data Types: CVI_U8 |
EdgeWgtMin |
edgedetailssmoothreservedallowofminimumgain. Value Range: [0, 256] Data Types: CVI_U16 |
EdgeWgtMax |
edgedetailssmoothreservedallowofmaximumgain. Value Range: [0, 256] Data Types: CVI_U16 |
EdgeWgtSlope |
detailsreservedstrength. the larger the value, detailsreservedthe moremultiple. Value Range: [0, 1024] Data Types: CVI_U16 |
DetailSmoothMapTh |
None Value Range: [0, 255] Data Types: CVI_U8 |
DetailSmoothMapMin |
None Value Range: [0, 256] Data Types: CVI_U16 |
DetailSmoothMapMax |
None Value Range: [0, 256] Data Types: CVI_U16 |
DetailSmoothMapSlope |
None Value Range: [0, 1024] Data Types: CVI_U16 |
LumaWgt |
None Value Range: [0, 255] Data Types: CVI_U8 |
SharpenGain |
forCFAoutput RGBFigureapplyadd sharpeningstrength, the larger the value, sharpeningthe morestrong, 32is 1x gain. Value Range: [0, 255] Data Types: CVI_U8 |
[Precautions]
None
[Related Data Types and Interfaces]
18.3.6. ISP_DEMOSAIC_DEMOIRE_ATTR_S¶
[Description]
Define Demosaicdemosaic attribute parameters
[Definition]
typedef struct _ISP_DEMOSAIC_DEMOIRE_ATTR_S {
CVI_BOOL AntiFalseColorEnable; /*Rw; Range:[0, 1]*/
CVI_BOOL ProtectColorEnable; /*Rw; Range:[0, 1]*/
CVI_BOOL DetailDetectLumaEnable; /*Rw; Range:[0, 1]*/
CVI_BOOL DetailSmoothEnable; /*Rw; Range:[0, 1]*/
CVI_BOOL DetailMode; /*Rw; Range:[0, 1]*/
ISP_DEMOSAIC_DEMOIRE_MANUAL_ATTR_S stManual;
ISP_DEMOSAIC_DEMOIRE_AUTO_ATTR_S stAuto;
} ISP_DEMOSAIC_DEMOIRE_ATTR_S;
[Members]
Member Name |
Description |
|---|---|
AntiFalseColorEnable |
None Value Range: [0, 1] Data Types: CVI_BOOL |
ProtectColorEnable |
None Value Range: [0, 1] Data Types: CVI_BOOL |
DetailDetectLumaEnable |
None Value Range: [0, 1] Data Types: CVI_BOOL |
DetailSmoothEnable |
None Value Range: [0, 1] Data Types: CVI_BOOL |
DetailMode |
None Value Range: [0, 1] Data Types: CVI_BOOL |
stManual |
manual parameters |
stAuto |
automatic parameters |
[Precautions]
None
[Related Data Types and Interfaces]