TrySetChannelConfidenceThresholds
Declaration
public bool TrySetChannelConfidenceThresholds(Dictionary<SceneSegmentationChannel, float> channelConfidenceThresholds)
Summary
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
| Name | Type | Summary |
|---|---|---|
| channelConfidenceThresholds | Dictionary<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. |
Sets the confidence thresholds used for including the specified semantic channels in the packed semantic
channel buffer.