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
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
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
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
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
def copy(self): new = Copyable.copy(self) new._fastpwa = deepcopy(self._fastpwa) return new