how to show histogram of RGB

3 views (last 30 days)
hudazin
hudazin on 7 Oct 2015
Answered: Walter Roberson on 7 Oct 2015
and present 3channels simultaneously.

Answers (1)

Walter Roberson
Walter Roberson on 7 Oct 2015
number_of_bins = randi(25);
R = Yourimage(:,:,1);
G = YourImage(:,:,2);
histogram(R(:), number_of_bins);
hold on
histogram(G(:), number_of_bins);

Community Treasure Hunt

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

Start Hunting!