NormalizedLandmark
class NormalizedLandmark : NSObject
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.
-
The x coordinates of the landmark.
Declaration
Swift
var x: Float { get }
-
The y coordinates of the landmark.
Declaration
Swift
var y: Float { get }
-
The z coordinates of the landmark.
Declaration
Swift
var z: Float { get }
-
Landmark visibility. Should be
nil
if not supported. Float score of whether landmark is visible or occluded by other objects. Landmark considered as invisible also if it is not present on the screen (out of scene bounds). Depending on the model, visibility value is either a sigmoid or an argument of sigmoid.Declaration
Swift
var visibility: NSNumber? { get }
-
Landmark presence. Should stay unset if not supported. Float score of whether landmark is present on the scene (located within scene bounds). Depending on the model, presence value is either a result of sigmoid or an argument of sigmoid function to get landmark presence probability.
Declaration
Swift
var presence: NSNumber? { get }
-
Initializes a new
NormalizedLandmark
object with the given x, y and z coordinates.Declaration
Swift
init(x: Float, y: Float, z: Float, visibility: NSNumber?, presence: NSNumber?)
Parameters
x
The x coordinates of the landmark.
y
The y coordinates of the landmark.
z
The z coordinates of the landmark.
Return Value
An instance of
NormalizedLandmark
initialized with the given x, y and z coordinates. -
Undocumented
-
Undocumented