0
我有一個形象,我想計算它historgram,但是這個代碼返回錯誤給我的,imhist返回錯誤與MATLAB BMP數據
I=imread('image number one.bmp');
imhist(I);
和錯誤是
??? Error using ==> iptcheckinput
Function IMHIST expected its first input, I or X, to be two-dimensional.
Error in ==> imhist>parse_inputs at 281
iptcheckinput(a, {'double','uint8','int8','logical','uint16','int16','single','uint32',
'int32'}, ...
Error in ==> imhist at 59
[a, n, isScaled, top, map] = parse_inputs(varargin{:});
欣賞任何幫助
你可以發佈圖片嗎? – 2013-05-14 14:31:54
imhist只能處理2-D輸入。如果你的圖像是彩色圖像,你的圖像將是3D圖像。 – Navan 2013-05-14 14:51:31