menpo/image/boolean.py
def constrain_to_landmarks(self, group=None, label=None, trilist=None):
        r"""
        Restricts this mask to be equal to the convex hull around the
        landmarks chosen. This is not a per-pixel convex hull, but instead
        relies on a triangulated approximation.

        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.constrain_to_pointcloud(self.landmarks[group][label],
                                     trilist=trilist)
r"""
        Restricts this mask to be equal to the convex hull around the
        landmarks chosen. This is not a per-pixel convex hull, but instead
        relies on a triangulated approximation.

        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 mask to be equal to the convex hull around the
landmarks chosen. This is not a per-pixel convex hull, but instead
relies on a triangulated approximation.

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 mask to be equal to the convex hull around the landmarks chosen . This is not a per - pixel convex hull but instead relies on a triangulated approximation . 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_to_landmarks(self, group=None, label=None, trilist=None):
        self.constrain_to_pointcloud(self.landmarks[group][label],
                                     trilist=trilist)
def constrain_to_landmarks ( self , group = None , label = None , trilist = None ) : self . constrain_to_pointcloud ( self . landmarks [ group ] [ label ] , trilist = trilist )
r"""
Restricts this mask to be equal to the convex hull around the
landmarks chosen.
r " " " Restricts this mask to be equal to the convex hull around the landmarks chosen .
r"""
        Restricts this mask to be equal to the convex hull around the
        landmarks chosen. This is not a per-pixel convex hull, but instead
        relies on a triangulated approximation.

        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