def resize(self, sizes, interpolation="<STR_LIT>"):
arr_resized = ia.imresize_single_image(self.arr, sizes, interpolation=interpolation)<EOL>arr_resized = np.clip(arr_resized, <NUM_LIT:0.0>, <NUM_LIT:1.0>)<EOL>segmap = SegmentationMapOnImage(arr_resized, shape=self.shape)<EOL>segmap.input_was = self.input_was<EOL>return segmap<EOL>
Resize the segmentation map array to the provided size given the provided interpolation.

Parameters
----------
sizes : float or iterable of int or iterable of float
    New size of the array in ``(height, width)``.
    See :func:`imgaug.imgaug.imresize_single_image` for details.

interpolation : None or str or int, optional
    The interpolation to use during resize.
    See :func:`imgaug.imgaug.imresize_single_image` for details.
    Note: The segmentation map is internally stored as multiple float-based heatmaps,
    making smooth interpolations potentially more reasonable than nearest neighbour
    interpolation.

Returns
-------
segmap : imgaug.SegmentationMapOnImage
    Resized segmentation map object.