关于在matlab中画直方图(imhist)?
怎么出错了,我的原始图象是彩色的,代码如下:
I=imread('line.bmp');
k=rgb2gray(I);
figure(1);
imshow(k);
figure(2);
imhist(k);

错误提示:
??? Attempt to execute SCRIPT line as a function.
Error in ==> stem at 72
h = [h specgraph.stemseries('YData',y(:,k), xdata{:},...
Error in ==> imhist>plot_result at 95
stem(x,y, 'Marker', 'none')
Error in ==> imhist at 83
plot_result(x, y, map, isScaled, classin);
Error in ==> Untitled at 7
imhist(k);
看不懂,不知道哪里错了?
I=imread('line.bmp');
k=rgb2gray(I);
figure(1);
imshow(k);
figure(2);
imhist(k);

错误提示:
??? Attempt to execute SCRIPT line as a function.
Error in ==> stem at 72
h = [h specgraph.stemseries('YData',y(:,k), xdata{:},...
Error in ==> imhist>plot_result at 95
stem(x,y, 'Marker', 'none')
Error in ==> imhist at 83
plot_result(x, y, map, isScaled, classin);
Error in ==> Untitled at 7
imhist(k);
看不懂,不知道哪里错了?
...全文
相关推荐
Matlab绘制图像直方图,不使用imhist
不使用imhist绘制灰度直方图,可以自己定义bins的数目
matlab画图像的二维直方图-matlab画图像的二维直方图.doc
matlab画图像的二维直方图-matlab画图像的二维直方图.doc 希望对大家有用! 管理员提示: 该程序能运行: Figure15.jpg
matlab统计图像-直方图
统计rgb图像灰度,以直方图形式显示。csdn上有人发了 类似的,估计是 ocr过来的,乱,有些错,我整理了一下。
直方图均衡化及matlab实现
1、使用matlab调用系统函数进行图片直方图均衡化 2、不调用系统直方图均衡化函数而自己编写函数代码实现图片的直方图均衡化
MATLAB直方图绘制代码
MATLAB直方图,条形图及杆状图绘制代码


图形处理/算法
