PerceptionDepthCorrelatedCameraIntrinsics.UnprojectRegionPixelsAtCorrelatedDepthAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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:
virtual IAsyncAction ^ UnprojectRegionPixelsAtCorrelatedDepthAsync(Rect region, PerceptionDepthFrame ^ depthFrame, Platform::Array <float3> ^ results) = UnprojectRegionPixelsAtCorrelatedDepthAsync;
IAsyncAction UnprojectRegionPixelsAtCorrelatedDepthAsync(Rect const& region, PerceptionDepthFrame const& depthFrame, winrt::array_view <float3> & results);
/// [Windows.Foundation.Metadata.Deprecated("PerceptionDepthCorrelatedCameraIntrinsics may be unavailable after Windows Creator Update. Use Windows.Media.Devices.Core.DepthCorrelatedCoordinateMapper instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
IAsyncAction UnprojectRegionPixelsAtCorrelatedDepthAsync(Rect const& region, PerceptionDepthFrame const& depthFrame, winrt::array_view <float3> & results);
public IAsyncAction UnprojectRegionPixelsAtCorrelatedDepthAsync(Rect region, PerceptionDepthFrame depthFrame, Vector3[] results);
[Windows.Foundation.Metadata.Deprecated("PerceptionDepthCorrelatedCameraIntrinsics may be unavailable after Windows Creator Update. Use Windows.Media.Devices.Core.DepthCorrelatedCoordinateMapper instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public IAsyncAction UnprojectRegionPixelsAtCorrelatedDepthAsync(Rect region, PerceptionDepthFrame depthFrame, Vector3[] results);
function unprojectRegionPixelsAtCorrelatedDepthAsync(region, depthFrame, results)
Public Function UnprojectRegionPixelsAtCorrelatedDepthAsync (region As Rect, depthFrame As PerceptionDepthFrame, results As Vector3()) As IAsyncAction
Parameters
- region
- Rect
The region of pixels to project from camera image space out into the coordinate frame of the camera device.
- depthFrame
- 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.
A set of coordinates, relative to the coordinate system of the camera device and with correlated depth values.
Returns
This method returns asynchronously.
- Attributes