imgcv.common

Functions

check_image(image)

Check if the input is a numpy array

Module Contents

imgcv.common.check_image(image)

Check if the input is a numpy array

Parameters:

image (np.ndarray) – Input image to be transformed

Raises:
  • TypeError – If the input is not a numpy array

  • ValueError – If the input is not a grayscale or color image