def resize(self, size, interp='nearest'):
        """Resize the image.

        Parameters
        ----------
        size : int, float, or tuple
            * int   - Percentage of current size.
            * float - Fraction of current size.
            * tuple - Size of the output image.

        interp : :obj:`str`, optional
            Interpolation to use for re-sizing ('nearest', 'lanczos', 'bilinear',
            'bicubic', or 'cubic')
        """
        resized_data = sm.imresize(self.data, size, interp=interp, mode='L')
        return SegmentationImage(resized_data, self._frame)
def resize ( self , size , interp = 'nearest' ) : resized_data = sm . imresize ( self . data , size , interp = interp , mode = 'L' ) return SegmentationImage ( resized_data , self . _frame )
Resize the image.

        Parameters
        ----------
        size : int, float, or tuple
            * int   - Percentage of current size.
            * float - Fraction of current size.
            * tuple - Size of the output image.

        interp : :obj:`str`, optional
            Interpolation to use for re-sizing ('nearest', 'lanczos', 'bilinear',
            'bicubic', or 'cubic')