docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class InstanceSegmentationAnnotation

    The instance segmentation image recorded for a capture. This includes the data that associates a pixel color to an object.

    Inheritance
    object
    DataModelElement
    Annotation
    InstanceSegmentationAnnotation
    Implements
    IMessageProducer
    Inherited Members
    Annotation.m_Definition
    Annotation.annotationId
    Annotation.modelType
    Annotation.description
    Annotation.sensorId
    Annotation.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
    [Serializable]
    [MovedFrom("UnityEngine.Perception.GroundTruth")]
    public class InstanceSegmentationAnnotation : Annotation, IMessageProducer

    Properties

    buffer

    The raw bytes of the image file.

    Declaration
    public byte[] buffer { get; }
    Property Value
    Type Description
    byte[]

    dimension

    The dimensions (width, height) of the image.

    Declaration
    public Vector2 dimension { get; }
    Property Value
    Type Description
    Vector2

    imageFormat

    The format of the image type.

    Declaration
    public ImageEncodingFormat imageFormat { get; }
    Property Value
    Type Description
    ImageEncodingFormat

    instances

    This instance to pixel map.

    Declaration
    public IEnumerable<InstanceSegmentationEntry> instances { get; }
    Property Value
    Type Description
    IEnumerable<InstanceSegmentationEntry>

    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
    Annotation.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)