FrameConverter

interface FrameConverter extends HybridObject

The FrameConverter can convert Frames and Depth to Images, and back.

Methods

convertDepthToImage()

convertDepthToImage(depth: Depth): Image

Converts the Depth frame to an Image.

The resulting Image will be a grey-scale RGB image, where black pixels are far away, and white pixels are close by.


convertDepthToImageAsync()

convertDepthToImageAsync(depth: Depth): Promise<Image>

convertFrameToImage()

convertFrameToImage(frame: Frame): Image

Converts the given Frame to an Image. This performs a CPU copy.

Throws

If the Frame is invalid (Frame.isValid).


convertFrameToImageAsync()

convertFrameToImageAsync(frame: Frame): Promise<Image>

Asynchronously converts this Frame to an Image. This performs a CPU copy.

Throws

If the Frame is invalid (Frame.isValid).