---
title: img_rect_t
description: "定义MIPI的裁剪属性。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/aadgc/aclcppdevg_03_1201.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/aadgc/aclcppdevg_03_1201.html
indexId: 35f34fc2cf2b0a7dcb06ae3ad768976ce6708feaf937fbea911e1dca9888594d105
---
# img_rect_t

#### 说明

定义MIPI的裁剪属性。


#### 定义

```
typedef struct {
int x;
int y;
unsigned int width;
unsigned int height;
} img_rect_t;
```


#### 成员

| 成员名称 | 描述 |
| --- | --- |
| x | 裁剪起始位置x。 |
| y | 裁剪起始位置y。 SLV\-EC的裁剪Y坐标必须要大于等于Sensor输出有效行的行号。 |
| width | 裁剪宽度，单位：像素。 |
| height | 裁剪高度，单位：像素。 |
