PerceptionColorFrameSource.TryGetDepthCorrelatedCoordinateMapperAsync(String, PerceptionDepthFrameSource) PerceptionColorFrameSource.TryGetDepthCorrelatedCoordinateMapperAsync(String, PerceptionDepthFrameSource) PerceptionColorFrameSource.TryGetDepthCorrelatedCoordinateMapperAsync(String, PerceptionDepthFrameSource) PerceptionColorFrameSource.TryGetDepthCorrelatedCoordinateMapperAsync(String, PerceptionDepthFrameSource) PerceptionColorFrameSource.TryGetDepthCorrelatedCoordinateMapperAsync(String, PerceptionDepthFrameSource) Method

Definition

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

public : IAsyncOperation<PerceptionDepthCorrelatedCoordinateMapper> TryGetDepthCorrelatedCoordinateMapperAsync(Platform::String targetSourceId, PerceptionDepthFrameSource correlatedDepthFrameSource)
IAsyncOperation<PerceptionDepthCorrelatedCoordinateMapper> TryGetDepthCorrelatedCoordinateMapperAsync(winrt::hstring targetSourceId, PerceptionDepthFrameSource correlatedDepthFrameSource) const;
public IAsyncOperation<PerceptionDepthCorrelatedCoordinateMapper> TryGetDepthCorrelatedCoordinateMapperAsync(String targetSourceId, PerceptionDepthFrameSource correlatedDepthFrameSource)
Public Function TryGetDepthCorrelatedCoordinateMapperAsync(targetSourceId As String, correlatedDepthFrameSource As PerceptionDepthFrameSource) As IAsyncOperation(Of PerceptionDepthCorrelatedCoordinateMapper)
Windows.Devices.Perception.PerceptionColorFrameSource.tryGetDepthCorrelatedCoordinateMapperAsync(targetSourceId, correlatedDepthFrameSource).done( /* Your success and error handlers */ );
Parameters
targetSourceId
String String String

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

correlatedDepthFrameSource
PerceptionDepthFrameSource PerceptionDepthFrameSource 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.