ScannerApp-Swift Documentation

Class Depth​Recorder

class DepthRecorder: Recorder  

Nested Type Aliases

T

typealias T = CVPixelBuffer

Methods

prepare​For​Recording(dir​Path:​filename:​file​Extension:​)

func prepareForRecording(dirPath: String, filename: String, fileExtension: String = "depth")  

update(_:​timestamp:​)

func update(_ buffer: CVPixelBuffer, timestamp: CMTime? = nil)  

record and save the depth info for one frame (this function will also convert the depth map from float32 to flaot16)

update​Without​Conversion(_:​)

func updateWithoutConversion(_ buffer: CVPixelBuffer)  

finish​Recording()

func finishRecording()  

display​Buffer​Info(buffer:​)

func displayBufferInfo(buffer: CVPixelBuffer)  

Display buffer info to console