INuiFusionColorReconstruction::CalculatePointCloud Method
Calculates a point cloud by raycasting into the reconstruction volume, returning the point cloud containing 3D points and normals of the zero-crossing dense surface at every visible pixel in the image from the specified camera pose and color visualization image.
Syntax
public:
HRESULT CalculatePointCloud(
const NUI_FUSION_IMAGE_FRAME *pPointCloudFrame,
const NUI_FUSION_IMAGE_FRAME *pColorFrame,
const Matrix4 *pWorldToCameraTransform
)
Parameters
pPointCloudFrame
Type: NUI_FUSION_IMAGE_FRAME
The pre-allocated point cloud frame, to be filled by raycasting into the reconstruction volume. This point cloud can be used as a reference frame in the next call to the AlignPointClouds method, or passed to the NuiFusionShadePointCloud function to produce a visible image output.pColorFrame
Type: NUI_FUSION_IMAGE_FRAME
The color frame to fill.pWorldToCameraTransform
Type: Matrix4
The world-to-camera transform (camera pose) to raycast from.
Return value
Type: HRESULT
S_OK if successful; otherwise, returns a failure code.
Requirements
Header: nuikinectfusioncolorvolume.h
Library: TBD