コード例 #1
0
    def copy(self):
        r"""
        Generate an efficient copy of this :map:`LabelledPointUndirectedGraph`.

        Returns
        -------
        ``type(self)``
            A copy of this object
        """
        new = Copyable.copy(self)
        for k, v in new._labels_to_masks.items():
            new._labels_to_masks[k] = v.copy()
        return new
コード例 #2
0
    def copy(self):
        r"""
        Generate an efficient copy of this :map:`LandmarkGroup`.

        Returns
        -------
        ``type(self)``
            A copy of this object
        """
        new = Copyable.copy(self)
        for k, v in new._labels_to_masks.items():
            new._labels_to_masks[k] = v.copy()
        return new
コード例 #3
0
ファイル: base.py プロジェクト: HaoyangWang/menpo
    def copy(self):
        r"""
        Generate an efficient copy of this :map:`LandmarkGroup`.

        Returns
        -------
        ``type(self)``
            A copy of this object
        """
        new = Copyable.copy(self)
        for k, v in new._labels_to_masks.items():
            new._labels_to_masks[k] = v.copy()
        return new
コード例 #4
0
    def copy(self):
        r"""
        Generate an efficient copy of this :map:`LabelledPointUndirectedGraph`.

        Returns
        -------
        ``type(self)``
            A copy of this object
        """
        new = Copyable.copy(self)
        for k, v in new._labels_to_masks.items():
            new._labels_to_masks[k] = v.copy()
        return new
コード例 #5
0
    def copy(self):
        r"""
        Generate an efficient copy of this :map:`LandmarkManager`.

        Returns
        -------
        ``type(self)``
            A copy of this object
        """
        # The dict will be shallow copied - rectify that here
        new = Copyable.copy(self)
        for k, v in new._landmark_groups.items():
            new._landmark_groups[k] = v.copy()
        return new
コード例 #6
0
ファイル: base.py プロジェクト: HaoyangWang/menpo
    def copy(self):
        r"""
        Generate an efficient copy of this :map:`LandmarkManager`.

        Returns
        -------
        ``type(self)``
            A copy of this object

        """
        # do a normal copy. The dict will be shallow copied - rectify that here
        new = Copyable.copy(self)
        for k, v in new._landmark_groups.items():
            new._landmark_groups[k] = v.copy()
        return new
コード例 #7
0
ファイル: base.py プロジェクト: yymath/menpo
 def copy(self):
     # For now, we need to reset the weakref on ImageFeatures on each copy.
     new = Copyable.copy(self)
     new.features = ImageFeatures(new)
     return new
コード例 #8
0
 def copy(self):
     new = Copyable.copy(self)
     new._fastpwa = deepcopy(self._fastpwa)
     return new
コード例 #9
0
ファイル: base.py プロジェクト: yymath/menpo
 def copy(self):
     # For now, we need to reset the weakref on ImageFeatures on each copy.
     new = Copyable.copy(self)
     new.features = ImageFeatures(new)
     return new