docs.unity3d.com
    Show / Hide Table of Contents

    Struct RenderedObjectInfo

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

    Namespace: UnityEngine.Perception.GroundTruth
    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
    UInt32

    pixelCount

    The number of pixels in the image matching this instance.

    Declaration
    public int pixelCount
    Field Value
    Type Description
    Int32

    Methods

    Equals(Object)

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

    Equals(RenderedObjectInfo)

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

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023