Partager via


PerceptionDepthFrameSource.TryGetDepthCorrelatedCoordinateMapperAsync Méthode

Définition

Tente d’obtenir un mappeur de coordonnées qui mappe de l’espace d’image de trame de profondeur à l’espace de trame de profondeur.

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)

Paramètres

targetId
String

Platform::String

winrt::hstring

ID unique de la source de trame de profondeur à laquelle essayer de mapper.

depthFrameSourceToMapWith
PerceptionDepthFrameSource

Source de trame de profondeur à laquelle essayer de mapper. Il doit s’agir d’un groupe de corrélation avec la source de trame de profondeur.

Retours

Si les deux sources sont corrélées, cette méthode renvoie un objet PerceptionDepthCorrelatedCoordinateMapper. Sinon, la valeur renvoyée est null. Cette méthode retourne de façon asynchrone.

Attributs

S’applique à