public final class ResolvedLabel
extends Object
Exact baked RGBA label evidence and placement.
-
Constructor Summary
Constructors
ResolvedLabel(int width,
int height,
byte[] rgba8,
double y,
boolean primary)
Creates immutable copied label pixels and placement.
-
Method Summary
int
Returns label height in pixels.
boolean
Returns whether this is the named object's primary label.
byte[]
Returns a defensive copy of the row-major RGBA label image.
int
Returns label width in pixels.
double
Returns label placement Y in world blocks.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ResolvedLabel
public ResolvedLabel(int width,
int height,
byte[] rgba8,
double y,
boolean primary)
Creates immutable copied label pixels and placement.
- Parameters:
width - pixel width in 1..65535
height - pixel height in 1..65535
rgba8 - exactly width*height*4 row-major RGBA bytes, copied
y - finite label placement Y coordinate in world blocks
primary - whether this is the named object's primary label
-
Method Details
-
width
public int width()
Returns label width in pixels.
-
height
public int height()
Returns label height in pixels.
-
rgba8
public byte[] rgba8()
Returns a defensive copy of the row-major RGBA label image.
-
y
public double y()
Returns label placement Y in world blocks.
-
primary
public boolean primary()
Returns whether this is the named object's primary label.