PerceptionDepthCorrelatedCameraIntrinsics PerceptionDepthCorrelatedCameraIntrinsics PerceptionDepthCorrelatedCameraIntrinsics PerceptionDepthCorrelatedCameraIntrinsics Class

Definition

Provides convenience methods to facilitate geometric math for a camera device, combining the intrinsic properties of that camera with correlated depth frames to provide screen-space pixel to camera-space coordinate projections.

public : sealed class PerceptionDepthCorrelatedCameraIntrinsics : IPerceptionDepthCorrelatedCameraIntrinsicspublic sealed class PerceptionDepthCorrelatedCameraIntrinsics : IPerceptionDepthCorrelatedCameraIntrinsicsPublic NotInheritable Class PerceptionDepthCorrelatedCameraIntrinsics Implements IPerceptionDepthCorrelatedCameraIntrinsics// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Methods

UnprojectAllPixelsAtCorrelatedDepthAsync(PerceptionDepthFrame, Vector3[]) UnprojectAllPixelsAtCorrelatedDepthAsync(PerceptionDepthFrame, Vector3[]) UnprojectAllPixelsAtCorrelatedDepthAsync(PerceptionDepthFrame, Vector3[]) UnprojectAllPixelsAtCorrelatedDepthAsync(PerceptionDepthFrame, Vector3[])

Unprojects all pixels in an image from camera image space out into the coordinate frame of the camera device, using the corresponding depth values from a correlated depth camera.

public : IAsyncAction UnprojectAllPixelsAtCorrelatedDepthAsync(PerceptionDepthFrame depthFrame, Vector3[] results)public IAsyncAction UnprojectAllPixelsAtCorrelatedDepthAsync(PerceptionDepthFrame depthFrame, Vector3[] results)Public Function UnprojectAllPixelsAtCorrelatedDepthAsync(depthFrame As PerceptionDepthFrame, results As Vector3[]) As IAsyncAction// You can use this method in JavaScript.
Parameters
depthFrame
PerceptionDepthFrame PerceptionDepthFrame PerceptionDepthFrame PerceptionDepthFrame

The depth frame containing the depth value to use when projecting the points into camera space. The coordinates of each pixel in the image will be mapped from camera image space to depth image space, and then used to look up the depth in this depth frame.

results
Vector3[] Vector3[] Vector3[] Vector3[]

Returns a set of coordinates, relative to the coordinate system of the camera device and with correlated depth values.

Returns

This method returns asynchronously.

UnprojectPixelAtCorrelatedDepth(Point, PerceptionDepthFrame) UnprojectPixelAtCorrelatedDepth(Point, PerceptionDepthFrame) UnprojectPixelAtCorrelatedDepth(Point, PerceptionDepthFrame) UnprojectPixelAtCorrelatedDepth(Point, PerceptionDepthFrame)

Unprojects a point in camera image space out into the coordinate frame of the camera device, using the corresponding depth from a correlated depth camera.

public : Vector3 UnprojectPixelAtCorrelatedDepth(Point pixelCoordinate, PerceptionDepthFrame depthFrame)public Vector3 UnprojectPixelAtCorrelatedDepth(Point pixelCoordinate, PerceptionDepthFrame depthFrame)Public Function UnprojectPixelAtCorrelatedDepth(pixelCoordinate As Point, depthFrame As PerceptionDepthFrame) As Vector3// You can use this method in JavaScript.
Parameters
pixelCoordinate
Point Point Point Point

A point, relative to the camera frame.

depthFrame
PerceptionDepthFrame PerceptionDepthFrame PerceptionDepthFrame PerceptionDepthFrame

The depth frame containing the depth value to use when projecting the point into camera space. The pixelCoordinate will be mapped from camera image space to depth image space, and then used to look up the depth in depthFrame.

Returns
Vector3 Vector3 Vector3 Vector3

An unprojected coordinate, relative to the coordinate system of the camera device. The coordinate is located in front of the camera, at the depth of the corresponding pixel in depthFrame.

UnprojectPixelsAtCorrelatedDepth(Point[], PerceptionDepthFrame, Vector3[]) UnprojectPixelsAtCorrelatedDepth(Point[], PerceptionDepthFrame, Vector3[]) UnprojectPixelsAtCorrelatedDepth(Point[], PerceptionDepthFrame, Vector3[]) UnprojectPixelsAtCorrelatedDepth(Point[], PerceptionDepthFrame, Vector3[])

Unprojects a set of points in camera image space out into the coordinate frame of the camera device, using the corresponding depth values from a correlated depth camera.

public : void UnprojectPixelsAtCorrelatedDepth(Point[] sourceCoordinates, PerceptionDepthFrame depthFrame, Vector3[] results)public void UnprojectPixelsAtCorrelatedDepth(Point[] sourceCoordinates, PerceptionDepthFrame depthFrame, Vector3[] results)Public Function UnprojectPixelsAtCorrelatedDepth(sourceCoordinates As Point[], depthFrame As PerceptionDepthFrame, results As Vector3[]) As void// You can use this method in JavaScript.
Parameters
sourceCoordinates
Point[] Point[] Point[] Point[]

A set of points, relative to the camera frame.

depthFrame
PerceptionDepthFrame PerceptionDepthFrame PerceptionDepthFrame PerceptionDepthFrame

The depth frame containing the depth value to use when projecting the points into camera space. The pixelCoordinate will be mapped from camera image space to depth image space, and then used to look up the depth in depthFrame.

results
Vector3[] Vector3[] Vector3[] Vector3[]

A set of coordinates, relative to the coordinate system of the camera device and with correlated depth values.

UnprojectRegionPixelsAtCorrelatedDepthAsync(Rect, PerceptionDepthFrame, Vector3[]) UnprojectRegionPixelsAtCorrelatedDepthAsync(Rect, PerceptionDepthFrame, Vector3[]) UnprojectRegionPixelsAtCorrelatedDepthAsync(Rect, PerceptionDepthFrame, Vector3[]) UnprojectRegionPixelsAtCorrelatedDepthAsync(Rect, PerceptionDepthFrame, Vector3[])

Unprojects a region of pixels in an image from camera image space out into the coordinate frame of the camera device, using the corresponding depth values from a correlated depth camera.

public : IAsyncAction UnprojectRegionPixelsAtCorrelatedDepthAsync(Rect region, PerceptionDepthFrame depthFrame, Vector3[] results)public IAsyncAction UnprojectRegionPixelsAtCorrelatedDepthAsync(Rect region, PerceptionDepthFrame depthFrame, Vector3[] results)Public Function UnprojectRegionPixelsAtCorrelatedDepthAsync(region As Rect, depthFrame As PerceptionDepthFrame, results As Vector3[]) As IAsyncAction// You can use this method in JavaScript.
Parameters
region
Rect Rect Rect Rect

The region of pixels to project from camera image space out into the coordinate frame of the camera device.

depthFrame
PerceptionDepthFrame PerceptionDepthFrame PerceptionDepthFrame PerceptionDepthFrame

The depth frame containing the depth value to use when projecting the points into camera space. The pixelCoordinates will be mapped from camera image space to depth image space, and then used to look up the depth in depthFrame.

results
Vector3[] Vector3[] Vector3[] Vector3[]

A set of coordinates, relative to the coordinate system of the camera device and with correlated depth values.

Returns

This method returns asynchronously.