Share via


INuiFusionCameraPoseFinder::FindCameraPose Method

Retrieves the poses in the camera pose finder database that are most similar to the current camera input.

Syntax

public:
HRESULT FindCameraPose(
         const NUI_FUSION_IMAGE_FRAME *pDepthFloatFrame,
         const NUI_FUSION_IMAGE_FRAME *pColorFrame,
         INuiFusionMatchCandidates **ppMatchCandidates
)

Parameters

  • pDepthFloatFrame
    Type: NUI_FUSION_IMAGE_FRAME
    Pointer to the depth float frame to be processed. This frame must have valid camera parameters. Also, this frame must be the same size and have been captured at the same time as the frame pointed to be the colorFrame parameter.
  • pColorFrame
    Type: NUI_FUSION_IMAGE_FRAME
    Pointer to the color frame to be processed. This frame must have valid camera parameters. Also, this frame must be the same size and have been captured at the same time as the frame pointed to by the depthFloatFrame parameter.
  • ppMatchCandidates
    Type: INuiFusionMatchCandidates
    Pointer that receives a reference to a INuiFusionMatchCandidates object that contains a set of matched frames and poses. These poses and similarity measurements are ordered in terms of decreasing similarity.

Return Value

Type: HRESULT
HRESULT success or error code.

Requirements

Header: Declared in nuikinectfusioncameraposefinder.h.

Library: Use KinectFusion180_32.lib for 32-bit applications and use KinectFusion180_64.lib for 64-bit applications.