Share via


INuiFusionReconstruction::GetCurrentWorldToCameraTransform Method

Kinect for Windows 1.7, 1.8

Get the current internal world-to-camera transform (camera view pose).

Syntax

public:
HRESULT GetCurrentWorldToCameraTransform(
         Matrix4 *pWorldToCameraTransform
)

Parameters

  • pWorldToCameraTransform
    Type: Matrix4
    A pointer to a pre-allocated Matrix 4, to be filled with the current camera pose.

Return Value

Type: HRESULT
Returns S_OK if successful; otherwise, returns one of the following error codes:

Error code Description
E_POINTER The pWorldToCameraTransform parameter is NULL.
E_FAIL The call failed for an unknown reason.

Requirements

Header: Declared in nuikinectfusionvolume.h.

Library: Use KinectFusion170_32.lib or KinectFusion170_64.lib, depending on the bitness of the target system being compiled..