docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class InstanceSegmentationDefinition

    Annotation definition for an instance segmentation

    Inheritance
    object
    DataModelElement
    AnnotationDefinition
    InstanceSegmentationDefinition
    Implements
    IMessageProducer
    Inherited Members
    AnnotationDefinition.IsValid()
    DataModelElement.id
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Perception.GroundTruth.Labelers
    Assembly: Unity.Perception.Runtime.dll
    Syntax
    [MovedFrom("UnityEngine.Perception.GroundTruth")]
    public class InstanceSegmentationDefinition : AnnotationDefinition, IMessageProducer

    Constructors

    InstanceSegmentationDefinition(string, LabelEntrySpec[])

    Creates an instance segmentation definition.

    Declaration
    public InstanceSegmentationDefinition(string id, IdLabelConfig.LabelEntrySpec[] spec)
    Parameters
    Type Name Description
    string id

    The registered ID for this definition

    LabelEntrySpec[] spec

    The label config

    Fields

    labelDescription

    Default description for the InstanceSegmentationDefinition

    Declaration
    public const string labelDescription = "Produces an instance segmentation image for each frame. The image will render the pixels of each labeled object in a distinct color."
    Field Value
    Type Description
    string

    Properties

    description

    The description of the annotation.

    Declaration
    public override string description { get; }
    Property Value
    Type Description
    string
    Overrides
    AnnotationDefinition.description

    modelType

    Type of the data object

    Declaration
    public override string modelType { get; }
    Property Value
    Type Description
    string
    Overrides
    DataModelElement.modelType

    spec

    Label config for the simulation

    Declaration
    public IdLabelConfig.LabelEntrySpec[] spec { get; }
    Property Value
    Type Description
    LabelEntrySpec[]

    Methods

    ToMessage(IMessageBuilder)

    Convert contents int a message.

    Declaration
    public override void ToMessage(IMessageBuilder builder)
    Parameters
    Type Name Description
    IMessageBuilder builder

    The message builder that will convert the class's contents into a message

    Overrides
    AnnotationDefinition.ToMessage(IMessageBuilder)

    Implements

    IMessageProducer
    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)