【发布时间】:2013-01-18 22:16:21
【问题描述】:
我使用 matlab 读取图像
input = imread ('sample.jpeg');
那我做
imhist(input);
它给出了这个错误:
??? 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。我知道第三维是用于颜色通道的,但是有什么方法可以显示直方图吗?谢谢。
【问题讨论】: