luminance distribution in image

Dear all,
is there any code to know luminance distribution in image?

Answers (1)

imhist(grayImage);
If it's an RGB image cast to gray scale
grayImage = rgb2gray(rgbImage);
imhist(grayImage);

Asked:

on 4 Apr 2020

Answered:

on 4 Apr 2020

Community Treasure Hunt

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

Start Hunting!