Share via


DepthCorrelatedCoordinateMapper.MapPoints Method

Definition

Maps an array of points from one MediaFrameSource to another, using depth information from the DepthMediaFrame from which the coordinate mapper was created with a call to TryCreateCoordinateMapper.

public:
 virtual void MapPoints(Platform::Array <Point> ^ sourcePoints, SpatialCoordinateSystem ^ targetCoordinateSystem, CameraIntrinsics ^ targetCameraIntrinsics, Platform::Array <Point> ^ results) = MapPoints;
void MapPoints(winrt::array_view <Point> const& sourcePoints, SpatialCoordinateSystem const& targetCoordinateSystem, CameraIntrinsics const& targetCameraIntrinsics, winrt::array_view <Point> & results);
public void MapPoints(Point[] sourcePoints, SpatialCoordinateSystem targetCoordinateSystem, CameraIntrinsics targetCameraIntrinsics, Point[] results);
function mapPoints(sourcePoints, targetCoordinateSystem, targetCameraIntrinsics, results)
Public Sub MapPoints (sourcePoints As Point(), targetCoordinateSystem As SpatialCoordinateSystem, targetCameraIntrinsics As CameraIntrinsics, results As Point())

Parameters

sourcePoints
Point[]

An array of source points to be mapped to the coordinate system of a different media frame source, which is specified in the targetCoordinateSystem parameter.

targetCoordinateSystem
SpatialCoordinateSystem

The coordinate system of the target media frame source to which the points are mapped.

targetCameraIntrinsics
CameraIntrinsics

The camera intrinsics describing the projection and distortion models of the media frame source to which the points are mapped.

results
Point[]

An array mapped points.

Applies to