Reconstruction.GetCurrentWorldToVolumeTransform Method
Get current internal world-to-volume transform.
Note: A right handed coordinate system is used, with the origin of the volume (i.e. 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 now forward from origin into the reconstruction volume.
The default transform is a combination of translation in X,Y to locate the world origin at the center of the front face of the reconstruction volume cube (with the camera looking onto the volume along +Z), and scaling by the voxelsPerMeter reconstruction parameter to convert from world coordinate system to volume voxel indices.
Syntax
public Matrix4 GetCurrentWorldToVolumeTransform ()
Return Value
Type: Matrix4
The current world to volume transform. This is a similarity transformation that converts world coordinates to volume coordinates.
This method raises the following exceptions:
Exception | Raised By |
InvalidOperationException | Thrown when the call failed for an unknown reason. |
Requirements
Namespace: Microsoft.Kinect.Toolkit.Fusion
Assembly: Microsoft.Kinect.Toolkit.Fusion (in microsoft.kinect.toolkit.fusion.dll)
See Also
Reference
Reconstruction Class
Reconstruction Members
Microsoft.Kinect.Toolkit.Fusion Namespace