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
srcInputArraythe depth image.
typeintthe desired output depth (CV_32F or CV_64F).
dstOutputArraythe rescaled float depth image.
depthFactordoublefactor by which depth is converted to distance (by default = 1000.0 for Kinect sensor).