20. PRESHARPEN

20.1. Functional Description

thismoduleuseinincreasestrongimagesharpness, positionin3DNRofbefore, mainlysharpeningimageintooldirectionproperty edgeanddetailstexture.

20.2. API Reference

20.2.1. CVI_ISP_SetPreSharpenAttr

[Description]

SetPreSharpen parameter attributes

[Syntax]

CVI_S32 CVI_ISP_SetPreSharpenAttr(VI_PIPE ViPipe, const ISP_PRESHARPEN_ATTR_S *pstPreSharpenAttr);

[Parameters]

Parameter Name

Description

Input/Output

ViPipe

VI_PIPE No.

Input

pstPreSharpenAttr

PreSharpen parameter attributes

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_PRESHARPEN_ATTR_S stAttr;
CVI_ISP_GetPreSharpenAttr(ViPipe, &stAttr);
stAttr.enOpType = OP_TYPE_AUTO;
CVI_ISP_SetPreSharpenAttr(ViPipe, &stAttr);

[Related Topics]

20.2.2. CVI_ISP_GetPreSharpenAttr

[Description]

GetPreSharpen parameter attributes

[Syntax]

CVI_S32 CVI_ISP_GetPreSharpenAttr(VI_PIPE ViPipe, ISP_PRESHARPEN_ATTR_S *pstPreSharpenAttr);

[Parameters]

Parameter Name

Description

Input/Output

ViPipe

VI_PIPE No.

Input

pstPreSharpenAttr

PreSharpen parameter attributes

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]

20.2.3. CVI_ISP_SetPreSharpenRefineAttr

[Description]

SetPreSharpen Refine parameter attributes

[Syntax]

CVI_S32 CVI_ISP_SetPreSharpenRefineAttr(VI_PIPE ViPipe, const ISP_PRESHARPEN_REFINE_ATTR_S *pstPreSharpenRefineAttr);

[Parameters]

Parameter Name

Description

Input/Output

ViPipe

VI_PIPE No.

Input

pstPreSharpenRefineAttr

PreSharpen Refine parameter attributes

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_PRESHARPEN_REFINE_ATTR_S stAttr;
CVI_ISP_GetPreSharpenRefineAttr(ViPipe, &stAttr);
stAttr.enOpType = OP_TYPE_AUTO;
CVI_ISP_SetPreSharpenRefineAttr(ViPipe, &stAttr);

[Related Topics]

20.2.4. CVI_ISP_GetPreSharpenRefineAttr

[Description]

GetPreSharpen Refine parameter attributes

[Syntax]

CVI_S32 CVI_ISP_GetPreSharpenRefineAttr(VI_PIPE ViPipe, ISP_PRESHARPEN_REFINE_ATTR_S *pstPreSharpenRefineAttr);

[Parameters]

Parameter Name

Description

Input/Output

ViPipe

VI_PIPE No.

Input

pstPreSharpenRefineAttr

PreSharpen Refine parameter attributes

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]

20.2.5. CVI_ISP_SetPreSharpenEdgeExtAttr

[Description]

SetPreSharpen Edgeparameter attributes

[Syntax]

CVI_S32 CVI_ISP_SetPreSharpenEdgeExtAttr(VI_PIPE ViPipe, const ISP_PRESHARPEN_EDGE_EXT_ATTR_S *pstPreSharpenEdgeExtAttr);

[Parameters]

Parameter Name

Description

Input/Output

ViPipe

VI_PIPE No.

Input

pstPreSharpenEdgeExtAttr

PreSharpen Edgeparameter attributes

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_PRESHARPEN_EDGE_EXT_ATTR_S stAttr;
CVI_ISP_GetPreSharpenEdgeExtAttr(ViPipe, &stAttr);
stAttr.enOpType = OP_TYPE_AUTO;
CVI_ISP_SetPreSharpenEdgeExtAttr(ViPipe, &stAttr);

[Related Topics]

20.2.6. CVI_ISP_GetPreSharpenEdgeExtAttr

[Description]

GetPreSharpen Edgeparameter attributes

[Syntax]

CVI_S32 CVI_ISP_GetPreSharpenEdgeExtAttr(VI_PIPE ViPipe, ISP_PRESHARPEN_EDGE_EXT_ATTR_S *pstPreSharpenEdgeExtAttr);

[Parameters]

Parameter Name

Description

Input/Output

ViPipe

VI_PIPE No.

Input

pstPreSharpenEdgeExtAttr

PreSharpen Edgeparameter attributes

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]

20.3. Data Types

20.3.1. ISP_PRESHARPEN_MANUAL_ATTR_S

[Description]

Manual DefinitionPreSharpen parameter attributes

[Definition]

typedef struct _ISP_PRESHARPEN_MANUAL_ATTR_S {
        CVI_U16 FlatThr; /*Rw; Range:[0, 1023]*/
        CVI_U16 EdgeThr; /*Rw; Range:[0, 1023]*/
        CVI_U16 FlatThrHLD; /*Rw; Range:[0, 1023]*/
        CVI_U16 EdgeThrHLD; /*Rw; Range:[0, 1023]*/
        CVI_U16 LumaThrHLD; /*Rw; Range:[0, 1023]*/
        CVI_U8 ThinStr; /*Rw; Range:[0, 255]*/
        CVI_U8 RobustStr; /*Rw; Range:[0, 255]*/
        CVI_U8 FlatStr; /*Rw; Range:[0, 255]*/
        CVI_U8 EdgeStr; /*Rw; Range:[0, 255]*/
        CVI_S16 StrFlatSlope; /*Rw; Range:[-32768, 32767]*/
        CVI_S16 StrEdgeSlope; /*Rw; Range:[-32768, 32767]*/
        CVI_U8 ConEngBlendWt; /*Rw; Range:[0, 15]*/
        CVI_U16 EdgeLowEndThr; /*Rw; Range:[0, 1023]*/
        CVI_U16 EdgeMidEndThr; /*Rw; Range:[0, 1023]*/
        CVI_U16 EdgeHighEndThr; /*Rw; Range:[0, 1023]*/
        CVI_U8 HueShtCtrl[33]; /*Rw; Range:[0, 63]*/
        CVI_U8 SatShtGainIn[4]; /*Rw; Range:[0, 255]*/
        CVI_U8 SatShtGainOut[4]; /*Rw; Range:[0, 128]*/
} ISP_PRESHARPEN_MANUAL_ATTR_S;

