On this page←API Reference Return to API Reference index←packagecom.nianticspatial.nsdk.utils com.nianticspatial.nsdk.utils←objectImageMath com.nianticspatial.nsdk.utils.ImageMath Function affineCrop affineCropReturns an affine transformation that crops the source size to match the aspect ratio of the target size. 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.
Returns an affine transformation that crops the source size to match the aspect ratio of the target size.