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

GetSceneSegmentation

Returns the scene segmentation at the specified pixel on screen.

Declaration

public uint GetSceneSegmentation(int viewportX, int viewportY, Nullable<XRCameraParams> cameraParams = null)

Summary

Returns the scene segmentation at the specified pixel on screen.

Returns

A 32-bit packed unsigned integer where each
bit is a binary indicator for a class, and the most-significant bit corresponds to the channel that
is the 0th element of the ChannelNames list.

Parameters

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