Skip to main content
API Reference com.nianticspatial.nsdk.awareness.scenesegmentation SceneSegmentationSession

unpackChannelsFromBitmask

Unpacks semantic channels from a packed channel bitmask. This converts a bitmask value (where each bit represents a semantic channel) into an EnumSet of SceneSegmentationChannel enum values representing the channels present in the bitmask.

Declaration

fun unpackChannelsFromBitmask(bitmask: Int): EnumSet<SceneSegmentationChannel>

Summary

Unpacks semantic channels from a packed channel bitmask. This converts a bitmask value (where each bit represents a semantic channel) into an EnumSet of SceneSegmentationChannel enum values representing the channels present in the bitmask.

Returns

EnumSet of SceneSegmentationChannel values present in the bitmask