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

affineFit

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

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.


ON THIS PAGE