Check out example codes for "increase the brightness of an image matlab". It will help you in understanding the concepts better.
Code Example 1
I = imread('peppers.png') ;
I1 = I+50 ;
figure(1) ; imshow(I) ;
figure(2) ; imshow(I1) ;
Learn ReactJs, React Native from akashmittal.com