CameraIntrinsics.UnprojectPixelsAtUnitDepth(Point[], Vector2[]) 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 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.
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.