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

# init(imageRect:in:normalizedTo:)

Creates a rectangle normalized to a region of interest in an image from a rectangle in an image coordinate space.

## Declaration

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

## Parameters

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

## See Also

### Creating a normalized rectangle

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