how to draw histogram of an RGB image

조회 수: 26 (최근 30일)
Parveiz Lone
Parveiz Lone 2019년 8월 3일
댓글: Parveiz Lone 2019년 8월 18일
  댓글 수: 1
Parveiz Lone
Parveiz Lone 2019년 8월 18일
My histogram is like that not similar to above histo..is there any problem or it may be version difference i am using 2016 version

댓글을 달려면 로그인하십시오.

채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 8월 3일
편집: KALYAN ACHARJYA 2019년 8월 3일
image_test=imread('Baboon.jpeg');
red_plane=image_test(:,:,1);
green_plane=image_test(:,:,2);
blue_plane=image_test(:,:,3);
[red_data pixel_level]=imhist(red_plane);
[green_data pixel_level]=imhist(green_plane);
[blue_data pixel_level]=imhist(blue_plane);
bar(pixel_level, red_data,'r');
hold on;
bar(pixel_level, green_data,'g');
bar(pixel_level, blue_data,'b');
Note: You can plot all in single matlab line code.
pic11.png
  댓글 수: 4
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 8월 4일
I have answered, please check.
Parveiz Lone
Parveiz Lone 2019년 8월 4일
That i have checked and that was perfect But now i need for second one ..scatter plot

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by