Struct BoundingBox
The 2D bounding box information of a labeled object.
Implements
Inherited Members
Namespace: UnityEngine.Perception.GroundTruth.Labelers
Assembly: Unity.Perception.Runtime.dll
Syntax
[MovedFrom("UnityEngine.Perception.GroundTruth")]
public struct BoundingBox : IMessageProducer
Properties
dimension
(width/height) dimensions of the bounding box.
Declaration
public Vector2 dimension { readonly get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
instanceId
The instance ID of the object.
Declaration
public int instanceId { readonly get; set; }
Property Value
Type | Description |
---|---|
int |
labelId
The label id of the object.
Declaration
public int labelId { readonly get; set; }
Property Value
Type | Description |
---|---|
int |
labelName
The type of the object.
Declaration
public string labelName { readonly get; set; }
Property Value
Type | Description |
---|---|
string |
origin
(xy) pixel location of the object's bounding box.
Declaration
public Vector2 origin { readonly get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
Methods
Encapsulate(BoundingBox)
Enlarges the current bounding box to encompass the other bounding box. The newly created bounding box will exactly fit both the old bounding box and the provided other bounding box.
Declaration
public void Encapsulate(BoundingBox other)
Parameters
Type | Name | Description |
---|---|---|
BoundingBox | other |
ToMessage(IMessageBuilder)
Convert contents int a message.
Declaration
public void ToMessage(IMessageBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
IMessageBuilder | builder | The message builder that will convert the class's contents into a message |