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

ARSceneSegmentationManager

↳ extends UnityEngine.XR.ARFoundation.SubsystemLifecycleManager
The ARSceneSegmentationManager controls the XRSceneSegmentationSubsystem and updates the semantics...

Declaration

public class ARSceneSegmentationManager : SubsystemLifecycleManager<XRSceneSegmentationSubsystem, XRSceneSegmentationSubsystemDescriptor, Provider>

Summary

The ARSceneSegmentationManager controls the XRSceneSegmentationSubsystem and updates the semantics textures on each Update loop. Textures and XRCpuImages are available for confidence maps of individual semantic segmentation channels and a bit array indicating which semantic channels have surpassed the chosen confidence threshold per pixel. For cases where a semantic segmentation texture is overlaid on the screen, utilities are provided to read semantic properties at a given point on the screen.


Properties

NameTypeSummary
readonly ChannelIndicesIReadOnlyDictionary<SceneSegmentationChannel, int>
-
readonly ChannelsIReadOnlyList<SceneSegmentationChannel>
-
IsMetadataAvailablebool
-
TargetFrameRateuint
-

Methods

NameTypeSummary
DoesChannelExistAtbool
-
GetChannelFromNameNullable<SceneSegmentationChannel>
-
GetChannelIndexint
-
GetChannelIndicesAtList<int>
-
static GetChannelNameFromEnumstring
-
GetChannelNamesAtList<string>
-
GetChannelsAtList<SceneSegmentationChannel>
-
GetPackedSceneSegmentationChannelsTextureTexture2D
-
GetSceneSegmentationuint
-
GetSceneSegmentationChannelTextureTexture2D
-
GetSuppressionMaskTextureTexture2D
-
TryAcquirePackedSceneSegmentationChannelsCpuImagebool
-
TryAcquireSceneSegmentationChannelCpuImagebool
-
TryAcquireSuppressionMaskCpuImagebool
-
TryResetChannelConfidenceThresholdsbool
-
TrySetChannelConfidenceThresholdsbool
-
Updatevoid
-

Events

NameTypeSummary
FrameReceivedAction<ARSceneSegmentationFrameEventArgs>
-
MetadataInitializedAction<ARSceneSegmentationModelEventArgs>
-