Class NormalAnnotation
The vertex normal image recorded for a capture.
Implements
Inherited Members
Namespace: UnityEngine.Perception.GroundTruth.Labelers
Assembly: Unity.Perception.Runtime.dll
Syntax
[MovedFrom("UnityEngine.Perception.GroundTruth")]
public class NormalAnnotation : Annotation, IMessageProducer
Constructors
NormalAnnotation(NormalDefinition, string, ImageEncodingFormat, Vector2, byte[])
Initializes a new instance of the NormalAnnotation class.
Declaration
public NormalAnnotation(NormalDefinition definition, string sensorId, ImageEncodingFormat imageFormat, Vector2 dimension, byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
NormalDefinition | definition | |
string | sensorId | |
ImageEncodingFormat | imageFormat | |
Vector2 | dimension | |
byte[] | buffer |
Properties
buffer
gets or sets the bytes of a normal image
Declaration
public byte[] buffer { get; set; }
Property Value
Type | Description |
---|---|
byte[] |
dimension
gets or sets the dimension of a normal image
Declaration
public Vector2 dimension { get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
imageFormat
gets or sets the image format of a normal image
Declaration
public ImageEncodingFormat imageFormat { get; set; }
Property Value
Type | Description |
---|---|
ImageEncodingFormat |
Methods
ToMessage(IMessageBuilder)
Add image information about the normal image to message builder
Declaration
public override void ToMessage(IMessageBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
IMessageBuilder | builder |