---
title: 函数：set_aipp_dtc_pixel_min
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendgraphapi/aclpythondevg_01_0181.html
sourcePath: /source/zh/canncommercial/900/API/ascendgraphapi/aclpythondevg_01_0181.html
indexId: 91b3c7681f75b22c305d6cd50de4a788595fb2b8e0bde888f47c2073c1a8d0e475
---
# 函数：set_aipp_dtc_pixel_min

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | x |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 训练系列产品 | √ |
| Atlas 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | √ |


#### 功能说明

动态AIPP场景下，设置通道的最小值。


#### 函数原型

- C函数原型
  1 aclError aclmdlSetAIPPDtcPixelMin(aclmdlAIPP *aippParmsSet, float dtcPixelMinChn0, float dtcPixelMinChn1, float dtcPixelMinChn2, float dtcPixelMinChn3, uint64_t batchIndex)

- python函数
  1 ret = acl.mdl.set_aipp_dtc_pixel_min(aipp_parms_set, dtc_pixel_mean_chn0, dtc_pixel_mean_chn1, dtc_pixel_mean_chn2, dtc_pixel_mean_chn3, batch_index)


#### 参数说明

| 参数名 | 说明 |
| --- | --- |
| aipp\_parms\_set | int，动态AIPP参数对象的指针地址，需提前调用acl.mdl.create\_aipp接口创建aclmdlAIPP类型的数据。 |
| dtc\_pixel\_mean\_chn0 | int，通道0的均值，取值范围：[0, 255]。 |
| dtc\_pixel\_mean\_chn1 | int，通道1的均值，取值范围：[0, 255]。 |
| dtc\_pixel\_mean\_chn2 | int，通道2的均值，取值范围：[0, 255]。 |
| dtc\_pixel\_mean\_chn3 | int，通道3的均值，如果只有3个通道，则该参数传默认值0。取值范围：[0, 255]。 |
| batch\_index | int，指定对第几个Batch上的图片设置通道均值，默认为0，取值范围：[0, batch\_size)，batch\_size是在调用acl.mdl.create\_aipp接口创建aclmdlAIPP类型的数据时设置。 |


#### 返回值说明

| 返回值 | 说明 |
| --- | --- |
| ret | int，错误码 返回0表示成功。 返回其它值(https://www.hiascend.comdocument/detail/zh/canncommercial/900/API/runtimeapi/aclpythondevg\_01\_0911.html)表示失败。 |
