<!--
{
  "availability" : [
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/ReferenceImage/init(pixelBuffer:physicalSize:orientation:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "s:5ARKit14ReferenceImageV11pixelBuffer12physicalSize11orientationACSo11CVBufferRefa_So6CGSizeVSo26CGImagePropertyOrientationVtcfc"
  },
  "title" : "init(pixelBuffer:physicalSize:orientation:)"
}
-->

# init(pixelBuffer:physicalSize:orientation:)

Creates a reference image from a pixel buffer.

```
init(pixelBuffer: CVPixelBuffer, physicalSize: CGSize, orientation: CGImagePropertyOrientation = .up)
```

## Parameters

`pixelBuffer`

The image to use as a reference during tracking.

`physicalSize`

The size of the image in meters.

`orientation`

The orientation of the image asset.

---

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)