# TryAcquireSceneSegmentationChannelCpuImage Source: https://www.nianticspatial.com/docs/api/unity/NianticSpatial.NSDK.AR.XRSubsystems.XRSceneSegmentationSubsystem.TryAcquireSceneSegmentationChannelCpuImage/ TryAcquireSceneSegmentationChannelCpuImage Acquire the latest semantic channel CPU image. --- ## Declaration public bool TryAcquireSceneSegmentationChannelCpuImage(SceneSegmentationChannel channel, out XRCpuImage cpuImage, out Matrix4x4 samplerMatrix, Nullable cameraParams = null) #### Summary Acquire the latest semantic channel CPU image. #### Returns Returns true if an XRCpuImage was successfully acquired. Returns false otherwise. #### Throws NotSupportedException -- Thrown if the implementation does not support semantic channels CPU images. ### Parameters | Name | Type | Summary | | --- | --- | --- | | channel | SceneSegmentationChannel | The semantics channel to acquire. | | cpuImage | XRCpuImage | The resulting XRCpuImage. The XRCpuImage must be disposed by the caller. | | samplerMatrix | Matrix4x4 | The matrix that transforms from normalized viewport coordinates to normalized image coordinates. | | cameraParams | Nullable | Describes the viewport the image is to be displayed on. | ---