I want to adjust the brightness of an image to a certain value in OpenCV. For example, consider this image:
I calculate the brightness with: