---
title: depthDataMap
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/photogrammetrysample/depthdatamap
---

# depthDataMap

The image’s depth data.

## Declaration

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

## Discussion

Discussion Some cameras, including iPhone cameras, capture depth data in addition to image data. Providing this data can help 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 kCVPixelFormatType_DisparityFloat32 or kCVPixelFormatType_DepthFloat32 format.

## See Also

### Describing the sample

- [image](realitykit/photogrammetrysample/image.md)
- [metadata](realitykit/photogrammetrysample/metadata.md)
- [gravity](realitykit/photogrammetrysample/gravity.md)
- [objectMask](realitykit/photogrammetrysample/objectmask.md)
