ColorReconstruction.GetCurrentWorldToVolumeTransform Method
Gets the current internal world-to-volume transform.
Syntax
public:
Matrix4x4 GetCurrentWorldToVolumeTransform()
public Matrix4x4 GetCurrentWorldToVolumeTransform ()
var matrix4x4 = colorReconstruction.getCurrentWorldToVolumeTransform();
Return value
Type: Matrix4x4
Returns the current world-to-volume transform. This is a similarity transformation that converts world coordinates to volume coordinates.
Remarks
A right handed coordinate system is used, with the origin of the volume (that is, voxel 0,0,0) at the top left of the front plane of the cube. Similar to bitmap images with top left origin, +X is to the right, +Y down, and +Z is forward from the origin into the reconstruction volume..
The 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 field to convert from the world coordinate system to volume voxel indices.
Requirements
Namespace: Microsoft.Kinect.Fusion
Metadata: microsoft.kinect.fusion.winmd