Hue
- class CVAugmentor.assets.augmentations._hue.Hue(hue_shift: int | float | None = None)
Shift the hue of an image by a specified or random value.
Usage
The class instance must be called.
- __init__(hue_shift: int | float | None = None) None
Constructor of the Hue class.
- Parameters:
hue_shift (int or float, optional) – Hue shift value. The default value is None. If None, a random hue shift value will be used.
- Return type:
None.
- _hue(image: Image) Image
The hue shift operation.
- Parameters:
image (Image.Image) – The image to be augmented.
- Returns:
img_hued – The hue-shifted image.
- Return type:
Image.Image