def deepcopy(self):
segmap = SegmentationMapOnImage(self.arr, shape=self.shape, nb_classes=self.nb_classes)<EOL>segmap.input_was = self.input_was<EOL>return segmap<EOL>
Create a deep copy of the segmentation map object.

Returns
-------
imgaug.SegmentationMapOnImage
    Deep copy.