def __call__(self, image):
    (width, height) = self.get_size(image.shape[1], image.shape[0])
    resized = Image.fromarray(image).resize((width, height), self.__image_interpolation_method)
    return np.array(resized)
def __call__(self, image):
    (width, height) = self.get_size(image.shape[1], image.shape[0])
    resized = Image.fromarray(image).resize((width, height), self.__image_interpolation_method)
    return np.array(resized)