pose_human36M_32_to_pose_human36M_17¶
-
menpo.landmark.pose_human36M_32_to_pose_human36M_17(pcloud)[source]¶ Apply the human3.6M 17-point semantic labels (based on the original semantic labels of Human3.6 but removing the annotations corresponding to duplicate points, soles and palms), originally 32-points.
The semantic labels applied are as follows:
pelvis
right_leg
left_leg
spine
head
left_arm
right_arm
torso
References
- Parameters
x (
LabelledPointUndirectedGraphorPointCloudor ndarray) – The input labelled point graph, pointcloud, subclass of those or array to label. If a pointcloud is passed, then only the connectivity information is propagated to the pointcloud (a subclass ofPointCloudmay be returned).return_mapping (bool, optional) – Only applicable if a
PointCloudor ndarray is passed. Returns the mapping dictionary which maps labels to indices into the resultingPointCloud(which is then used to for building aLabelledPointUndirectedGraph. This parameter is only provided for internal use so that other labellers can piggyback off one another.
- Returns
x_labelled (
LabelledPointUndirectedGraphorPointCloud) – If aLabelledPointUndirectedGraphwas passed, aLabelledPointUndirectedGraphis returned. This labelled pointgraph will contain specific labels and these labels may refer to sub-pointclouds with specific connectivity information.If a
PointCloudwas passed, aPointCloudis returned. Only the connectivity information is propagated to the pointcloud (a subclass ofPointCloudmay be returned).mapping_dict (ordereddict {str -> int ndarray}, optional) – Only returned if
return_mapping==True. Used for buildingLabelledPointUndirectedGraph.
:raises :
LabellingError: If the given labelled point graph/pointcloud contains less than the expected number of points.