<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PhotogrammetrySample/depthDataMap",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation20PhotogrammetrySampleV12depthDataMapSo11CVBufferRefaSgvp"
  },
  "title" : "depthDataMap"
}
-->

# depthDataMap

The image’s depth data.

```
var depthDataMap: CVPixelBuffer? { get set }
```

## Discussion

Some cameras, including iPhone cameras, capture depth data in addition
to image data. Providing this data can help [`PhotogrammetrySession`](/documentation/RealityKit/PhotogrammetrySession)
determine the real-world scale of the photographed object and result in
a correctly sized 3D object for placement in an AR scene. This property
is read-only.

Depth data can be in either
<doc://com.apple.documentation/documentation/CoreVideo/kCVPixelFormatType_DisparityFloat32>
or
<doc://com.apple.documentation/documentation/CoreVideo/kCVPixelFormatType_DepthFloat32>
format.

---

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)