Table of Contents

Method RescaleDepth

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

RescaleDepth(InputArray, int, OutputArray, double)

Rescales a depth image. If the input image is of type CV_16UC1, it is converted to floats, divided by depthFactor to get a depth in meters; otherwise it is simply converted to floats.

public static void RescaleDepth(InputArray src, int type, OutputArray dst, double depthFactor = 1000)

Parameters

src InputArray

the depth image.

type int

the desired output depth (CV_32F or CV_64F).

dst OutputArray

the rescaled float depth image.

depthFactor double

factor by which depth is converted to distance (by default = 1000.0 for Kinect sensor).