ARDK for Android/com.nianticlabs.ardk.utils/ImageMath/affineFit
affineFit
[androidJvm]
fun affineFit(source: Size, srcOrientation: Orientation, target: Size, tgtOrientation: Orientation): Matrix
Returns an affine transformation that maps normalized coordinates in the source frame to normalized coordinates in the target frame.
Return
An affine transformation matrix that fits the source into the target.
Parameters
androidJvm
| source | The size of the source container in pixels. |
| srcOrientation | The orientation of the source container. |
| target | The size of the target container in pixels. |
| tgtOrientation | The orientation of the target container. |