---
title: hi_isp_ae_crop
description: "对AE模块输入图像进行裁剪。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/ispdevug/ispdevapi_0471.html
sourcePath: /source/zh/canncommercial/900/others/ispdevug/ispdevapi_0471.html
indexId: 1482afbde7ce68d4856ff7ec66c048415e57113bf51c95ef5bac4061feb1373165
---
# hi_isp_ae_crop

#### 说明

对AE模块输入图像进行裁剪。


#### 定义

```
typedef struct {
hi_bool
enable;
hi_u16
x;
hi_u16
y;
hi_u16
w;
hi_u16
h;
} hi_isp_ae_crop;
```


#### 成员

| 成员名称 | 描述 |
| --- | --- |
| enable | 使能Crop，0为Crop不使能，1为Crop使能。 |
| x | Crop X起始位置取值范围：[0, 图像宽度 – 256] |
| y | Crop Y起始位置取值范围：[0, 图像高度 – 120] |
| w | Crop宽度。取值范围：[256, 图像宽度] |
| h | Crop高度取值范围：[120, 图像高度] |


#### 注意事项

- 当裁剪图像宽小于600或高小于200时，AE统计信息仅全局直方图可用。
- 水平方向起始位置与Crop宽度之和应小于图像宽度，垂直方向起始位置与Crop高度之和应小于图像高度。
- 对于BE的AE统计信息，ISP BE分块场景下，不支持AE CROP（输入图像裁剪）功能。
- AE CROP（输入图像裁剪）参数会同步对MG模块生效。
