CameraPoseFinder.FindCameraPose Method

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

public:
MatchCandidates^ FindCameraPose(
         DepthFloatFrame^ depthFloatFrame,
         ColorImageFrame^ colorFrame
)

Parameters

depthFloatFrame
Type: DepthFloatFrame
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 colorFrame parameter.
colorFrame
Type: ColorImageFrame
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 depthFloatFrame parameter.

Return value

Type: MatchCandidates
Returns a MatchCandidates object that contains a set of matched frames and poses. These poses and similarity measurements are ordered in terms of decreasing similarity.

Exception typeCondition
ArgumentException One of the following occurred:
  • The depthFloatFrame or colorFrame parameter is an incorrect image size.
  • The image sizes of the depthFloatFrame and colorFrame parameters do not match.
  • The CameraParameters for the depthFloatFrame or colorFrame parameter is null.
  • The focal length of the depthFloatFrame or colorFrame parameter is an incorrect size.
ArgumentNullException The depthFloatFrame or colorFrame parameter is null.
InvalidOperationException One of the following occurred:
  • The Kinect Runtime could not be accessed.
  • The call failed for an unknown reason.

Namespace: Microsoft.Kinect.Fusion
Metadata: microsoft.kinect.fusion.winmd

Community Additions

ADD
Show: