Increase and decrease the brightness of an image in MATLAB
The degree of the illuminance of the image is called brightness. How much light is coming out of an object defines the brightness of that object. If an object is placed in a dark room then very less light will be emitted by that object thus we can’t see the object properly. Now, what do we mean by brightness in the context of a digital image? It is defined as the intensity level of the pixels of the image. We know, 0 intensity means dark pixel and 1 intensity means white pixel. Therefore, brightness can be said as the average intensity value of all the pixels of an image.
image_var = imread(“path of image”);
image = image – C; where C is constant, like 50.
image = image + C; where C is constant, like 50.
imtool(image_var, [ ]);
To increase the brightness we have to increase the intensity of each pixel. Image is a collection of pixel values. So, they are additive in nature. We can just add a constant to every pixel value. To decrease the brightness we can just decrease a constant value from all the pixels of the image.