PerceptionColorFrameSource.TryGetDepthCorrelatedCoordinateMapperAsync Method

Definition

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

public:
 virtual IAsyncOperation<PerceptionDepthCorrelatedCoordinateMapper ^> ^ TryGetDepthCorrelatedCoordinateMapperAsync(Platform::String ^ targetSourceId, PerceptionDepthFrameSource ^ correlatedDepthFrameSource) = TryGetDepthCorrelatedCoordinateMapperAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<PerceptionDepthCorrelatedCoordinateMapper> TryGetDepthCorrelatedCoordinateMapperAsync(winrt::hstring const& targetSourceId, PerceptionDepthFrameSource const& correlatedDepthFrameSource);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("PerceptionColorFrameSource 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& targetSourceId, PerceptionDepthFrameSource const& correlatedDepthFrameSource);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<PerceptionDepthCorrelatedCoordinateMapper> TryGetDepthCorrelatedCoordinateMapperAsync(string targetSourceId, PerceptionDepthFrameSource correlatedDepthFrameSource);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("PerceptionColorFrameSource 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 targetSourceId, PerceptionDepthFrameSource correlatedDepthFrameSource);
function tryGetDepthCorrelatedCoordinateMapperAsync(targetSourceId, correlatedDepthFrameSource)
Public Function TryGetDepthCorrelatedCoordinateMapperAsync (targetSourceId As String, correlatedDepthFrameSource As PerceptionDepthFrameSource) As IAsyncOperation(Of PerceptionDepthCorrelatedCoordinateMapper)

Parameters

targetSourceId
String

Platform::String

winrt::hstring

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

correlatedDepthFrameSource
PerceptionDepthFrameSource

The depth frame source to try to map to. This should be in a correlation group with the color 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