Skip to main content
API Reference com.nianticspatial.nsdk.objectdetection ObjectDetectionSession

calculateViewportMapping

Compute a transform [Matrix] that maps detection boxes from model frame coordinates into viewport coordinates.

Declaration

fun calculateViewportMapping( viewportSize: Size, orientation: Orientation ): Matrix?

Summary

Compute a transform [Matrix] that maps detection boxes from model frame coordinates into viewport coordinates.

Returns

A [Matrix] mapping from model space → source image frame space → viewport space.


ON THIS PAGE