关于在matlab中画直方图(imhist)?

chengzhuIx chengzhuIx 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
怎么出错了,我的原始图象是彩色的,代码如下:
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);

看不懂,不知道哪里错了?
...全文
评论 10
收藏 已收藏
分享
返回顶部
chengzhuIx
图形处理/算法 19,463 成员 50,678 内容