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

affineFit


Declaration​

fun affineFit( source: Size, srcOrientation: Orientation, target: Size, tgtOrientation: Orientation ): Matrix

Summary​

Returns an affine transformation that maps normalized coordinates
in the source frame to normalized coordinates in the target frame.

Returns​

An affine transformation matrix that fits the source into the target.