C函数原型 |
aclError aclmdlSetAIPPDtcPixelMean(aclmdlAIPP *aippParmsSet, int16_t dtcPixelMeanChn0, int16_t dtcPixelMeanChn1, int16_t dtcPixelMeanChn2, int16_t dtcPixelMeanChn3, uint64_t batchIndex) |
---|---|
Python函数 |
ret = acl.mdl.set_aipp_dtc_pixel_mean(aipp_parms_set, dtc_pixel_mean_chn0, dtc_pixel_mean_chn1, dtc_pixel_mean_chn2, dtc_pixel_mean_chn3, batch_index) |
函数功能 |
动态AIPP场景下,设置通道的均值,同步接口。 |
输入说明 |
aipp_parms_set:int,动态AIPP参数对象的指针。
dtc_pixel_mean_chn0:int,通道0的均值。
dtc_pixel_mean_chn1:int,通道1的均值。
dtc_pixel_mean_chn2:int,通道2的均值。
dtc_pixel_mean_chn3:int,通道3的均值。如果只有3个通道,则该参数传默认值0。
batch_index:int,指定对第几个Batch上的图片设置通道均值,默认为0。
|
返回值说明 |
ret:int,错误码
|
约束说明 |
无 |
注意事项 |
无 |