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

DoesChannelExistAt


Declaration

public bool DoesChannelExistAt(int viewportX, int viewportY, SceneSegmentationChannel channel, Nullable<XRCameraParams> cameraParams = null)

Summary

Check if a semantic class is detected at the specified location in screen space, based on the confidence
threshold set for this channel. (See TrySetChannelConfidenceThresholds)

Returns

True if the semantic class exists at the given coordinates.

Parameters

NameTypeSummary
viewportXint
Horizontal coordinate in viewport space.
viewportYint
Vertical coordinate in viewport space.
channelSceneSegmentationChannel
The semantic channel to look for.
cameraParamsNullable<XRCameraParams>
Params of the viewport to sample with. Defaults to current screen dimensions if null.

Overload

public bool DoesChannelExistAt(int viewportX, int viewportY, int channelIndex, Nullable<XRCameraParams> cameraParams = null)

Summary

Check if a semantic class is detected at the specified location in screen space, based on the confidence
threshold set for this channel. (See TrySetChannelConfidenceThresholds)

Returns

True if the semantic class exists at the given coordinates.

Parameters

NameTypeSummary
viewportXint
Horizontal coordinate in viewport space.
viewportYint
Vertical coordinate in viewport space.
channelSceneSegmentationChannel
The semantic channel to look for.
cameraParamsNullable<XRCameraParams>
Params of the viewport to sample with. Defaults to current screen dimensions if null.