

def __setitem__(self, label, indices):
    '\n        Add a new label to the landmark group by adding a new set of indices\n\n        Parameters\n        ----------\n        label : `string`\n            Label of landmark.\n\n        indices : ``(K,)`` `ndarray`\n            Array of indices in to the pointcloud. Each index implies\n            membership to the label.\n        '
    mask = np.zeros(self._pointcloud.n_points, dtype=np.bool)
    mask[indices] = True
    self._labels_to_masks[label] = mask

dataset/ETHPy150Open menpo/menpo/menpo/landmark/base.py LandmarkGroup.__setitem__/original