img = imread('pic.jpg','jpg');
r = img(:,:,1);
g = img(:,:,2);
b = img(:,:,3);
subplot(3,1,1);
imhist(r);
subplot(3,1,2);
imhist(g);
subplot(3,1,3);
imhist(b);
我如何改變柱狀圖的顏色以紅,綠,藍?
如何更改出現的窗口大小?
編輯:
路易斯·馬吉爾的有關窗口作品尺寸的答案,但如果我想只改變窗口的高度,離開其他parameneters(X,Y,寬度)不變的是什麼?
你可以找到這個答案的相關有色這個柱狀圖的例子:http://stackoverflow.com/questions/3961971/how-do-i-re-implement-a-color-based-histogram- do-feature-extraction-based-col/3962867#3962867 – Amro 2010-10-21 19:58:51
這很好,但我必須使用imhist。 – 2010-10-21 22:32:34
我剛剛意識到這是你的問題,對不起;) – Amro 2010-10-21 23:24:42