Skip to main content
API Reference SwiftyNsdk ImageMath

reprojection

Returns a 3×3 homography matrix as matrix_float3x3 that reprojects...

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].
- Parameters:
- aspect: The aspect ratio of the image (width / height).
- fovRadians: The vertical field of view in radians.
- zNear: Near clipping plane distance.
- zFar: Far clipping plane distance.
- referenceView: The reference camera view.
- targetView: The target camera view.
- backProjectionDistance: Depth at which to reproject, normalized between clipping planes near (0) and far (1).
Recommended: 0.9.
- Returns: A 3×3 homography matrix in column-major order.


ON THIS PAGE