[Members]

Member Name

Description

FlatThr

flat regiondeterminesetthreshold.

Value Range: [0, 1023]

Data Types: CVI_U16

EdgeThr

edgeregiondeterminesetthreshold.

Value Range: [0, 1023]

Data Types: CVI_U16

FlatThrHLD

heightbright regiondomain flat regiondeterminesetthreshold.

Value Range: [0, 1023]

Data Types: CVI_U16

EdgeThrHLD

heightbright regiondomain edgeregiondeterminesetthreshold.

Value Range: [0, 1023]

Data Types: CVI_U16

LumaThrHLD

heightbright regiondeterminesetthreshold, brightness greater thanLumaThrHLD part, considerisisheightbright region.

Value Range: [0, 1023]

Data Types: CVI_U16

ThinStr

Thin filterstrengthAdjust. RegionStrEn = 1when, takes effect. the larger the value, the stronger the intensity; the smaller the value, strengththe moresmall.

Value Range: [0, 255]

Data Types: CVI_U8

RobustStr

Robust filterstrengthAdjust. RegionStrEn = 1when, takes effect. the larger the value, the stronger the intensity; the smaller the value, strengththe moresmall.

Value Range: [0, 255]

Data Types: CVI_U8

FlatStr

limitflat regionsharpeningstrengthrange. whenStrFlatSlope < 0when, determinesflat regionsharpeningstrengthminimum value; whenStrFlatSlope > 0when, determinesflat regionsharpeningstrengthmaximum value.

Value Range: [0, 255]

Data Types: CVI_U8

EdgeStr

limitedgeregionsharpeningstrengthrange. whenStrEdgeSlope > 0when, determinesedgeregionsharpeningstrengthmaximum value; whenStrFlatSlope < 0when, determinesedgeregionsharpeningstrengthminimum value.

Value Range: [0, 255]

Data Types: CVI_U8

StrFlatSlope

Controlflat regionsharpeningstrength. RegionStrEn = 1when, takes effect. the smaller the value, flat regionsharpeningthe moreweak.

Value Range: [-32768, 32767]

Data Types: CVI_S16

StrEdgeSlope

Controledgeregionsharpeningstrength. RegionStrEn = 1when, takes effect. the larger the value, edgeregionsharpeningthe morestrong.

Value Range: [-32768, 32767]

Data Types: CVI_S16

ConEngBlendWt

weighting between edge energy and contrast. 0: all energy; 8: all contrast

Value Range: [0, 15]

Data Types: CVI_U8

EdgeLowEndThr

edge intensity thres at low-end

Value Range: [0, 1023]

Data Types: CVI_U16

EdgeMidEndThr

edge intensity thres at mid-end

Value Range: [0, 1023]

Data Types: CVI_U16

EdgeHighEndThr

edge intensity thres at high-end

Value Range: [0, 1023]

Data Types: CVI_U16

HueShtCtrl

based on the specified colorperform edge enhancement

Value Range: [0, 63]

Data Types: CVI_U8

SatShtGainIn

based on the specified saturationperform edge enhancement, thisisInputnode, Inputsaturation

Value Range: [0, 255]

Data Types: CVI_U8

SatShtGainOut

based on the specified saturationperform edge enhancement, thisisoutputnode, outputcorrespondingsaturation edgestrength. (max = 128)

Value Range: [0, 128]

Data Types: CVI_U8

[Precautions]

None

[Related Data Types and Interfaces]

20.3.2. ISP_PRESHARPEN_AUTO_ATTR_S

[Description]

Automatic DefinitionPreSharpen parameter attributes

[Definition]

typedef struct _ISP_PRESHARPEN_AUTO_ATTR_S {
        CVI_U16 FlatThr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 1023]*/
        CVI_U16 EdgeThr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 1023]*/
        CVI_U16 FlatThrHLD[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 1023]*/
        CVI_U16 EdgeThrHLD[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 1023]*/
        CVI_U16 LumaThrHLD[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 1023]*/
        CVI_U8 ThinStr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U8 RobustStr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U8 FlatStr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U8 EdgeStr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_S16 StrFlatSlope[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[-32768, 32767]*/
        CVI_S16 StrEdgeSlope[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[-32768, 32767]*/
        CVI_U8 ConEngBlendWt[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 15]*/
        CVI_U16 EdgeLowEndThr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 1023]*/
        CVI_U16 EdgeMidEndThr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 1023]*/
        CVI_U16 EdgeHighEndThr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 1023]*/
        CVI_U8 HueShtCtrl[33][ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 63]*/
        CVI_U8 SatShtGainIn[4][ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U8 SatShtGainOut[4][ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 128]*/
} ISP_PRESHARPEN_AUTO_ATTR_S;

[Members]

Member Name

Description

FlatThr

flat regiondeterminesetthreshold.

Value Range: [0, 1023]

Data Types: CVI_U16

EdgeThr

edgeregiondeterminesetthreshold.

Value Range: [0, 1023]

Data Types: CVI_U16

FlatThrHLD

heightbright regiondomain flat regiondeterminesetthreshold.

Value Range: [0, 1023]

Data Types: CVI_U16

EdgeThrHLD

heightbright regiondomain edgeregiondeterminesetthreshold.

Value Range: [0, 1023]

Data Types: CVI_U16

LumaThrHLD

heightbright regiondeterminesetthreshold, brightness greater thanLumaThrHLD part, considerisisheightbright region.

Value Range: [0, 1023]

Data Types: CVI_U16

ThinStr

Thin filterstrengthAdjust. RegionStrEn = 1when, takes effect. the larger the value, the stronger the intensity; the smaller the value, strengththe moresmall.

Value Range: [0, 255]

Data Types: CVI_U8

RobustStr

Robust filterstrengthAdjust. RegionStrEn = 1when, takes effect. the larger the value, the stronger the intensity; the smaller the value, strengththe moresmall.

Value Range: [0, 255]

Data Types: CVI_U8

FlatStr

