imgcv.transformations.negative
Functions
|
Check if the input is a numpy array |
|
Invert the pixel values of the input image |
Module Contents
- imgcv.transformations.negative.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
- imgcv.transformations.negative.negative_transform(image)
Invert the pixel values of the input image
- Parameters:
image (ndarray) – Input image to be transformed
- Formula:
s = 255 - r
- Raises:
TypeError – If the input is not a numpy array
ValueError – If the input is not a grayscale or color image
- Returns:
Transformed image
- Return type:
ndarray