luminance distribution in image

20 views (last 30 days)
Sameh Salman
Sameh Salman on 4 Apr 2020
Answered: Image Analyst on 4 Apr 2020
Dear all,
is there any code to know luminance distribution in image?

Answers (1)

Image Analyst
Image Analyst on 4 Apr 2020
imhist(grayImage);
If it's an RGB image cast to gray scale
grayImage = rgb2gray(rgbImage);
imhist(grayImage);

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!