组合图像直方图

时间:2014-06-19 14:48:14

标签: image matlab image-processing histogram matlab-figure

我只想在一个直方图上创建三个灰度图像的组合直方图。当我运行下面的代码时,x轴与每个直方图重叠,所以基本上我有三个相同的x轴。我也希望能够用不同的颜色发信号通知不同的图片。这是我的代码:

subplot(4,3,1);
image1=imread('93-94_1-0-32(302).png');
imshow(image1);
gray1=rgb2gray(image1);

subplot(4,3,2);
image2=imread('90-91_1-0-32(101).png');
imshow(image2);
gray2=rgb2gray(image2);

subplot(4,3,3);
image3=imread('55-56_1.2-0-18(Sugar).png');
imshow(image3);
gray3=rgb2gray(image3);

subplot(4,3,[4,5,6]);
imhist(gray1);
hold on;
imhist(gray2);
hold on;
imhist(gray3);

0 个答案:

没有答案