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

# VNNormalizedRectForImageRect(_:_:_:)

Projects a rectangle from image coordinates into normalized coordinates.

```
func VNNormalizedRectForImageRect(_ imageRect: CGRect, _ imageWidth: Int, _ imageHeight: Int) -> CGRect
```

## Parameters

`imageRect`

The input rectangle in image coordinate space.

`imageWidth`

The width of the image in whose coordinates the input rect resides.

`imageHeight`

The height of the image in whose coordinates the input rect resides.

## Return Value

The input rectangle projected into normalized coordinates.

## 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)