---
title: "toImageCoordinates(from:imageSize:origin:)"
framework: vision
role: symbol
role_heading: Instance Method
path: "vision/normalizedrect/toimagecoordinates(from:imagesize:origin:)"
---

# toImageCoordinates(from:imageSize:origin:)

Converts a rectangle normalized to a region within an image into full image coordinates.

## Declaration

```swift
func toImageCoordinates(from regionOfInterest: NormalizedRect, imageSize: CGSize, origin: CoordinateOrigin = .lowerLeft) -> CGRect
```

## Parameters

- `regionOfInterest`: The region within an image you normalized the rect to.
- `imageSize`: The size of the image.
- `origin`: The origin.

## See Also

### Converting rectangles

- [toImageCoordinates(_:origin:)](vision/normalizedrect/toimagecoordinates(_:origin:).md)
