ColorReconstruction.SmoothDepthFloatFrame Method

Kinect for Windows 1.8

Spatially smoothes a depth float image frame using edge-preserving filtering.

public void SmoothDepthFloatFrame (
         FusionFloatImageFrame depthFloatFrame,
         FusionFloatImageFrame smoothDepthFloatFrame,
         int kernelWidth,
         float distanceThreshold
)

Parameters

depthFloatFrame
Type: FusionFloatImageFrame
A source depth float frame.
smoothDepthFloatFrame
Type: FusionFloatImageFrame
A depth float frame that receives the smoothed depth frame.
kernelWidth
Type: Int32

The smoothing kernel width. The valid values are listed in the following table.

kernelWidth value Smoothing kernel block size
13×3
2 5×5
3 7×7
distanceThreshold
Type: Single
The distance difference range that smoothing occurs in. Pixels with neighboring pixels outside this distance range will not be smoothed (larger values indicate discontinuity/edge). This value must be greater than zero.

Namespace: Microsoft.Kinect.Toolkit.Fusion
Assembly: Microsoft.Kinect.Toolkit.Fusion (in microsoft.kinect.toolkit.fusion.dll)

Community Additions

ADD
Show: