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.

Parameters​

NameTypeSummary
sourceSize
The size of the source container in pixels.
srcOrientationOrientation
The orientation of the source container.
targetSize
The size of the target container in pixels.
tgtOrientationOrientation
The orientation of the target container.