input = imread ('sample.jpeg');
然後我做
imhist(input);
它給這個錯誤在MATLAB的圖像:
??? Error using ==> iptcheckinput
Function IMHIST expected its first input, I or X, to be two-dimensional.
Error in ==> imhist>parse_inputs at 275
iptcheckinput(a, {'double','uint8','logical','uint16','int16','single'}, ...
Error in ==> imhist at 57
[a, n, isScaled, top, map] = parse_inputs(varargin{:});
運行size(input)
後,我看到我的輸入圖像的大小300x200x3
。我知道第三個維度是用於顏色通道,但是有什麼方法可以顯示這個直方圖嗎?謝謝。
完全錯誤不工作... –