CameraIntrinsics.UnprojectAtUnitDepth(Point) 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.
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
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.