Class SegmentationUtilities
A utility for creating color textures from an instance segmentation indices texture.
Inherited Members
Namespace: UnityEngine.Perception.GroundTruth.Utilities
Assembly: Unity.Perception.Runtime.dll
Syntax
[MovedFrom("UnityEngine.Perception.GroundTruth")]
public static class SegmentationUtilities
Methods
CreateSegmentationColorTexture(CommandBuffer, RenderTexture, RenderTexture, ComputeBuffer)
Creates a color texture from an instance segmentation indices texture.
Declaration
public static void CreateSegmentationColorTexture(CommandBuffer cmd, RenderTexture inputIndicesTexture, RenderTexture outputColorTexture, ComputeBuffer colorPerIndexBuffer)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandBuffer | cmd | The CommandBuffer for which to enqueue this operation. |
| RenderTexture | inputIndicesTexture | The instance segmentation indices texture. |
| RenderTexture | outputColorTexture | The output color segmentation texture. |
| ComputeBuffer | colorPerIndexBuffer | An array that maps a color to each unique instance index assigned to each labeled object in the scene. |