Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Kinect for Windows 1.8
Imports a reconstruction volume as a short array.
Syntax
public void ImportVolumeBlock (
short[] volumeBlock
)
Parameters
volumeBlock
Type: Int16A pre-allocated short array filled with volume data. This array must equal the size of the current initialized reconstruction volume. The number of elements in this array should be allocated as (destinationResolutionX*destinationResolutionY*destinationResolutionZ). To access the voxel located at x,y,z use pVolume[z][y][x], or index as a one-dimensional array for a particular voxel (x,y,z) as follows (with pitch = x resolution, slice = (y resolution * pitch)).
unsigned int index = (z * slice) + (y * pitch) + x;
Note
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.
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