(self, img)
return np.array(transform(pil))
Args:
            img (numpy.ndarray (C x H x W)): Input image.

        Returns:
            img (numpy.ndarray (C x H x W)): Color jittered image.
Args:
            img (numpy.ndarray (C x H x W)): Input image.
Args : img ( numpy . ndarray ( C x H x W )) : Input image .
def __call__(self, img):
        """
        Args:
            img (numpy.ndarray (C x H x W)): Input image.

        Returns:
            img (numpy.ndarray (C x H x W)): Color jittered image.
        """
        if not(_is_numpy_image(img)):
            raise TypeError('img should be ndarray. Got {}'.format(type(img)))

        pil = Image.fromarray(img)
        transform = self.get_params(self.brightness, self.contrast,
                                    self.saturation, self.hue)
        return np.array(transform(pil))
def __call__ ( self , img ) : if not ( _is_numpy_image ( img ) ) : raise TypeError ( 'img should be ndarray. Got {}' . format ( type ( img ) ) ) pil = Image . fromarray ( img ) transform = self . get_params ( self . brightness , self . contrast , self . saturation , self . hue ) return np . array ( transform ( pil ) )