docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct RenderedObjectInfo

    Describes an instance of an object in an instance segmentation frame. Generated by RenderedObjectInfoGenerator.

    Implements
    IEquatable<RenderedObjectInfo>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Perception.GroundTruth
    Assembly: Unity.Perception.Runtime.dll
    Syntax
    public struct RenderedObjectInfo : IEquatable<RenderedObjectInfo>

    Fields

    boundingBox

    The bounding box of the object in pixel coordinates.

    Declaration
    public Rect boundingBox
    Field Value
    Type Description
    Rect

    instanceColor

    The unique RGBA color for the instance.

    Declaration
    public Color32 instanceColor
    Field Value
    Type Description
    Color32

    instanceId

    The instanceId of the rendered object.

    Declaration
    public uint instanceId
    Field Value
    Type Description
    uint

    instanceIndex

    The index of the object within the LabelManager.

    Declaration
    public uint instanceIndex
    Field Value
    Type Description
    uint

    pixelCount

    The number of pixels in the image matching this instance.

    Declaration
    public int pixelCount
    Field Value
    Type Description
    int

    Methods

    Equals(object)

    Overrides comparing with out object. Accepts only typeof(RenderedObjectInfo)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    Any object

    Returns
    Type Description
    bool

    True if object is RenderedObjectInfo and internal data is the same

    Overrides
    ValueType.Equals(object)

    Equals(RenderedObjectInfo)

    Overrides comparing with out object. Accepts only typeof(RenderedObjectInfo)

    Declaration
    public bool Equals(RenderedObjectInfo other)
    Parameters
    Type Name Description
    RenderedObjectInfo other

    Any other RenderedObjectInfo

    Returns
    Type Description
    bool

    True if object is RenderedObjectInfo and internal data is the same

    GetHashCode()

    Custom GetHashCode function

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Custom calculated hash

    Overrides
    ValueType.GetHashCode()

    ToString()

    Custom ToString output

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    Custom ToString data

    Overrides
    ValueType.ToString()

    Implements

    IEquatable<T>
    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)