Negative
- class CVAugmentor.assets.augmentations._negative.Negative
Convert the image to negative. This operation converts the image to negative by inverting its pixel values.
Usage
The class instance must be called.
- __init__() None
Constructor of the Negative class.
- Parameters:
None.
- Return type:
None.
- _negative(image: Image) Image
The negative operation.
- Parameters:
image (Image.Image) – The image to be augmented.
- Returns:
negative_image – The negative image.
- Return type:
Image.Image