InitInfo

class InitInfo(val imageWidth: Int, val imageHeight: Int, val containerWidth: Int, val containerHeight: Int, val containerDepth: Int, val containerType: SpatialMLSession.ContainerType = ContainerType.VOLUMETRIC)

Configuration structure for framework session handle.

Parameters

imageWidth

The expected image width when accessing the camera in this session. We recommend the image width to match the desired output tensor's width in Pipeline.rectifiedVSTAccess to avoid unnecessary image resizing. Must be greater than zero. Unit is pixel.

imageHeight

The expected image height when accessing the camera in this session. We recommend the image height to match the desired output tensor's height in Pipeline.rectifiedVSTAccess to avoid unnecessary image resizing. Must be greater than zero. Unit is pixel.

containerWidth

The width of the SpatialML container at initialization. No effect if the containerType is ContainerType.DISABLED. Otherwise, it must be greater than zero; zero or negative to disable the SpatialML container.

containerHeight

The height of the SpatialML container at initialization. No effect if the containerType is ContainerType.DISABLED. Otherwise, it must be greater than zero; zero or negative to disable the SpatialML container.

containerDepth

The depth of SpatialML container at initialization. No effect if the containerType is ContainerType.DISABLED or ContainerType.PLANAR. Otherwise, it must be greater than zero; zero or negative to disable the SpatialML container.

containerType

Option to disable the SpatialML container for this session, or attach a planar or volumetric.

See also

Constructors

Link copied to clipboard
constructor(imageWidth: Int, imageHeight: Int, containerWidth: Int, containerHeight: Int, containerDepth: Int, containerType: SpatialMLSession.ContainerType = ContainerType.VOLUMETRIC)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val imageHeight: Int
Link copied to clipboard
val imageWidth: Int

Functions

Link copied to clipboard

Adds a hidden portal panel at the back of the SpatialML container. The portal panel can only be added when containerType is ContainerType.VOLUMETRIC with positive depth, height, and width. Otherwise, an exception will be thrown.