Dela via


CameraIntrinsics.UnprojectPixelsAtUnitDepth(Point[], Vector2[]) Method

Definition

Unprojects an array of pixel coordinates into an array of camera space rays from the camera origin, expressed as a X, Y coordinates on a plane one meter from the camera.

public:
 virtual void UnprojectPixelsAtUnitDepth(Platform::Array <Point> ^ pixelCoordinates, Platform::Array <float2> ^ results) = UnprojectPixelsAtUnitDepth;
void UnprojectPixelsAtUnitDepth(winrt::array_view <Point> const& pixelCoordinates, winrt::array_view <float2> & results);
public void UnprojectPixelsAtUnitDepth(Point[] pixelCoordinates, Vector2[] results);
function unprojectPixelsAtUnitDepth(pixelCoordinates, results)
Public Sub UnprojectPixelsAtUnitDepth (pixelCoordinates As Point(), results As Vector2())

Parameters

pixelCoordinates
Point[]

The array of pixel coordinates to unproject into camera space.

results

Vector2[]

Vector2[]

float2[]

The array of X, Y coordinates of the unprojected pixels on a plane one meter from the camera.

Remarks

The image coordinates must be expressed in pixels, with the origin in the top-left corner of the image; that is, +X pointing right, and +Y pointing down. The unprojected coordinates will be expressed in meters, with +X pointing right, and +Y pointing up,on a plane located at the center (principal point) of the image, one meter away from the camera.

Applies to