经验首页 前端设计 程序设计 Java相关 移动开发 数据库/运维 软件/图像 大数据/云计算 其他经验
当前位置:技术经验 » 程序设计 » MATLAB » 查看文章
matlab 基本图像处理命令(1)
来源:cnblogs  作者:rollingball  时间:2019/3/22 8:57:12  对本文有异议

%原图像显示
picture_read = imread('1.jpg');
subplot(2,4,1);
figure0 = imshow(picture_read);
title('原图')


%图像灰度化
picture_gray = rgb2gray(picture_read);
subplot(2,4,2);
figure1=imshow(picture_gray);
title('图像灰度化')


%直方图均衡
picture_balance = histeq(picture_gray);
subplot(2,4,3);
figure2 = imshow(picture_balance);
title('直方图均衡')


%图像加上高斯噪声
picture_gaussian = imnoise(picture_gray,'gaussian');
subplot(2,4,4);
figure3 = imshow(picture_gaussian);
title('加上高斯噪声')


%图像加上椒盐噪声
picture_salt = imnoise(picture_gray,'salt & pepper');
subplot(2,4,5);
figure4 = imshow(picture_salt);
title('加上椒盐噪声')


%图像加上泊松噪声
picture_poisson = imnoise(picture_gray,'poisson');
subplot(2,4,6);
figure5 = imshow(picture_poisson);
title('加上泊松噪声');

%绘制灰度直方图

figure, imhist(picture_gray);

原文链接:http://www.cnblogs.com/rolingball-creation/p/10575597.html

 友情链接:直通硅谷  点职佳  北美留学生论坛

本站QQ群:前端 618073944 | Java 606181507 | Python 626812652 | C/C++ 612253063 | 微信 634508462 | 苹果 692586424 | C#/.net 182808419 | PHP 305140648 | 运维 608723728

W3xue 的所有内容仅供测试,对任何法律问题及风险不承担任何责任。通过使用本站内容随之而来的风险与本站无关。
关于我们  |  意见建议  |  捐助我们  |  报错有奖  |  广告合作、友情链接(目前9元/月)请联系QQ:27243702 沸活量
皖ICP备17017327号-2 皖公网安备34020702000426号