How to show histogram of RGB image in Matlab?

后端 未结 5 1131
离开以前
离开以前 2020-12-05 18:46

I read an image in matlab using

input = imread (\'sample.jpeg\');

Then I do

imhist(input);

It gives this

5条回答
  •  庸人自扰
    2020-12-05 19:33

    Histogram is useful to analyze pixel distribution in an image. Histogram plots number of pixel in an image with respect to intensity value.

    img1=imread('image.jpg');
    hist(img1);
    

提交回复
热议问题