Take a look at this Answer : https://in.mathworks.com/matlabcentral/answers/111502-how-can-i-obtain-single-luminance-value-of-an-image
Hope this helps !!
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!