menpo/image/masked.py
def constrain_mask_to_landmarks(self, group=None, label=None,
                                    trilist=None):
        r"""
        Restricts this image's mask to be equal to the convex hull around the
        landmarks chosen. This is not a per-pixel convex hull, but is instead
        estimated by a triangulation of the points that contain the convex
        hull.

        Parameters
        ----------
        group : `str`, optional
            The key of the landmark set that should be used. If ``None``,
            and if there is only one set of landmarks, this set will be used.
        label: `str`, optional
            The label of of the landmark manager that you wish to use. If no
            label is passed, the convex hull of all landmarks is used.
        trilist: ``(t, 3)`` `ndarray`, optional
            Triangle list to be used on the landmarked points in selecting
            the mask region. If None defaults to performing Delaunay
            triangulation on the points.
        """
        self.mask.constrain_to_pointcloud(self.landmarks[group][label],
                                          trilist=trilist)
r"""
        Restricts this image's mask to be equal to the convex hull around the
        landmarks chosen. This is not a per-pixel convex hull, but is instead
        estimated by a triangulation of the points that contain the convex
        hull.

        Parameters
        ----------
        group : `str`, optional
            The key of the landmark set that should be used. If ``None``,
            and if there is only one set of landmarks, this set will be used.
        label: `str`, optional
            The label of of the landmark manager that you wish to use. If no
            label is passed, the convex hull of all landmarks is used.
        trilist: ``(t, 3)`` `ndarray`, optional
            Triangle list to be used on the landmarked points in selecting
            the mask region. If None defaults to performing Delaunay
            triangulation on the points.
        
r"""
Restricts this image's mask to be equal to the convex hull around the
landmarks chosen. This is not a per-pixel convex hull, but is instead
estimated by a triangulation of the points that contain the convex
hull.

Parameters

group : `str`, optional
The key of the landmark set that should be used. If ``None``,
and if there is only one set of landmarks, this set will be used.
label: `str`, optional
The label of of the landmark manager that you wish to use. If no
label is passed, the convex hull of all landmarks is used.
r " " " Restricts this image ' s mask to be equal to the convex hull around the landmarks chosen . This is not a per - pixel convex hull but is instead estimated by a triangulation of the points that contain the convex hull . Parameters group : ` str ` optional The key of the landmark set that should be used . If ` ` None ` ` and if there is only one set of landmarks this set will be used . label : ` str ` optional The label of of the landmark manager that you wish to use . If no label is passed the convex hull of all landmarks is used .
def constrain_mask_to_landmarks(self, group=None, label=None,
                                    trilist=None):
        self.mask.constrain_to_pointcloud(self.landmarks[group][label],
                                          trilist=trilist)
def constrain_mask_to_landmarks ( self , group = None , label = None , trilist = None ) : self . mask . constrain_to_pointcloud ( self . landmarks [ group ] [ label ] , trilist = trilist )
r"""
Restricts this image's mask to be equal to the convex hull around the
landmarks chosen.
r " " " Restricts this image ' s mask to be equal to the convex hull around the landmarks chosen .
r"""
        Restricts this image's mask to be equal to the convex hull around the
        landmarks chosen. This is not a per-pixel convex hull, but is instead
        estimated by a triangulation of the points that contain the convex
        hull.

        Parameters
        ----------
        group : `str`, optional
            The key of the landmark set that should be used. If ``None``,
            and if there is only one set of landmarks, this set will be used.
        label: `str`, optional
            The label of of the landmark manager that you wish to use. If no
            label is passed, the convex hull of all landmarks is used.
        trilist: ``(t, 3)`` `ndarray`, optional
            Triangle list to be used on the landmarked points in selecting
            the mask region. If None defaults to performing Delaunay
            triangulation on the points.
        """
self
group
label
trilist