Adjust the brightness of an image

transform_adjust_brightness(img, brightness_factor)

Arguments

img

A magick-image, array or torch_tensor.

brightness_factor

(float): How much to adjust the brightness. Can be any non negative number. 0 gives a black image, 1 gives the original image while 2 increases the brightness by a factor of 2.