aclmdlSetAIPPDtcPixelMean

Applicability

Product

Supported

Atlas 350 Accelerator Card

×

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Usage

Sets the mean value of each channel in the dynamic AIPP scenario.

Prototype

1
2
3
4
5
6
aclError aclmdlSetAIPPDtcPixelMean(aclmdlAIPP *aippParmsSet,
int16_t dtcPixelMeanChn0,
int16_t dtcPixelMeanChn1,
int16_t dtcPixelMeanChn2,
int16_t dtcPixelMeanChn3,
uint64_t batchIndex)

Parameters

Parameter

Input/Output

Description

aippParmsSet

Output

Pointer to the dynamic AIPP parameter object

Call aclmdlCreateAIPP in advance to create data of the aclmdlAIPP type.

dtcPixelMeanChn0

Input

Mean value of channel 0

Value range: [0, 255]

dtcPixelMeanChn1

Input

Mean value of channel 1

Value range: [0, 255]

dtcPixelMeanChn2

Input

Mean value of channel 2

Value range: [0, 255]

dtcPixelMeanChn3

Input

Mean value of channel 3

If there are only three channels, set this parameter to 0.

Value range: [0, 255]

batchIndex

Input

Index of batch for subtracting the mean value per channel

Value range: [0, batchSize)

batchSize is set when data of the aclmdlAIPP type is created by the aclmdlCreateAIPP call.

Returns

0 on success; else, failure. For details, see aclError.