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

ARSemanticSegmentationManager

↳ extends UnityEngine.XR.ARFoundation.SubsystemLifecycleManager
The ARSemanticSegmentationManager controls the XRSemanticsSubsystem and updates the semantics...

Declaration

public class ARSemanticSegmentationManager : SubsystemLifecycleManager<XRSemanticsSubsystem, XRSemanticsSubsystemDescriptor, Provider>

Summary

The ARSemanticSegmentationManager controls the XRSemanticsSubsystem 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<string, int>
-
readonly ChannelNamesIReadOnlyList<string>
-
IsMetadataAvailablebool
-
TargetFrameRateuint
-

Methods

NameTypeSummary
DoesChannelExistAtbool
-
GetChannelIndexint
-
GetChannelIndicesAtList<int>
-
GetChannelNamesAtList<string>
-
GetPackedSemanticsChannelsTextureTexture2D
-
GetSemanticChannelTextureTexture2D
-
GetSemanticsuint
-
GetSuppressionMaskTextureTexture2D
-
TryAcquirePackedSemanticChannelsCpuImagebool
-
TryAcquireSemanticChannelCpuImagebool
-
TryAcquireSuppressionMaskCpuImagebool
-
TryResetChannelConfidenceThresholdsbool
-
TrySetChannelConfidenceThresholdsbool
-
Updatevoid
-

Events

NameTypeSummary
FrameReceivedAction<ARSemanticSegmentationFrameEventArgs>
-
MetadataInitializedAction<ARSemanticSegmentationModelEventArgs>
-