Skip to main content
API Reference NianticSpatial.NSDK.AR.SceneSegmentation ARSceneSegmentationManager

GetChannelIndex


Declaration

public int GetChannelIndex(SceneSegmentationChannel channel)

Summary

Get the channel index of a specified semantic class. This corresponds to a bit position in the packed
scene segmentation buffer, with index 0 being the most-significant bit.

Returns

The index of the specified semantic class, or -1 if the channel does not exist.

Parameters

NameTypeSummary
channelSceneSegmentationChannel
The semantic channel.