limitflat regionsharpeningstrengthrange. whenStrFlatSlope < 0when, determinesflat regionsharpeningstrengthminimum value; whenStrFlatSlope > 0when, determinesflat regionsharpeningstrengthmaximum value.

Value Range: [0, 255]

Data Types: CVI_U8

EdgeStr

limitedgeregionsharpeningstrengthrange. whenStrEdgeSlope > 0when, determinesedgeregionsharpeningstrengthmaximum value; whenStrFlatSlope < 0when, determinesedgeregionsharpeningstrengthminimum value.

Value Range: [0, 255]

Data Types: CVI_U8

StrFlatSlope

Controlflat regionsharpeningstrength. RegionStrEn = 1when, takes effect. the smaller the value, flat regionsharpeningthe moreweak.

Value Range: [-32768, 32767]

Data Types: CVI_S16

StrEdgeSlope

Controledgeregionsharpeningstrength. RegionStrEn = 1when, takes effect. the larger the value, edgeregionsharpeningthe morestrong.

Value Range: [-32768, 32767]

Data Types: CVI_S16

ConEngBlendWt

weighting between edge energy and contrast. 0: all energy; 8: all contrast

Value Range: [0, 15]

Data Types: CVI_U8

EdgeLowEndThr

edge intensity thres at low-end

Value Range: [0, 1023]

Data Types: CVI_U16

EdgeMidEndThr

edge intensity thres at mid-end

Value Range: [0, 1023]

Data Types: CVI_U16

EdgeHighEndThr

edge intensity thres at high-end

Value Range: [0, 1023]

Data Types: CVI_U16

HueShtCtrl

based on the specified colorperform edge enhancement

Value Range: [0, 63]

Data Types: CVI_U8

SatShtGainIn

based on the specified saturationperform edge enhancement, thisisInputnode, Inputsaturation

Value Range: [0, 255]

Data Types: CVI_U8

SatShtGainOut

based on the specified saturationperform edge enhancement, thisisoutputnode, outputcorrespondingsaturation edgestrength. (max = 128)

Value Range: [0, 128]

Data Types: CVI_U8

[Precautions]

None

[Related Data Types and Interfaces]

20.3.3. ISP_PRESHARPEN_ATTR_S

[Description]

Define PreSharpen parameter attributes

[Definition]

typedef struct _ISP_PRESHARPEN_ATTR_S {
        CVI_BOOL Enable; /*Rw; Range:[0, 1]*/
        ISP_OP_TYPE_E enOpType;
        CVI_U8 UpdateInterval; /*Rw; Range:[1, 255]*/
        CVI_U8 TuningMode; /*Rw; Range:[0, 15]*/
        CVI_BOOL GammaSelection; /*Rw; Range:[0, 1]*/
        CVI_BOOL ChnSelection; /*Rw; Range:[0, 1]*/
        CVI_BOOL ParamAutoEn; /*Rw; Range:[0, 1]*/
        CVI_BOOL SatShtCtrlEn; /*Rw; Range:[0, 1]*/
        CVI_BOOL EdgeOutFormat; /*Rw; Range:[0, 1]*/
        CVI_U8 ReduceByEvRatioThr; /*Rw; Range:[64, 255]*/
        CVI_U8 ReduceByEvRatioStr; /*Rw; Range:[0, 255]*/
        ISP_PRESHARPEN_MANUAL_ATTR_S stManual;
        ISP_PRESHARPEN_AUTO_ATTR_S stAuto;
} ISP_PRESHARPEN_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: [1, 255]

Data Types: CVI_U8

TuningMode

Adjustmode, outputcanvisualtransformauxiliaryinformation.

0and9~15: notoutputcanvisualtransformauxiliaryinformation.

1: Ultra HFfilteringresult.

2: HFfilteringresult.

3: Subtle HFfilteringresult.

4: MFfilteringresult.

5: HFfilteringresult.

6: Subtle HFfilteringresult.

Value Range: [0, 15]

Data Types: CVI_U8

GammaSelection

0: ori lum; 1: gamma lum

Value Range: [0, 1]

Data Types: CVI_BOOL

ChnSelection

Select use RGB to Y or G channel as the input. 0: G channel edge extraction; 1: Y channel edge extraction

Value Range: [0, 1]

Data Types: CVI_BOOL

ParamAutoEn

auto mode: auto determine thTexture, thEdge, thTexture_HLD, thEdge_HLD, thLum_HLD, th_overshoot, th_undershoot_lum, th_undershoot_eng

Value Range: [0, 1]

Data Types: CVI_BOOL

SatShtCtrlEn

bysaturationAdjustedgeincreasestrong Enable.

Value Range: [0, 1]

Data Types: CVI_BOOL

EdgeOutFormat

edge threshold format. 0: flag; 1, real 8bit

Value Range: [0, 1]

Data Types: CVI_BOOL

ReduceByEvRatioThr

To be completed

Value Range: [64, 255]

Data Types: CVI_U8

ReduceByEvRatioStr

To be completed

Value Range: [0, 255]

Data Types: CVI_U8

stManual

manual parameters

stAuto

automatic parameters

[Precautions]

None

[Related Data Types and Interfaces]

20.3.4. ISP_PRESHARPEN_REFINE_MANUAL_ATTR_S

[Description]

Manual DefinitionPreSharpen Refine parameter attributes

[Definition]

