Skip to main content
←API Reference ←NSDK ←ImageMath

reprojection


Declaration​

static func reprojection(aspect: Float, fovRadians: Float, zNear: Float, zFar: Float, referenceView: matrix_float4x4, targetView: matrix_float4x4, backProjectionDistance: Float = 0.9) -> matrix_float3x3

Summary​

Returns a 3×3 homography matrix as matrix_float3x3 that reprojects
image coordinates from a reference camera view into a target camera view.
The image coordinates are expected to be normalized [0..1].

Returns​

A 3×3 homography matrix in column-major order.

Parameters​

NameTypeSummary
aspectFloat
The aspect ratio of the image (width / height).
fovRadiansFloat
The vertical field of view in radians.
zNearFloat
Near clipping plane distance.
zFarFloat
Far clipping plane distance.
referenceViewmatrix_float4x4
The reference camera view.
targetViewmatrix_float4x4
The target camera view.
backProjectionDistanceFloat
Depth at which to reproject, normalized between clipping planes near (0) and far (1).
Recommended: 0.9.