# reprojection Source: https://www.nianticspatial.com/docs/api/kotlin/com.nianticspatial.nsdk.utils.ImageMath.reprojection/ reprojection --- ## Declaration fun reprojection(aspect: Float, fovRadians: Float, zNear: Float, zFar: Float, referenceView: FloatArray, targetView: FloatArray, backProjectionDistance: Float = 0.9f): Matrix #### Summary Returns a 3x3 homography matrix (android.graphics.Matrix) that reprojects image coordinates from a reference camera view into a target camera view. This is typically used to transform 2D image-space coordinates (normalized in [0..1]) from one camera perspective to another, e.g. for aligning visual overlays between AR frames. #### Returns A 3x3 homography matrix represented as an android.graphics.Matrix. ### Parameters | Name | Type | Summary | | --- | --- | --- | | aspect | Float | The image aspect ratio (width / height). | | fovRadians | Float | The vertical field of view in radians. | | zNear | Float | The near clipping plane distance. | | zFar | Float | The far clipping plane distance. | | referenceView | FloatArray | The reference camera's 4x4 view matrix as a `FloatArray` (length 16), in **OpenGL-style column-major** order. This can typically be acquired from ARCore using `camera.getViewMatrix(viewMatrix, 0)`. | | targetView | FloatArray | The target camera's 4x4 view matrix, same format and origin as `referenceView`. | | backProjectionDistance | Float | Non-linear depth at which to reproject (between `zNear` and `zFar`). A value of 0.0 corresponds to the near plane, 1.0 to the far plane. Recommended value: `0.9`. | ---