(self, img)
Args:
            img (PIL Image): Image to be scaled.
        Returns:
            PIL Image: Rescaled image.
Args:
            img (PIL Image): Image to be scaled.
        Returns:
            PIL Image: Rescaled image.
Args : img ( PIL Image ) : Image to be scaled . Returns : PIL Image : Rescaled image .
def __call__(self, img):
        """
        Args:
            img (PIL Image): Image to be scaled.
        Returns:
            PIL Image: Rescaled image.
        """
        if img.ndim == 3:
            return misc.imresize(img, self.size, self.interpolation)
        elif img.ndim == 2:
            return misc.imresize(img, self.size, self.interpolation, 'F')
        else:
            RuntimeError('img should be ndarray with 2 or 3 dimensions. Got {}'.format(img.ndim))
def __call__ ( self , img ) : if img . ndim == 3 : return misc . imresize ( img , self . size , self . interpolation ) elif img . ndim == 2 : return misc . imresize ( img , self . size , self . interpolation , 'F' ) else : RuntimeError ( 'img should be ndarray with 2 or 3 dimensions. Got {}' . format ( img . ndim ) )