typedef struct _ISP_PRESHARPEN_REFINE_MANUAL_ATTR_S {
        CVI_U16 LumaLowThr; /*Rw; Range:[0, 1023]*/
        CVI_U16 LumaHighThr; /*Rw; Range:[0, 1023]*/
        CVI_U8 LumaLowStep; /*Rw; Range:[0, 7]*/
        CVI_U8 LumaHighStep; /*Rw; Range:[0, 7]*/
        CVI_U8 LumaLowLut[8]; /*Rw; Range:[0, 255]*/
        CVI_U8 LumaHighLut[8]; /*Rw; Range:[0, 255]*/
        CVI_U16 EdgeLowThr; /*Rw; Range:[0, 1023]*/
        CVI_U16 EdgeHighThr; /*Rw; Range:[0, 1023]*/
        CVI_U8 EdgeLowStep; /*Rw; Range:[0, 7]*/
        CVI_U8 EdgeHighStep; /*Rw; Range:[0, 7]*/
        CVI_U8 EdgeLowLut[8]; /*Rw; Range:[0, 255]*/
        CVI_U8 EdgeHighLut[8]; /*Rw; Range:[0, 255]*/
        CVI_U8 OvershootThr; /*Rw; Range:[0, 255]*/
        CVI_U16 OshootSlope; /*Rw; Range:[0, 32767]*/
        CVI_U16 OshootWgtHigh; /*Rw; Range:[0, 255]*/
        CVI_U8 UndershootThr; /*Rw; Range:[0, 255]*/
        CVI_U8 UshootSlope; /*Rw; Range:[0, 255]*/
        CVI_U8 UshootWgtHigh; /*Rw; Range:[0, 255]*/
        CVI_U8 UshootLumThrLow; /*Rw; Range:[0, 255]*/
        CVI_U8 UshootLumThrHigh; /*Rw; Range:[0, 255]*/
        CVI_U8 UshootLumClampWgt; /*Rw; Range:[0, 255]*/
        CVI_U8 UshootEngThrLow; /*Rw; Range:[0, 255]*/
        CVI_U8 UshootEngThrHigh; /*Rw; Range:[0, 255]*/
        CVI_U8 UshootEngClampWgt; /*Rw; Range:[0, 255]*/
        CVI_U8 UshootLumEngStr; /*Rw; Range:[0, 255]*/
        CVI_U8 UshootLumEngNorm; /*Rw; Range:[0, 255]*/
} ISP_PRESHARPEN_REFINE_MANUAL_ATTR_S;

[Members]

Member Name

Description

LumaLowThr

brightnessthreshold. brightnesssmallinLumLowThr part, sharpeningstrengthisLumLowLut[0].

Value Range: [0, 1023]

Data Types: CVI_U16

LumaHighThr

brightnessthreshold. brightness greater thanLumHighThr part, sharpeningstrengthaccording toLumHighLut[0]~LumHighLut[7]settings change gradually.

Value Range: [0, 1023]

Data Types: CVI_U16

LumaLowStep

Controlsharpnesswithbrightnesschangewhen, brightnesson step. brightness greater thanLumLowThrand less thanLumHighThr part, stepbyLumLowStepControl.

Value Range: [0, 7]

Data Types: CVI_U8

LumaHighStep

Controlsharpnesswithbrightnesschangewhen, brightnesson step. brightness greater thanLumHighThr part, stepbyLumHighStepControl.

Value Range: [0, 7]

Data Types: CVI_U8

LumaLowLut

Controlsharpnessstrength. brightness greater thanLumLowThrand less thanLumHighThr part, withbrightnessincrease, sharpnessstrengthaccording toLumLowLut[0]~LumLowLut[7]settings change gradually.

Value Range: [0, 255]

Data Types: CVI_U8

LumaHighLut

Controlsharpnessstrength. brightness greater thanLumHighThr part, sharpeningstrengthaccording toLumHighLut[0]~LumHighLut[7]settings change gradually.

Value Range: [0, 255]

Data Types: CVI_U8

EdgeLowThr

sharpeningamplitudethreshold. sharpeningamplitudesmallinEdgeLowThr part, sharpeningstrengthisEdgeLowLut[0].

Value Range: [0, 1023]

Data Types: CVI_U16

EdgeHighThr

sharpeningamplitudethreshold. sharpeningamplitudelargeinEdgeHighThr part, sharpeningstrengthaccording toEdgeHighLut[0]~EdgeHighLut[7]settings change gradually.

Value Range: [0, 1023]

Data Types: CVI_U16

EdgeLowStep

Controlsharpeningstrengthwithsharpeningamplitudechangewhen, sharpeningamplitudeon step. sharpeningamplitudelargeinEdgeLowThrand less thanEdgeHighThr part, stepbyEdgeLowStepControl.

Value Range: [0, 7]

Data Types: CVI_U8

EdgeHighStep

Controlsharpeningstrengthwithsharpeningamplitudechangewhen, sharpeningamplitudeon step. sharpeningamplitudelargeinEdgeHighThr part, stepbyEdgeHighStepControl.

Value Range: [0, 7]

Data Types: CVI_U8

EdgeLowLut

Controlsharpeningstrength. sharpeningamplitudelargeinEdgeLowThrand less thanEdgeHighThr part, withsharpeningamplitudeincrease, sharpnessstrengthaccording toEdgeLowLut[0]~EdgeLowLut[7]settings change gradually.

Value Range: [0, 255]

Data Types: CVI_U8

EdgeHighLut

Controlsharpeningstrength. sharpeningamplitudelargeinEdgeHighThr part, sharpeningstrengthaccording toEdgeHighLut[0]~EdgeHighLut[7]settings change gradually.

Value Range: [0, 255]

Data Types: CVI_U8

OvershootThr

brightnessthreshold. brightnesssmallinOvershootThr part, whiteedge strengthbyOshootWgtHighdetermines.

Value Range: [0, 255]

Data Types: CVI_U8

OshootSlope

determinesbrightness greater thanOvershootThrpart whiteedgestrength. the larger the value, asbrightnessincrease, whiteedgestrengthdecreaselowthe morefast.

Value Range: [0, 32767]

Data Types: CVI_U16

OshootWgtHigh

determinesbrightnesssmallinOvershootThrpart whiteedgestrength. the larger the value, whiteedgethe stronger the intensity.

Value Range: [0, 255]

Data Types: CVI_U16

UndershootThr

brightnessthreshold. brightness greater thanUndershootThr part, black border strengthbyUshootWgtHighdetermines.

Value Range: [0, 255]

Data Types: CVI_U8

UshootSlope

determinesbrightnesssmallinUndershootThrpart black-border strength. the larger the value, asbrightnessdecreaselow, black-border strengthdecreaselowthe morefast.

Value Range: [0, 255]

Data Types: CVI_U8

UshootWgtHigh

determinesbrightness greater thanUndershootThrpart black-border strength. the larger the value, black-border strengththe morelarge.

Value Range: [0, 255]

Data Types: CVI_U8

