Share via


PerceptionInfraredFrameSource.TryGetDepthCorrelatedCoordinateMapperAsync Method

Definition

Attempts to get a coordinate mapper that maps from infrared frame image space to depth frame space.

public:
 virtual IAsyncOperation<PerceptionDepthCorrelatedCoordinateMapper ^> ^ TryGetDepthCorrelatedCoordinateMapperAsync(Platform::String ^ targetId, PerceptionDepthFrameSource ^ depthFrameSourceToMapWith) = TryGetDepthCorrelatedCoordinateMapperAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<PerceptionDepthCorrelatedCoordinateMapper> TryGetDepthCorrelatedCoordinateMapperAsync(winrt::hstring const& targetId, PerceptionDepthFrameSource const& depthFrameSourceToMapWith);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("PerceptionInfraredFrameSource may be unavailable after Windows Creator Update.  Use Windows.Media.Capture.Frames.MediaFrameSource instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
IAsyncOperation<PerceptionDepthCorrelatedCoordinateMapper> TryGetDepthCorrelatedCoordinateMapperAsync(winrt::hstring const& targetId, PerceptionDepthFrameSource const& depthFrameSourceToMapWith);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<PerceptionDepthCorrelatedCoordinateMapper> TryGetDepthCorrelatedCoordinateMapperAsync(string targetId, PerceptionDepthFrameSource depthFrameSourceToMapWith);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("PerceptionInfraredFrameSource may be unavailable after Windows Creator Update.  Use Windows.Media.Capture.Frames.MediaFrameSource instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public IAsyncOperation<PerceptionDepthCorrelatedCoordinateMapper> TryGetDepthCorrelatedCoordinateMapperAsync(string targetId, PerceptionDepthFrameSource depthFrameSourceToMapWith);
function tryGetDepthCorrelatedCoordinateMapperAsync(targetId, depthFrameSourceToMapWith)
Public Function TryGetDepthCorrelatedCoordinateMapperAsync (targetId As String, depthFrameSourceToMapWith As PerceptionDepthFrameSource) As IAsyncOperation(Of PerceptionDepthCorrelatedCoordinateMapper)

Parameters

targetId
String

Platform::String

winrt::hstring

The unique ID of the depth frame source to try to map to.

depthFrameSourceToMapWith
PerceptionDepthFrameSource

The depth frame source to try to map to. This should be in a correlation group with the infrared frame source.

Returns

If the two sources are correlated, this method returns a PerceptionDepthCorrelatedCoordinateMapper. Otherwise, it returns null. This method returns asynchronously.

Attributes

Applies to