---
title: "VNImageRectForNormalizedRectUsingRegionOfInterest(_:_:_:_:)"
framework: vision
role: symbol
role_heading: Function
path: "vision/vnimagerectfornormalizedrectusingregionofinterest(_:_:_:_:)"
---

# VNImageRectForNormalizedRectUsingRegionOfInterest(_:_:_:_:)

Projects a rectangle from a region of interest within the normalized coordinates into image coordinates.

## Declaration

```swift
func VNImageRectForNormalizedRectUsingRegionOfInterest(_ normalizedRect: CGRect, _ imageWidth: Int, _ imageHeight: Int, _ roi: CGRect) -> CGRect
```

## Parameters

- `normalizedRect`: The rectangle in normalized coordinates.
- `imageWidth`: The width of the image.
- `imageHeight`: The height of the image.
- `roi`: The region of interest within the normalized-coordinate space.

## Return Value

Return Value A rectangle in the image-coordinate space.

## See Also

### Coordinate conversion

- [VNImagePointForNormalizedPoint(_:_:_:)](vision/vnimagepointfornormalizedpoint(_:_:_:).md)
- [VNNormalizedPointForImagePoint(_:_:_:)](vision/vnnormalizedpointforimagepoint(_:_:_:).md)
- [VNImagePointForNormalizedPointUsingRegionOfInterest(_:_:_:_:)](vision/vnimagepointfornormalizedpointusingregionofinterest(_:_:_:_:).md)
- [VNNormalizedPointForImagePointUsingRegionOfInterest(_:_:_:_:)](vision/vnnormalizedpointforimagepointusingregionofinterest(_:_:_:_:).md)
- [VNImageRectForNormalizedRect(_:_:_:)](vision/vnimagerectfornormalizedrect(_:_:_:).md)
- [VNNormalizedRectForImageRect(_:_:_:)](vision/vnnormalizedrectforimagerect(_:_:_:).md)
- [VNNormalizedRectForImageRectUsingRegionOfInterest(_:_:_:_:)](vision/vnnormalizedrectforimagerectusingregionofinterest(_:_:_:_:).md)
- [VNNormalizedIdentityRect](vision/vnnormalizedidentityrect.md)
- [VNNormalizedRectIsIdentityRect(_:)](vision/vnnormalizedrectisidentityrect(_:).md)
- [VNImagePointForFaceLandmarkPoint(_:_:_:_:)](vision/vnimagepointforfacelandmarkpoint(_:_:_:_:).md)
- [VNNormalizedFaceBoundingBoxPointForLandmarkPoint(_:_:_:_:)](vision/vnnormalizedfaceboundingboxpointforlandmarkpoint(_:_:_:_:).md)