UshootLumThrLow

brightnessthreshold. brightnesssmallinUshootLumThrLow part, black bordercorresponding strengthis0.

Value Range: [0, 255]

Data Types: CVI_U8

UshootLumThrHigh

brightnessthreshold. brightness greater thanUshootLumThrHigh part, black bordercorresponding strengthbyUshootLumClampWgtdetermines.

Value Range: [0, 255]

Data Types: CVI_U8

UshootLumClampWgt

determinesbrightness greater thanUshootLumThrHighpart black-border strength. the larger the value, black-border strengththe morestrong.

Value Range: [0, 255]

Data Types: CVI_U8

UshootEngThrLow

featurevaluethreshold. featurevaluesmallinUshootEngThrLow part, black border strengthbyUshootEngClampWgtdetermines.

Value Range: [0, 255]

Data Types: CVI_U8

UshootEngThrHigh

featurevaluethreshold. featurevaluelargeinUshootEngThrHigh part, black border strengthbyUshootEngClampWgtdetermines.

Value Range: [0, 255]

Data Types: CVI_U8

UshootEngClampWgt

determinesfeaturevaluelargeinUshootEngThrHighpart black-border strength. the larger the value, black border strengthinthe morestrong.

Value Range: [0, 255]

Data Types: CVI_U8

UshootLumEngStr

determinesblack-border strengthbiasmoveamount placelargexnumber. the larger the value, placelargexnumberthe morelarge.

Value Range: [0, 255]

Data Types: CVI_U8

UshootLumEngNorm

determinesblack-border strengthbiasmoveamount reducesmallxnumber. the larger the value, reducesmallxnumberthe morelarge.

Value Range: [0, 255]

Data Types: CVI_U8

[Precautions]

None

[Related Data Types and Interfaces]

20.3.5. ISP_PRESHARPEN_REFINE_AUTO_ATTR_S

[Description]

Automatic DefinitionPreSharpen Refine parameter attributes

[Definition]

