Brightness Resolution
We know that a digital image is a collection of pixels, arranged in 2D matrix format. The values held by these pixels are the intensity values. The intensity values are either integers or float numbers. These numbers represent the brightness on a relative scale. Thus we define the brightness (or luminous brightness) of a digital image as the measure of relative intensity values of the image pixels across the pixel array.
If we increase the brightness of an image, then the brightness of each pixel increase by the same amount. Similarly, when brightness is decreased, the brightness of each pixel is decreased by the same amount. Brightness is different from contrast.
The brightness of the image does not define the quality of the image.
Syntax:
org_image = imread(“GFGlogo.png”); //Read the image using imread( ) function
dark_image = org_image – 50; // To decrease the brightness
bright_image = org_image + 50; // To increase the brightness
imtool(image_variable, [ ]); // To display the image using imtool( ) inbuilt function
Example:
Matlab
% MATLAB code for reading the image % and convert into dark and bright images. org_image=imread( "GFGlogo.png" ); dark=uint8(org_image-50); bright=uint8(org_image+50); % Bring the all three images to see % the difference in brightness. imtool(org_image, []); imtool(dark, []); imtool(bright, []); |
Output:
How spatial resolution of a digitized image is different from brightness resolution in MATLAB?
A digital image is represented in the form of a 2D matrix of integers/floats, in which each element of the matrix represents pixel intensity. This intensity distribution of images depicted in the form of 2D matrices is called Spatial Domain. The intensity value depends on the bit-depth of the image. For example, if bit-depth is 8bit then pixel intensity can take values from 0 to 255.
Contact Us