Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.XRSubsystems ←XRSceneSegmentationSubsystem ←Provider

TrySetChannelConfidenceThresholds


Declaration​

public virtual bool TrySetChannelConfidenceThresholds(Dictionary<SceneSegmentationChannel, float> channelConfidenceThresholds)

Summary​

Sets the confidence threshold for including the specified semantic channel in the packed semantic
channel buffer.

Remarks​

Each semantic channel will use its default threshold value chosen by the model until a new value is set
by this function during the AR session.

Returns​

True if the threshold was set. Otherwise, false.

Throws​

  • NotSupportedException — Thrown when setting confidence thresholds is not supported by the implementation.

Parameters​

NameTypeSummary
channelConfidenceThresholdsDictionary<SceneSegmentationChannel, float>
A dictionary consisting of keys specifying the semantics channel that is needed and values
between 0 and 1, inclusive, that set the threshold above which the platform will include the specified
channel in the packed semantics buffer. The key must be a semantic channel present in the list
returned by TryGetChannelNames.