Normalized Landmark represents a point in 3D space with x, y, z coordinates. x and y are normalized to [0.0, 1.0] by the image width and height respectively. z represents the landmark depth, and the smaller the value the closer the landmark is to the camera. The magnitude of z uses roughly the same scale as x.
Public Constructors
Public Methods
static NormalizedLandmark |
create(float x, float y, float z)
Creates a normalized landmark from x, y, z coordinates.
|
static NormalizedLandmark | |
static NormalizedLandmark |
createFromProto(LandmarkProto.NormalizedLandmark landmarkProto)
Creates a normalized landmark from a normalized landmark proto.
|
static List<NormalizedLandmark> |
createListFromProto(LandmarkProto.NormalizedLandmarkList landmarkListProto)
Creates a list of normalized landmarks from a
ERROR(/NormalizedLandmarkList) . |
final boolean | |
final int |
hashCode()
|
abstract Optional<Float> |
presence()
|
final String |
toString()
|
abstract Optional<Float> | |
abstract float |
x()
|
abstract float |
y()
|
abstract float |
z()
|
Inherited Methods
Public Constructors
public NormalizedLandmark ()
Public Methods
public static NormalizedLandmark create (float x, float y, float z)
Creates a normalized landmark from x, y, z coordinates.
Parameters
x | |
---|---|
y | |
z |
public static NormalizedLandmark create (float x, float y, float z, Optional<Float> visibility, Optional<Float> presence)
Creates a normalized landmark from x, y, z coordinates with optional visibility and presence.
Parameters
x | |
---|---|
y | |
z | |
visibility | |
presence |
public static NormalizedLandmark createFromProto (LandmarkProto.NormalizedLandmark landmarkProto)
Creates a normalized landmark from a normalized landmark proto.
Parameters
landmarkProto |
---|
public static List<NormalizedLandmark> createListFromProto (LandmarkProto.NormalizedLandmarkList landmarkListProto)
Creates a list of normalized landmarks from a ERROR(/NormalizedLandmarkList)
.
Parameters
landmarkListProto |
---|