Share via


ColorReconstruction.FusionCreateReconstruction Method

Kinect for Windows 1.8

Initializes a Kinect Fusion 3D reconstruction volume that uses color.

Syntax

public static ColorReconstruction FusionCreateReconstruction (
         ReconstructionParameters reconstructionParameters,
         ReconstructionProcessor reconstructionProcessorType,
         int deviceIndex,
         Matrix4 initialWorldToCameraTransform
)

Parameters

  • reconstructionParameters
    Type: ReconstructionParameters
    The parameters that define the size and shape of the reconstruction volume.
  • reconstructionProcessorType
    Type: ReconstructionProcessor
    The processor type to be used for all calls to the reconstruction volume object returned from this method.
  • deviceIndex
    Type: Int32
    The explicit zero-based device index of the GPU to use, as enumerated by the FusionDepthProcessor.GetDeviceInfo method. Set this value to −1 to automatically select the default device for a given processor type.
  • initialWorldToCameraTransform
    Type: Matrix4
    The initial camera pose of the reconstruction volume, with respect to the world origin. To use the default camera pose, specify identity.

Return Value

Type: ColorReconstruction
Returns the reconstruction instance.

Remarks

Voxel volume axis sizes must be greater than zero and must be a multiple of 32.

This method creates a default world-to-volume transform. To set a non-default transform, call the ResetReconstruction method with an appropriate Matrix4. This default transformation is a combination of translation in x-axis and y-axis to locate the world origin at the center of the front face of the reconstruction volume cube, and scaling by the ReconstructionParameters.VoxelsPerMeter property to convert from the world coordinate system to volume voxel indices.

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