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

TryAcquirePackedSemanticChannelsCpuImage


Declaration

public bool TryAcquirePackedSemanticChannelsCpuImage(out XRCpuImage cpuImage, out Matrix4x4 samplerMatrix, Nullable<XRCameraParams> cameraParams = null)

Parameters

NameTypeSummary
cpuImageXRCpuImage
If this method returns true, an acquired XRCpuImage. The CPU image
must be disposed by the caller.
samplerMatrixMatrix4x4
A matrix that converts from viewport to image coordinates according to the latest pose.
cameraParamsNullable<XRCameraParams>
Params of the viewport to sample with. Defaults to current screen dimensions if null.