---
title: CropRoiConfig
description: "定义抠图的范围。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/msadg/mxvisionug_0167.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/msadg/mxvisionug_0167.html
indexId: 77742ca5ab755442230d8d3bd410a637c5c89686bcb0b79541c39d0960965378102
---
# CropRoiConfig

#### 功能

定义抠图的范围。


#### 结构定义

```
struct CropRoiConfig {
uint32_t x0;
uint32_t x1;
uint32_t y1;
uint32_t y0;
};
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| x0 | 输入 | 左上角横坐标。 |
| x1 | 输入 | 右下角横坐标。 |
| y1 | 输入 | 右下角纵坐标。 |
| y0 | 输入 | 左上角纵坐标。 |
