ColorReconstruction.SmoothDepthFloatFrame Method
Kinect for Windows 1.8
Spatially smoothes a depth float image frame using edge-preserving filtering.
Syntax
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: Int32The smoothing kernel width. The valid values are listed in the following table.
kernelWidth value Smoothing kernel block size 1 3×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.
Requirements
Namespace: Microsoft.Kinect.Toolkit.Fusion
Assembly: Microsoft.Kinect.Toolkit.Fusion (in microsoft.kinect.toolkit.fusion.dll)
See Also
Reference
ColorReconstruction Class
ColorReconstruction Members
Microsoft.Kinect.Toolkit.Fusion Namespace