docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PixelPositionAnnotation

    The pixel position image recorded for a capture.

    Inheritance
    object
    DataModelElement
    Annotation
    PixelPositionAnnotation
    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
    [MovedFrom("UnityEngine.Perception.GroundTruth")]
    public class PixelPositionAnnotation : Annotation, IMessageProducer

    Constructors

    PixelPositionAnnotation(PixelPositionDefinition, string, ImageEncodingFormat, Vector2, byte[])

    Initialize a new instance of PixelPositionAnnotation.

    Declaration
    public PixelPositionAnnotation(PixelPositionDefinition definition, string sensorId, ImageEncodingFormat imageFormat, Vector2 dimension, byte[] buffer)
    Parameters
    Type Name Description
    PixelPositionDefinition definition
    string sensorId
    ImageEncodingFormat imageFormat
    Vector2 dimension
    byte[] buffer

    Properties

    buffer

    Get the byte buffer of the output image

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

    dimension

    Get the dimension (in pixels) of the output image

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

    imageFormat

    Get the image format of the output image

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

    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)