---
title: ResizeReduction
description: "保护成员函数，用于对目标检测数据进行缩放。（该方法为内部调用方法，请用户不要使用。）"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/msadg/mxvisionug_0893.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/msadg/mxvisionug_0893.html
indexId: 2342e8c1ba93fdc02b9f48a12b2d019394cce081753512a02de0964e55b0eee6102
---
# ResizeReduction

#### 函数功能

保护成员函数，用于对目标检测数据进行缩放。（该方法为内部调用方法，请用户不要使用。）


#### 函数原型

```
void ResizeReduction(const ResizedImageInfo& resizedImageInfo, const int imgWidth, const int imgHeight,
std::vector<ObjectInfo>& objInfos);
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| resizedImageInfo | 输入 | 图片信息（包括原图和缩放后的宽高）。 |
| imgWidth | 输入 | 图片宽度。 |
| imgHeight | 输入 | 图片高度。 |
| objInfos | 输出 | 输出目标检测的坐标、类型、置信度等信息。 |
