Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

Latest commit

 

History

History
14 lines (10 loc) · 396 Bytes

File metadata and controls

14 lines (10 loc) · 396 Bytes

Confidence Map

Confidence maps provide accuracy of depth data. It can be obtained in the same size as the depth map.

You can get the confidence map with the following code.

func session(_ session: ARSession, didUpdate frame: ARFrame) {
    let pixcelBuffer = session.currentFrame?.sceneDepth?.confidenceMap
}

Depth map value is Float32, but the confidence map value is UInt8.