---
title: 函数：set_aipp_pixel_var_reci
description: "| C函数原型 | aclError aclmdlSetAIPPPixelVarReci(aclmdlAIPP \*aippParmsSet, float dtcPixelVarReciChn0, float dtcPixelVarReciChn1, float dtcPixelVarReciChn2, float dtcPixelVarReciChn3, uint64\_t batchIndex) |"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/aadgp/aclpythondevg_01_0170.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/aadgp/aclpythondevg_01_0170.html
indexId: efe9bb63c53c40ef7a8f437e70b544c23084562fafbc7e0c639cbaac54e9318e108
---
# 函数：set_aipp_pixel_var_reci

| C函数原型 | aclError aclmdlSetAIPPPixelVarReci(aclmdlAIPP \*aippParmsSet, float dtcPixelVarReciChn0, float dtcPixelVarReciChn1, float dtcPixelVarReciChn2, float dtcPixelVarReciChn3, uint64\_t batchIndex) |
| --- | --- |
| Python函数 | ret = acl.mdl.set\_aipp\_pixel\_var\_reci(aipp\_parms\_set, dtc\_pixel\_var\_reci\_chn0, dtc\_pixel\_var\_reci\_chn1, dtc\_pixel\_var\_reci\_chn2, dtc\_pixel\_var\_reci\_chn3, batch\_index) |
| 函数功能 | 动态AIPP场景下，设置通道的方差，同步接口。 |
| 输入说明 | aipp\_parms\_set：int，动态AIPP参数对象，需提前调用acl.mdl.create\_aipp接口创建aclmdlAIPP类型的数据。 dtc\_pixel\_var\_reci\_chn0：int，通道0的方差，默认值为1.0，取值范围：[\-65504, 65504]。 dtc\_pixel\_var\_reci\_chn1：int，通道1的方差，默认值为1.0，取值范围：[\-65504, 65504]。 dtc\_pixel\_var\_reci\_chn2：int，通道2的方差，默认值为1.0，取值范围：[\-65504, 65504]。 dtc\_pixel\_var\_reci\_chn3：int，通道3的方差，如果只有3个通道，则该参数传默认值1.0，取值范围：[\-65504, 65504]。 batch\_index：int，指定对第几个Batch上的图片设置通道的方差，取值范围：[0, batch\_size)，batch\_size是在调用acl.mdl.create\_aipp接口创建aclmdlAIPP类型的数据时设置。 |
| 返回值说明 | ret：int，错误码 返回0表示成功。 返回其它值表示失败。 |
| 约束说明 | 无 |
