Class InstanceSegmentationAnnotation
The instance segmentation image recorded for a capture. This includes the data that associates a pixel color to an object.
Implements
Inherited Members
Namespace: UnityEngine.Perception.GroundTruth.Labelers
Assembly: Unity.Perception.Runtime.dll
Syntax
[Serializable]
[MovedFrom("UnityEngine.Perception.GroundTruth")]
public class InstanceSegmentationAnnotation : Annotation, IMessageProducer
Properties
buffer
The raw bytes of the image file.
Declaration
public byte[] buffer { get; }
Property Value
Type | Description |
---|---|
byte[] |
dimension
The dimensions (width, height) of the image.
Declaration
public Vector2 dimension { get; }
Property Value
Type | Description |
---|---|
Vector2 |
imageFormat
The format of the image type.
Declaration
public ImageEncodingFormat imageFormat { get; }
Property Value
Type | Description |
---|---|
ImageEncodingFormat |
instances
This instance to pixel map.
Declaration
public IEnumerable<InstanceSegmentationEntry> instances { get; }
Property Value
Type | Description |
---|---|
IEnumerable<InstanceSegmentationEntry> |
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 |