<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/ARDepthData/confidenceMap",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "c:objc(cs)ARDepthData(py)confidenceMap"
  },
  "title" : "confidenceMap"
}
-->

# confidenceMap

The framework’s confidence in the accuracy of the depth-map data.

```
unowned(unsafe) var confidenceMap: CVPixelBuffer? { get }
```

## Discussion

The natural light of the physical environment affects the [`depthMap`](/documentation/ARKit/ARDepthData/depthMap) property such that ARKit is less confident about the accuracy of the LiDAR Scanner’s depth measurements for surfaces that are highly reflective, or that have high light absorption. This property measures the accuracy of the scene depth-data by containing an [`ARConfidenceLevel`](/documentation/ARKit/ARConfidenceLevel) raw-value for every component in [`depthMap`](/documentation/ARKit/ARDepthData/depthMap).

Custom renderers that process confidence data on the GPU should choose a <doc://com.apple.documentation/documentation/Metal/MTLPixelFormat> according to the [`confidenceMap`](/documentation/ARKit/ARDepthData/confidenceMap) pixel format the app reads at runtime. Call <doc://com.apple.documentation/documentation/CoreVideo/CVPixelBufferGetPixelFormatType(_:)> on the [`confidenceMap`](/documentation/ARKit/ARDepthData/confidenceMap) to get its format. If, for example, the [`confidenceMap`](/documentation/ARKit/ARDepthData/confidenceMap) format is <doc://com.apple.documentation/documentation/CoreVideo/kCVPixelFormatType_OneComponent8> (<doc://com.apple.documentation/documentation/kernel/ostype> ``L008``), create a Metal texture with format <doc://com.apple.documentation/documentation/Metal/MTLPixelFormat/r8Uint> to send confidence data to the GPU.

---

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)