Struct RenderedObjectInfo
Describes an instance of an object in an instance segmentation frame. Generated by RenderedObjectInfoGenerator.
Implements
Inherited Members
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
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
ToString()
Custom ToString output
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | Custom ToString data |