Function: set_aipp_dtc_pixel_min
Applicable Products
Product |
Supported (√/x) |
|---|---|
x |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Sets the minimum value of each channel in the dynamic AIPP scenario.
Prototype
- C Prototype
1aclError aclmdlSetAIPPDtcPixelMin(aclmdlAIPP *aippParmsSet, float dtcPixelMinChn0, float dtcPixelMinChn1, float dtcPixelMinChn2, float dtcPixelMinChn3, uint64_t batchIndex)
- Python Function
1ret = acl.mdl.set_aipp_dtc_pixel_min(aipp_parms_set, dtc_pixel_min_chn0, dtc_pixel_min_chn1, dtc_pixel_min_chn2, dtc_pixel_min_chn3, batch_index)
Parameter Description
Parameter |
Description |
|---|---|
aipp_parms_set |
Int, pointer address of the dynamic AIPP configuration object. The aclmdlAIPP data must be created by the acl.mdl.create_aipp call in advance. |
dtc_pixel_mean_chn0 |
Int, min value of channel 0. The value range is [0, 255]. |
dtc_pixel_mean_chn1 |
Int, min value of channel 1. The value range is [0, 255]. |
dtc_pixel_mean_chn2 |
Int, min value of channel 2. The value range is [0, 255]. |
dtc_pixel_mean_chn3 |
Int, min value of channel 3. If there are only three channels, the default value 0 is used. Value range: [0, 255] |
batch_index |
Int, index of the batch for setting the min value of each image channel. The default value is 0. The value range is [0, batch_size). batch_size is set when acl.mdl.create_aipp is called to create data of the aclmdlAIPP type. |
Return Value Description
Return Value |
Description |
|---|---|
ret |
Int, error code.
|