imhist函数的错误
大家好!我在做MATLAB有关直方图时遇到一个有关路径的问题!当调用系统自带的图像时没问题;程序如下:>> I=imread('pout.tif');
>> subplot(121);
>> imshow(I);
>> subplot(122);
>> imhist(I);
>> J=imread('E:\Matlab7.x图像处理 光盘内容\1.bmp');
>> subplot(121);
>> imshow(J);
>> subplot(122);
>> imshow(J);
>> imhist(J);
??? Error using ==> c:/matlab6p5/toolbox/images/images/private/checkinput (check_attributes)
Function imhist expected its first input argument, I or X,
to be two-dimensional.
Error in ==> C:\MATLAB6p5\toolbox\images\images\private\checkinput.m
On line 37==> check_attributes(A, attributes, function_name, variable_name, ...
Error in ==> C:\MATLAB6p5\toolbox\images\images\imhist.m (parse_inputs)
On line 173==> checkinput(a, 'double uint8 logical uint16', '2d', mfilename, 'I or X', 1);
Error in ==> C:\MATLAB6p5\toolbox\images\images\imhist.m
On line 49==> = parse_inputs(varargin{:});
谁能帮我看一下其中的错误?谢谢了! 原帖由 纪晓宁 于 2007-5-13 19:50 发表 http://www.chinavib.com/forum/images/common/back.gif
大家好!我在做MATLAB有关直方图时遇到一个有关路径的问题!当调用系统自带的图像时没问题;程序如下:
>> I=imread('pout.tif');
>> subplot(121);
>> imshow(I);
>> subplot(122);
>> imhist(I);
>> J=i ...
Function imhist expected its first input argument, I or X,
to be two-dimensional.
写得很清楚了
页:
[1]