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

affineCrop


Declaration​

fun affineCrop(source: Size, target: Size): Matrix

Summary​

Returns an affine transformation that crops the source size
to match the aspect ratio of the target size.

Returns​

An affine transformation matrix that crops the source to fit the target aspect ratio.