Dela via


CameraIntrinsics.UnprojectAtUnitDepth(Point) Method

Definition

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

public:
 virtual float2 UnprojectAtUnitDepth(Point pixelCoordinate) = UnprojectAtUnitDepth;
float2 UnprojectAtUnitDepth(Point const& pixelCoordinate);
public Vector2 UnprojectAtUnitDepth(Point pixelCoordinate);
function unprojectAtUnitDepth(pixelCoordinate)
Public Function UnprojectAtUnitDepth (pixelCoordinate As Point) As Vector2

Parameters

pixelCoordinate
Point

The pixel coordinates to unproject into camera space.

Returns

Vector2 Vector2

float2

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

Remarks

The image coordinate 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 coordinate 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