Landmarkable¶
-
class
menpo.landmark.
Landmarkable
[source]¶ Bases:
Copyable
Abstract interface for object that can have landmarks attached to them. Landmarkable objects have a public dictionary of landmarks which are managed by a
LandmarkManager
. This means that different sets of landmarks can be attached to the same object. Landmarks can be N-dimensional and are expected to be some subclass ofPointCloud
orLabelledPointUndirectedGraph
.-
copy
()¶ Generate an efficient copy of this object.
Note that Numpy arrays and other
Copyable
objects onself
will be deeply copied. Dictionaries and sets will be shallow copied, and everything else will be assigned (no copy will be made).Classes that store state other than numpy arrays and immutable types should overwrite this method to ensure all state is copied.
- Returns
type(self)
– A copy of this object
-
property
has_landmarks
¶ Whether the object has landmarks.
- Type
bool
-
property
landmarks
¶ The landmarks object.
- Type
-
property
n_landmark_groups
¶ The number of landmark groups on this object.
- Type
int
-