augment.contrast

Description

Adjusts the contrast of an image.

class Node(config=None, **kwargs)[source]

Adjusts the contrast of an image, by multiplying with a gain/alpha parameter.

Inputs

img (numpy.ndarray): A NumPy array of shape \((height, width, channels)\) containing the image data in BGR format.

Outputs

img (numpy.ndarray): A NumPy array of shape \((height, width, channels)\) containing the image data in BGR format.

Configs

alpha (float) – [0.0, 3.0], default = 1.0.
Increasing the value of alpha increases the contrast.