Skip to main content
←API Reference ←com.nianticspatial.nsdk.utils ←ImageMath

reprojection


Declaration​

fun reprojection(aspect: Float, fovRadians: Float, zNear: Float, zFar: Float, referenceView: FloatArray, targetView: FloatArray, backProjectionDistance: Float = 0.9f): Matrix

Summary​

Returns a 3×3 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 3×3 homography matrix represented as an android.graphics.Matrix.