<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/VNImageRectForNormalizedRectUsingRegionOfInterest(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "c:@F@VNImageRectForNormalizedRectUsingRegionOfInterest"
  },
  "title" : "VNImageRectForNormalizedRectUsingRegionOfInterest(_:_:_:_:)"
}
-->

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

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

```
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

A rectangle in the image-coordinate space.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)