docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SegmentationUtilities

    A utility for creating color textures from an instance segmentation indices texture.

    Inheritance
    object
    SegmentationUtilities
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)