eye_ibug_close_17_to_eye_ibug_close_17_trimesh¶
-
menpo.landmark.
eye_ibug_close_17_to_eye_ibug_close_17_trimesh
(x, return_mapping=False)[source]¶ Apply the IBUG 17-point close eye semantic labels, with trimesh connectivity.
The semantic labels applied are as follows:
- tri
Parameters: - x (
LandmarkGroup
orPointCloud
or ndarray) – The input landmark group, pointcloud or array to label. If a pointcloud is passed, then only the connectivity information is propagated to the pointcloud (a subclass ofPointCloud
may be returned). - return_mapping (bool, optional) – Only applicable if a
PointCloud
or ndarray is passed. Returns the mapping dictionary which maps labels to indices into the resultingPointCloud
(which is then used to for building aLandmarkGroup
. This parameter is only provided for internal use so that other labellers can piggyback off one another.
Returns: x_labelled (
LandmarkGroup
orPointCloud
) – If aLandmarkGroup
was passed, aLandmarkGroup
is returned. This landmark group will contain specific labels and these labels may refer to sub-pointclouds with specific connectivity information.If a
PointCloud
was passed, aPointCloud
is returned. Only the connectivity information is propagated to the pointcloud (a subclass ofPointCloud
may be returned).mapping_dict (ordereddict {str -> int ndarray}, optional) – Only returned if
return_mapping==True
. Used for buildingLandmarkGroup
.
Raises: LabellingError
– If the given landmark group/pointcloud contains less than the expected number of points.