---
title: "init(imageRect:in:)"
framework: vision
role: symbol
role_heading: Initializer
path: "vision/normalizedrect/init(imagerect:in:)"
---

# init(imageRect:in:)

Creates a normalized rectangle from a rectangle in an image coordinate space.

## Declaration

```swift
init(imageRect: CGRect, in imageSize: CGSize)
```

## Parameters

- `imageRect`: A rectangle in the image coordinate space.
- `imageSize`: The size of the image.

## See Also

### Creating a normalized rectangle

- [init(x:y:width:height:)](vision/normalizedrect/init(x:y:width:height:).md)
- [init(imageRect:in:normalizedTo:)](vision/normalizedrect/init(imagerect:in:normalizedto:).md)
- [init(normalizedRect:)](vision/normalizedrect/init(normalizedrect:).md)
- [fullImage](vision/normalizedrect/fullimage.md)
