Brightness and contrast

Brightness and contrast is an operation used to change the brightness and/or contrast of an image.

The number of new images generated from one input is determined by the Generate up to parameter.

The formula used here is:

α ⋅ i (x,y) + β

Where:

α - the parameter responsible for changing the contrast in the range [0.1-3.0]. (Minimum contrast and Maximum contrast)

i(x,y) - the value of the input pixel of the image with x and y coordinates

β - the parameter responsible for changing the brightness in the range [0,255]. (Brightness variation)

Each created image will have a brightness value which is the sum of the original value and a random value from the [-β, β] range. The parameter α, responsible for contrast, will also be randomly generated, taking into account the lower and upper values specified in the parameter (they cannot exceed the range specified above).

The number of new images generated from one input is determined by the Generate up to parameter.

Brightness and contrast

The Brightness and Contrast option can only be used once. Using it multiple times would result in a very large number of very similar images, without increasing the effectiveness of the models trained on them.