PerceptionDepthFrameSource.TryGetDepthCorrelatedCoordinateMapperAsync 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.
Attempts to get a coordinate mapper that maps from depth 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("PerceptionDepthFrameSource 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("PerceptionDepthFrameSource 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 depth frame source.
Returns
If the two sources are correlated, this method returns a PerceptionDepthCorrelatedCoordinateMapper. Otherwise, it returns null. This method returns asynchronously.
- Attributes