typedef struct _ISP_PRESHARPEN_REFINE_AUTO_ATTR_S {
        CVI_U16 LumaLowThr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 1023]*/
        CVI_U16 LumaHighThr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 1023]*/
        CVI_U8 LumaLowStep[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 7]*/
        CVI_U8 LumaHighStep[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 7]*/
        CVI_U8 LumaLowLut[8][ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U8 LumaHighLut[8][ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U16 EdgeLowThr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 1023]*/
        CVI_U16 EdgeHighThr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 1023]*/
        CVI_U8 EdgeLowStep[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 7]*/
        CVI_U8 EdgeHighStep[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 7]*/
        CVI_U8 EdgeLowLut[8][ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U8 EdgeHighLut[8][ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U8 OvershootThr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U16 OshootSlope[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 32767]*/
        CVI_U16 OshootWgtHigh[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U8 UndershootThr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U8 UshootSlope[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U8 UshootWgtHigh[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U8 UshootLumThrLow[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U8 UshootLumThrHigh[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U8 UshootLumClampWgt[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U8 UshootEngThrLow[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U8 UshootEngThrHigh[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U8 UshootEngClampWgt[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U8 UshootLumEngStr[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U8 UshootLumEngNorm[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
} ISP_PRESHARPEN_REFINE_AUTO_ATTR_S;

[Members]

Member Name

Description

LumaLowThr

brightnessthreshold. brightnesssmallinLumLowThr part, sharpeningstrengthisLumLowLut[0].

Value Range: [0, 1023]

Data Types: CVI_U16

LumaHighThr

brightnessthreshold. brightness greater thanLumHighThr part, sharpeningstrengthaccording toLumHighLut[0]~LumHighLut[7]settings change gradually.

Value Range: [0, 1023]

Data Types: CVI_U16

LumaLowStep

Controlsharpnesswithbrightnesschangewhen, brightnesson step. brightness greater thanLumLowThrand less thanLumHighThr part, stepbyLumLowStepControl.

Value Range: [0, 7]

Data Types: CVI_U8

LumaHighStep

Controlsharpnesswithbrightnesschangewhen, brightnesson step. brightness greater thanLumHighThr part, stepbyLumHighStepControl.

Value Range: [0, 7]

Data Types: CVI_U8

LumaLowLut

Controlsharpnessstrength. brightness greater thanLumLowThrand less thanLumHighThr part, withbrightnessincrease, sharpnessstrengthaccording toLumLowLut[0]~LumLowLut[7]settings change gradually.

Value Range: [0, 255]

Data Types: CVI_U8

LumaHighLut

Controlsharpnessstrength. brightness greater thanLumHighThr part, sharpeningstrengthaccording toLumHighLut[0]~LumHighLut[7]settings change gradually.

Value Range: [0, 255]

Data Types: CVI_U8

EdgeLowThr

sharpeningamplitudethreshold. sharpeningamplitudesmallinEdgeLowThr part, sharpeningstrengthisEdgeLowLut[0].

Value Range: [0, 1023]

Data Types: CVI_U16

EdgeHighThr

sharpeningamplitudethreshold. sharpeningamplitudelargeinEdgeHighThr part, sharpeningstrengthaccording toEdgeHighLut[0]~EdgeHighLut[7]settings change gradually.

Value Range: [0, 1023]

Data Types: CVI_U16

EdgeLowStep

Controlsharpeningstrengthwithsharpeningamplitudechangewhen, sharpeningamplitudeon step. sharpeningamplitudelargeinEdgeLowThrand less thanEdgeHighThr part, stepbyEdgeLowStepControl.

Value Range: [0, 7]

Data Types: CVI_U8

EdgeHighStep

Controlsharpeningstrengthwithsharpeningamplitudechangewhen, sharpeningamplitudeon step. sharpeningamplitudelargeinEdgeHighThr part, stepbyEdgeHighStepControl.

Value Range: [0, 7]

Data Types: CVI_U8

EdgeLowLut

Controlsharpeningstrength. sharpeningamplitudelargeinEdgeLowThrand less thanEdgeHighThr part, withsharpeningamplitudeincrease, sharpnessstrengthaccording toEdgeLowLut[0]~EdgeLowLut[7]settings change gradually.

Value Range: [0, 255]

Data Types: CVI_U8

EdgeHighLut

Controlsharpeningstrength. sharpeningamplitudelargeinEdgeHighThr part, sharpeningstrengthaccording toEdgeHighLut[0]~EdgeHighLut[7]settings change gradually.

Value Range: [0, 255]

Data Types: CVI_U8

OvershootThr

brightnessthreshold. brightnesssmallinOvershootThr part, whiteedge strengthbyOshootWgtHighdetermines.

Value Range: [0, 255]

Data Types: CVI_U8

OshootSlope

determinesbrightness greater thanOvershootThrpart whiteedgestrength. the larger the value, asbrightnessincrease, whiteedgestrengthdecreaselowthe morefast.

Value Range: [0, 32767]

Data Types: CVI_U16

OshootWgtHigh

determinesbrightnesssmallinOvershootThrpart whiteedgestrength. the larger the value, whiteedgethe stronger the intensity.

Value Range: [0, 255]

Data Types: CVI_U16

UndershootThr

brightnessthreshold. brightness greater thanUndershootThr part, black border strengthbyUshootWgtHighdetermines.

Value Range: [0, 255]

Data Types: CVI_U8

UshootSlope

determinesbrightnesssmallinUndershootThrpart black-border strength. the larger the value, asbrightnessdecreaselow, black-border strengthdecreaselowthe morefast.

Value Range: [0, 255]

Data Types: CVI_U8

UshootWgtHigh

determinesbrightness greater thanUndershootThrpart black-border strength. the larger the value, black-border strengththe morelarge.

Value Range: [0, 255]

Data Types: CVI_U8

UshootLumThrLow

brightnessthreshold. brightnesssmallinUshootLumThrLow part, black bordercorresponding strengthis0.

Value Range: [0, 255]

Data Types: CVI_U8

UshootLumThrHigh

brightnessthreshold. brightness greater thanUshootLumThrHigh part, black bordercorresponding strengthbyUshootLumClampWgtdetermines.

Value Range: [0, 255]

Data Types: CVI_U8

UshootLumClampWgt

determinesbrightness greater thanUshootLumThrHighpart black-border strength. the larger the value, black-border strengththe morestrong.

Value Range: [0, 255]

Data Types: CVI_U8

UshootEngThrLow

featurevaluethreshold. featurevaluesmallinUshootEngThrLow part, black border strengthbyUshootEngClampWgtdetermines.

Value Range: [0, 255]

Data Types: CVI_U8

UshootEngThrHigh

featurevaluethreshold. featurevaluelargeinUshootEngThrHigh part, black border strengthbyUshootEngClampWgtdetermines.

Value Range: [0, 255]

Data Types: CVI_U8

UshootEngClampWgt

determinesfeaturevaluelargeinUshootEngThrHighpart black-border strength. the larger the value, black border strengthinthe morestrong.

Value Range: [0, 255]

Data Types: CVI_U8

UshootLumEngStr

determinesblack-border strengthbiasmoveamount placelargexnumber. the larger the value, placelargexnumberthe morelarge.

Value Range: [0, 255]

Data Types: CVI_U8

UshootLumEngNorm

determinesblack-border strengthbiasmoveamount reducesmallxnumber. the larger the value, reducesmallxnumberthe morelarge.

Value Range: [0, 255]

Data Types: CVI_U8

[Precautions]

None

[Related Data Types and Interfaces]

20.3.6. ISP_PRESHARPEN_REFINE_ATTR_S

[Description]

Define PreSharpen Refine parameter attributes

[Definition]

typedef struct _ISP_PRESHARPEN_REFINE_ATTR_S {
        CVI_BOOL OverUnderShootEn; /*Rw; Range:[0, 1]*/
        ISP_REFINE_TYPE_E RefineEdgeType;
        ISP_PRESHARPEN_REFINE_MANUAL_ATTR_S stManual;
        ISP_PRESHARPEN_REFINE_AUTO_ATTR_S stAuto;
} ISP_PRESHARPEN_REFINE_ATTR_S;

[Members]

Member Name

Description

OverUnderShootEn

OverShoot, UnderShootAdjust Enable.

Value Range: [0, 1]

Data Types: CVI_BOOL

RefineEdgeType

Refine type

Data Types: ISP_REFINE_TYPE_E

stManual

manual parameters

stAuto

automatic parameters

[Precautions]

None

[Related Data Types and Interfaces]

20.3.7. ISP_PRESHARPEN_EDGE_EXT_MANUAL_ATTR_S

[Description]

Manual DefinitionPreSharpen Edgeparameter attributes

[Definition]

typedef struct _ISP_PRESHARPEN_EDGE_EXT_MANUAL_ATTR_S {
        CVI_U16 E5aEnhance; /*Rw; Range:[0, 1023]*/
        CVI_U16 E5bEnhance; /*Rw; Range:[0, 1023]*/
        CVI_U16 E5cEnhance; /*Rw; Range:[0, 1023]*/
        CVI_U16 E7Enhance; /*Rw; Range:[0, 1023]*/
        CVI_U8 BlendThrLow; /*Rw; Range:[0, 255]*/
        CVI_U8 BlendThrHigh; /*Rw; Range:[0, 255]*/
        CVI_U8 BlendWgtLow; /*Rw; Range:[0, 255]*/
        CVI_U8 BlendWgtHigh; /*Rw; Range:[0, 255]*/
        CVI_U8 ThinWgtFlat; /*Rw; Range:[0, 16]*/
        CVI_U8 ThinWgtEdge; /*Rw; Range:[0, 16]*/
        CVI_U8 ThinWgtUHF_HF; /*Rw; Range:[0, 8]*/
        CVI_U8 RobustWgtHF_SHF; /*Rw; Range:[0, 8]*/
        CVI_U8 ThinWgtAgainstSHF; /*Rw; Range:[0, 8]*/
        CVI_U8 RobustWgtAgainstMF; /*Rw; Range:[0, 8]*/
        CVI_U8 ThinWgtFlatHLD; /*Rw; Range:[0, 16]*/
        CVI_U8 ThinWgtEdgeHLD; /*Rw; Range:[0, 16]*/
        CVI_U8 ThinWgtUHF_HF_HLD; /*Rw; Range:[0, 8]*/
        CVI_U8 RobustWgtHF_SHF_HLD; /*Rw; Range:[0, 8]*/
        CVI_U8 ThinWgtAgainstSHF_HLD; /*Rw; Range:[0, 8]*/
        CVI_U8 RobustWgtAgainstMF_HLD; /*Rw; Range:[0, 8]*/
} ISP_PRESHARPEN_EDGE_EXT_MANUAL_ATTR_S;

[Members]

Member Name

Description

E5aEnhance

the enhanced item of the 5x5a edge kernel, 16=1x

Value Range: [0, 1023]

Data Types: CVI_U16

E5bEnhance

the enhanced item of the 5x5b edge kernel, 16=1x

Value Range: [0, 1023]

Data Types: CVI_U16

E5cEnhance

the enhanced item of the 5x5c edge kernel, 16=1x

Value Range: [0, 1023]

Data Types: CVI_U16

E7Enhance

the enhanced item of the 7x7 edge kernel, 16=1x

Value Range: [0, 1023]

Data Types: CVI_U16

BlendThrLow

throughGamma filteringresultandnotthroughGamma filteringresult, according tobrightnessselectdifferent groupcombineratioexample. dark regiondividepartthreshold, brightnessinBlendThrLowusinginside part, BlendingWeightingReferenceBlendWgtLow.

Value Range: [0, 255]

Data Types: CVI_U8

BlendThrHigh

bright regiondividepartthreshold, brightness greater thanBlendThrHigh part, BlendingWeightingReferenceBlendWgtHigh.

Value Range: [0, 255]

Data Types: CVI_U8

BlendWgtLow

dark regionReference BlendingWeighting.

Value Range: [0, 255]

Data Types: CVI_U8

BlendWgtHigh

bright regionReference BlendingWeighting.

Value Range: [0, 255]

Data Types: CVI_U8

ThinWgtFlat

Controlflat regionThin filterandRobust filterfusion ratio. the smaller the value, the morebiastoRobust filter, that isflat region filteringresultthe morebiastoRobust filterresult.

Value Range: [0, 16]

Data Types: CVI_U8

ThinWgtEdge

ControledgeregionThin filterandRobust filterfusion ratio. the larger the value, the morebiastoThin filter, that isedgeregion filteringresultthe morebiastoThin filterresult.

Value Range: [0, 16]

Data Types: CVI_U8

ThinWgtUHF_HF

Thin filterfrequency firstfusion passAdjust. the larger the value, the morebiastoUltra HF; the smaller the value, the morebiastoHF.

Value Range: [0, 8]

Data Types: CVI_U8

RobustWgtHF_SHF

Robust filterfrequency firstfusion passAdjust. the larger the value, the morebiastoHF; the smaller the value, the morebiastoSubtle HF.

Value Range: [0, 8]

Data Types: CVI_U8

ThinWgtAgainstSHF

Thin filterfrequency secondfusion passAdjust. the larger the value, more weighted toward the first fusion adjustment result; the smaller the value, the morebiastoSubtle HF.

Value Range: [0, 8]

Data Types: CVI_U8

RobustWgtAgainstMF

Robust filterfrequency secondfusion passAdjust. the larger the value, more weighted toward the first fusion adjustment result; the smaller the value, the morebiastoMF.

Value Range: [0, 8]

Data Types: CVI_U8

ThinWgtFlatHLD

Controlheightbright regiondomainflat regionThin filterandRobust filterfusion ratio. the smaller the value, the morebiastoRobust filter, that isflat region filteringresultthe morebiastoRobust filterresult.

Value Range: [0, 16]

Data Types: CVI_U8

ThinWgtEdgeHLD

Controlheightbright regiondomainedgeregionThin filterandRobust filterfusion ratio. the larger the value, the morebiastoThin filter, that isedgeregion filteringresultthe morebiastoThin filterresult.

Value Range: [0, 16]

Data Types: CVI_U8

ThinWgtUHF_HF_HLD

highlight texture regionThin filterfrequency firstfusion passAdjust. the larger the value, the morebiastoUltra HF; the smaller the value, the morebiastoHF.

Value Range: [0, 8]

Data Types: CVI_U8

RobustWgtHF_SHF_HLD

highlight texture regionRobust filterfrequency firstfusion passAdjust. the larger the value, the morebiastoHF; the smaller the value, the morebiastoSubtle HF.

Value Range: [0, 8]

Data Types: CVI_U8

ThinWgtAgainstSHF_HLD

highlight texture regionThin filterfrequency secondfusion passAdjust. the larger the value, more weighted toward the first fusion adjustment result; the smaller the value, the morebiastoSubtle HF.

Value Range: [0, 8]

Data Types: CVI_U8

RobustWgtAgainstMF_HLD

highlight texture regionRobust filterfrequency secondfusion passAdjust. the larger the value, more weighted toward the first fusion adjustment result; the smaller the value, the morebiastoMF.

Value Range: [0, 8]

Data Types: CVI_U8

[Precautions]

None

[Related Data Types and Interfaces]

20.3.8. ISP_PRESHARPEN_EDGE_EXT_AUTO_ATTR_S

[Description]

Automatic DefinitionPreSharpen Edgeparameter attributes

[Definition]

typedef struct _ISP_PRESHARPEN_EDGE_EXT_AUTO_ATTR_S {
        CVI_U16 E5aEnhance[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 1023]*/
        CVI_U16 E5bEnhance[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 1023]*/
        CVI_U16 E5cEnhance[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 1023]*/
        CVI_U16 E7Enhance[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 1023]*/
        CVI_U8 BlendThrLow[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U8 BlendThrHigh[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U8 BlendWgtLow[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U8 BlendWgtHigh[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 255]*/
        CVI_U8 ThinWgtFlat[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 16]*/
        CVI_U8 ThinWgtEdge[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 16]*/
        CVI_U8 ThinWgtUHF_HF[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 8]*/
        CVI_U8 RobustWgtHF_SHF[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 8]*/
        CVI_U8 ThinWgtAgainstSHF[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 8]*/
        CVI_U8 RobustWgtAgainstMF[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 8]*/
        CVI_U8 ThinWgtFlatHLD[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 16]*/
        CVI_U8 ThinWgtEdgeHLD[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 16]*/
        CVI_U8 ThinWgtUHF_HF_HLD[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 8]*/
        CVI_U8 RobustWgtHF_SHF_HLD[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 8]*/
        CVI_U8 ThinWgtAgainstSHF_HLD[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 8]*/
        CVI_U8 RobustWgtAgainstMF_HLD[ISP_AUTO_ISO_STRENGTH_NUM]; /*Rw; Range:[0, 8]*/
} ISP_PRESHARPEN_EDGE_EXT_AUTO_ATTR_S;

[Members]

Member Name

Description

E5aEnhance

the enhanced item of the 5x5a edge kernel, 16=1x

Value Range: [0, 1023]

Data Types: CVI_U16

E5bEnhance

the enhanced item of the 5x5b edge kernel, 16=1x

Value Range: [0, 1023]

Data Types: CVI_U16

E5cEnhance

the enhanced item of the 5x5c edge kernel, 16=1x

Value Range: [0, 1023]

Data Types: CVI_U16

E7Enhance

the enhanced item of the 7x7 edge kernel, 16=1x

Value Range: [0, 1023]

Data Types: CVI_U16

BlendThrLow

throughGamma filteringresultandnotthroughGamma filteringresult, according tobrightnessselectdifferent groupcombineratioexample. dark regiondividepartthreshold, brightnessinBlendThrLowusinginside part, BlendingWeightingReferenceBlendWgtLow.

Value Range: [0, 255]

Data Types: CVI_U8

BlendThrHigh

bright regiondividepartthreshold, brightness greater thanBlendThrHigh part, BlendingWeightingReferenceBlendWgtHigh.

Value Range: [0, 255]

Data Types: CVI_U8

BlendWgtLow

dark regionReference BlendingWeighting.

Value Range: [0, 255]

Data Types: CVI_U8

BlendWgtHigh

bright regionReference BlendingWeighting.

Value Range: [0, 255]

Data Types: CVI_U8

ThinWgtFlat

Controlflat regionThin filterandRobust filterfusion ratio. the smaller the value, the morebiastoRobust filter, that isflat region filteringresultthe morebiastoRobust filterresult.

Value Range: [0, 16]

Data Types: CVI_U8

ThinWgtEdge

ControledgeregionThin filterandRobust filterfusion ratio. the larger the value, the morebiastoThin filter, that isedgeregion filteringresultthe morebiastoThin filterresult.

Value Range: [0, 16]

Data Types: CVI_U8

ThinWgtUHF_HF

Thin filterfrequency firstfusion passAdjust. the larger the value, the morebiastoUltra HF; the smaller the value, the morebiastoHF.

Value Range: [0, 8]

Data Types: CVI_U8

RobustWgtHF_SHF

Robust filterfrequency firstfusion passAdjust. the larger the value, the morebiastoHF; the smaller the value, the morebiastoSubtle HF.

Value Range: [0, 8]

Data Types: CVI_U8

ThinWgtAgainstSHF

Thin filterfrequency secondfusion passAdjust. the larger the value, more weighted toward the first fusion adjustment result; the smaller the value, the morebiastoSubtle HF.

Value Range: [0, 8]

Data Types: CVI_U8

RobustWgtAgainstMF

Robust filterfrequency secondfusion passAdjust. the larger the value, more weighted toward the first fusion adjustment result; the smaller the value, the morebiastoMF.

Value Range: [0, 8]

Data Types: CVI_U8

ThinWgtFlatHLD

Controlheightbright regiondomainflat regionThin filterandRobust filterfusion ratio. the smaller the value, the morebiastoRobust filter, that isflat region filteringresultthe morebiastoRobust filterresult.

Value Range: [0, 16]

Data Types: CVI_U8

ThinWgtEdgeHLD

Controlheightbright regiondomainedgeregionThin filterandRobust filterfusion ratio. the larger the value, the morebiastoThin filter, that isedgeregion filteringresultthe morebiastoThin filterresult.

Value Range: [0, 16]

Data Types: CVI_U8

ThinWgtUHF_HF_HLD

highlight texture regionThin filterfrequency firstfusion passAdjust. the larger the value, the morebiastoUltra HF; the smaller the value, the morebiastoHF.

Value Range: [0, 8]

Data Types: CVI_U8

RobustWgtHF_SHF_HLD

highlight texture regionRobust filterfrequency firstfusion passAdjust. the larger the value, the morebiastoHF; the smaller the value, the morebiastoSubtle HF.

Value Range: [0, 8]

Data Types: CVI_U8

ThinWgtAgainstSHF_HLD

highlight texture regionThin filterfrequency secondfusion passAdjust. the larger the value, more weighted toward the first fusion adjustment result; the smaller the value, the morebiastoSubtle HF.

Value Range: [0, 8]

Data Types: CVI_U8

RobustWgtAgainstMF_HLD

highlight texture regionRobust filterfrequency secondfusion passAdjust. the larger the value, more weighted toward the first fusion adjustment result; the smaller the value, the morebiastoMF.

Value Range: [0, 8]

Data Types: CVI_U8

[Precautions]

None

[Related Data Types and Interfaces]

20.3.9. ISP_PRESHARPEN_EDGE_EXT_ATTR_S

[Description]

Define PreSharpen Edgeparameter attributes

[Definition]

typedef struct _ISP_PRESHARPEN_EDGE_EXT_ATTR_S {
        CVI_BOOL RegionStrEn; /*Rw; Range:[0, 1]*/
        ISP_PRESHARPEN_EDGE_EXT_MANUAL_ATTR_S stManual;
        ISP_PRESHARPEN_EDGE_EXT_AUTO_ATTR_S stAuto;
} ISP_PRESHARPEN_EDGE_EXT_ATTR_S;

[Members]

Member Name

Description

RegionStrEn

according todifferentregiontype (flat region, edgeregion, textureregion) Adjustsharpeningstrengthfunction enable.

Value Range: [0, 1]

Data Types: CVI_BOOL

stManual

manual parameters

stAuto

automatic parameters

[Precautions]

None

[Related Data Types and Interfaces]