Share via


PerceptionDepthCorrelatedCoordinateMapper.MapRegionOfPixelsToTargetAsync Method

Definition

Maps a region of pixels from camera image space to depth image space.

public:
 virtual IAsyncAction ^ MapRegionOfPixelsToTargetAsync(Rect region, PerceptionDepthFrame ^ depthFrame, Platform::Array <Point> ^ targetCoordinates) = MapRegionOfPixelsToTargetAsync;
IAsyncAction MapRegionOfPixelsToTargetAsync(Rect const& region, PerceptionDepthFrame const& depthFrame, winrt::array_view <Point> & targetCoordinates);
/// [Windows.Foundation.Metadata.Deprecated("PerceptionDepthCorrelatedCoordinateMapper may be unavailable after Windows Creator Update.  Use Windows.Media.Devices.Core.DepthCorrelatedCoordinateMapper instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
IAsyncAction MapRegionOfPixelsToTargetAsync(Rect const& region, PerceptionDepthFrame const& depthFrame, winrt::array_view <Point> & targetCoordinates);
public IAsyncAction MapRegionOfPixelsToTargetAsync(Rect region, PerceptionDepthFrame depthFrame, Point[] targetCoordinates);
[Windows.Foundation.Metadata.Deprecated("PerceptionDepthCorrelatedCoordinateMapper 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 MapRegionOfPixelsToTargetAsync(Rect region, PerceptionDepthFrame depthFrame, Point[] targetCoordinates);
function mapRegionOfPixelsToTargetAsync(region, depthFrame, targetCoordinates)
Public Function MapRegionOfPixelsToTargetAsync (region As Rect, depthFrame As PerceptionDepthFrame, targetCoordinates As Point()) As IAsyncAction

Parameters

region
Rect

The region of pixels to map from camera image space to depth image space.

depthFrame
PerceptionDepthFrame

The depth frame to map the region of pixels to.

targetCoordinates
Point[]

The pixel coordinates, mapped to depth image space.

Returns

This function returns asynchronously.

Attributes

Applies to