数字图像处理中利用matlab边缘检测

  • 虫虫123456
    了解作者
  • matlab
    开发工具
  • 617.2KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 5 积分
    下载积分
  • 0
    下载次数
  • 2022-06-24 23:45
    上传日期
数字图像处理中利用matlab完成边缘检测、
(8).DIP_边缘检测.rar
  • (8).DIP_边缘检测
  • Matlab源文件
  • Untitled.m
    5.4KB
  • 处理结果图像
  • 边缘明显的图拉普拉斯算子检测边缘.jpg
    15.8KB
  • 边缘不明显的图Prewitt算子检测边缘.jpg
    16.5KB
  • 边缘明显的图Sobel算子检测边缘.jpg
    10.9KB
  • 边缘明显的图kirsch算子检测边缘.jpg
    21.8KB
  • 边缘明显的图prewitt算子检测边缘.jpg
    10.6KB
  • 边缘不明显的图拉普拉斯算子检测边缘.jpg
    30.8KB
  • 边缘明显的图Roberts算子检测边缘.jpg
    10.7KB
  • 边缘不明显的图Roberts算子检测边缘.jpg
    12.5KB
  • image1.fig
    81.1KB
  • image2.fig
    95.7KB
  • 边缘不5明显的图kirsch算子检测边缘.jpg
    35.8KB
  • 边缘不明显的图Sobel算子检测边缘.jpg
    17KB
  • 原始图像
  • 6-Cman.tif
    64.2KB
  • smandril.tif
    64.2KB
  • 程序说明文档.doc
    111.5KB
  • 本次作业报告.doc
    118.5KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/62b5de4323dfab40400efaff/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/62b5de4323dfab40400efaff/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0"> <span class="fs1"> <span class="ff2 fs2">&#20316;&#19994;&#25253;&#21578;</span></span></div><div class="t m0 x1 h3 y3 ff2 fs2 fc0 sc0 ls0 ws0">&#19968;&#65294;<span class="_ _0"> </span><span class="fs1">&#31243;&#24207;&#30340;&#30446;&#30340;</span></div><div class="t m0 x2 h4 y4 ff2 fs1 fc0 sc0 ls0 ws0">&#20998;&#21035;<span class="_ _1"></span>&#37319;&#29992;<span class="_ _2"> </span><span class="ff1">Roberts<span class="_ _2"> </span></span>&#31639;&#23376;<span class="_ _1"></span>&#12289;<span class="ff1">Sobel<span class="_ _2"> </span></span>&#31639;&#23376;<span class="_ _1"></span>&#12289;<span class="ff1">Prewitt<span class="_"> </span></span>&#31639;&#23376;&#12289;<span class="_ _1"></span><span class="ff1">Kirsh<span class="_ _3"> </span></span>&#31639;&#23376;<span class="_ _1"></span>&#65288;<span class="ff1">8<span class="_"> </span></span>&#26041;&#21521;&#65289;<span class="_ _1"></span>&#12289;</div><div class="t m0 x1 h4 y5 ff2 fs1 fc0 sc0 ls0 ws0">&#25289;<span class="_ _1"></span>&#26222;&#25289;<span class="_ _1"></span>&#26031;&#31639;<span class="_ _1"></span>&#23376;<span class="_ _1"></span>&#23545;<span class="_ _3"> </span><span class="ff1">2<span class="_"> </span></span>&#24133;&#28784;<span class="_ _1"></span>&#24230;&#22270;<span class="_ _1"></span>&#20687;&#36827;<span class="_ _1"></span>&#34892;<span class="_ _1"></span>&#36793;&#32536;<span class="_ _1"></span>&#26816;<span class="_ _1"></span>&#27979;&#12290;<span class="_ _1"></span>&#20854;&#20013;<span class="_ _1"></span>&#65292;<span class="_ _1"></span>&#19968;&#24133;<span class="_ _1"></span>&#22270;<span class="_ _1"></span>&#20687;&#36793;<span class="_ _1"></span>&#32536;&#27604;<span class="_ _1"></span>&#36739;<span class="_ _1"></span>&#26126;&#26174;<span class="_ _1"></span>&#65292;</div><div class="t m0 x1 h4 y6 ff2 fs1 fc0 sc0 ls0 ws0">&#21478;&#19968;&#24133;&#21017;&#27604;&#36739;&#8220;&#24179;&#22374;&#8221;&#12290;&#23545;&#36825;&#20123;&#26041;&#27861;&#32473;&#20986;&#31616;&#35201;&#35780;&#20215;&#12290;</div><div class="t m0 x1 h3 y7 ff2 fs2 fc0 sc0 ls0 ws0">&#20108;&#65294;<span class="_ _0"> </span><span class="fs1">&#36816;&#34892;&#29615;&#22659;</span></div><div class="t m0 x2 h4 y8 ff1 fs1 fc0 sc0 ls0 ws0">Matlab<span class="_ _3"> </span><span class="ff2">&#24179;&#21488;&#65292;&#32534;&#20889;</span>.m<span class="_ _3"> </span><span class="ff2">&#31243;&#24207;&#23454;&#29616;</span></div><div class="t m0 x1 h3 y9 ff2 fs2 fc0 sc0 ls0 ws0">&#19977;&#65294;<span class="_ _0"> </span><span class="fs1">&#31243;&#24207;&#20195;&#30721;</span></div><div class="t m0 x1 h5 ya ff1 fs1 fc0 sc0 ls0 ws0">clear;</div><div class="t m0 x1 h4 yb ff1 fs1 fc0 sc0 ls0 ws0">%<span class="ff2">&#35835;&#21462;&#22270;&#20687;</span></div><div class="t m0 x1 h4 yc ff1 fs1 fc0 sc0 ls0 ws0">add_name1 = input('<span class="ff2">&#35831;&#36755;&#20837;&#19968;&#24133;&#36793;&#32536;&#26126;&#26174;&#30340;&#28784;&#24230;&#22270;&#20687;&#30340;&#36335;&#24452;&#21644;&#21517;&#23383;</span>&gt; ','s');</div><div class="t m0 x1 h5 yd ff1 fs1 fc0 sc0 ls0 ws0">image1 = imread(add_name1);</div><div class="t m0 x1 h4 ye ff1 fs1 fc0 sc0 ls0 ws0">add_name2 = input('<span class="ff2">&#35831;&#36755;&#20837;&#19968;&#24133;&#36793;&#32536;&#19981;&#26126;&#26174;&#30340;&#28784;&#24230;&#22270;&#20687;&#30340;&#36335;&#24452;&#21644;&#21517;&#23383;</span>&gt; ','s');</div><div class="t m0 x1 h5 yf ff1 fs1 fc0 sc0 ls0 ws0">image2 = imread(add_name2);</div><div class="t m0 x1 h4 y10 ff1 fs1 fc0 sc0 ls0 ws0">%<span class="_ _1"></span><span class="ff2">&#29992;<span class="_ _3"> </span></span>Roberts<span class="_"> </span><span class="ff2">&#31639;<span class="_ _1"></span>&#23376;<span class="_ _1"></span>&#12289;<span class="_ _1"></span></span>Sobel<span class="_ _3"> </span><span class="ff2">&#31639;<span class="_ _1"></span>&#23376;<span class="_ _1"></span>&#12289;<span class="_ _1"></span></span>Prewitt<span class="_"> </span><span class="ff2">&#31639;&#23376;<span class="_ _1"></span>&#12289;<span class="_ _1"></span>&#25289;<span class="_ _1"></span>&#26222;<span class="_ _1"></span>&#25289;<span class="_ _1"></span>&#26031;<span class="_ _1"></span>&#31639;&#23376;<span class="_ _1"></span>&#23545;<span class="_ _4"> </span></span>2<span class="_ _3"> </span><span class="ff2">&#24133;<span class="_ _1"></span>&#28784;<span class="_ _1"></span>&#24230;<span class="_ _1"></span>&#22270;<span class="_ _1"></span>&#20687;<span class="_ _1"></span>&#36827;</span></div><div class="t m0 x1 h4 y11 ff2 fs1 fc0 sc0 ls0 ws0">&#34892;&#36793;&#32536;&#26816;&#27979;</div><div class="t m0 x1 h5 y12 ff1 fs1 fc0 sc0 ls0 ws0">ed_rob1 = edge(image1,'roberts');</div><div class="t m0 x1 h4 y13 ff1 fs1 fc0 sc0 ls0 ws0">imwrite(ed_rob1,'<span class="ff2">&#36793;&#32536;&#26126;&#26174;&#30340;&#22270;<span class="_ _3"> </span></span>Roberts<span class="_ _3"> </span><span class="ff2">&#31639;&#23376;&#26816;&#27979;&#36793;&#32536;</span>.jpg');</div><div class="t m0 x1 h5 y14 ff1 fs1 fc0 sc0 ls0 ws0">ed_sob1 = edge(image1,'sobel');</div><div class="t m0 x1 h4 y15 ff1 fs1 fc0 sc0 ls0 ws0">imwrite(ed_sob1,'<span class="ff2">&#36793;&#32536;&#26126;&#26174;&#30340;&#22270;<span class="_ _3"> </span></span>Sobel<span class="_ _3"> </span><span class="ff2">&#31639;&#23376;&#26816;&#27979;&#36793;&#32536;</span>.jpg');</div><div class="t m0 x1 h5 y16 ff1 fs1 fc0 sc0 ls0 ws0">ed_pre1 = edge(image1,'prewitt');</div><div class="t m0 x1 h4 y17 ff1 fs1 fc0 sc0 ls0 ws0">imwrite(ed_pre1,'<span class="ff2">&#36793;&#32536;&#26126;&#26174;&#30340;&#22270;<span class="_ _3"> </span></span>prewitt<span class="_ _3"> </span><span class="ff2">&#31639;&#23376;&#26816;&#27979;&#36793;&#32536;</span>.jpg');</div><div class="t m0 x1 h5 y18 ff1 fs1 fc0 sc0 ls0 ws0">ed_log1 = edge(image1,'log');</div><div class="t m0 x1 h4 y19 ff1 fs1 fc0 sc0 ls0 ws0">imwrite(ed_log1,'<span class="ff2">&#36793;&#32536;&#26126;&#26174;&#30340;&#22270;&#25289;&#26222;&#25289;&#26031;&#31639;&#23376;&#26816;&#27979;&#36793;&#32536;</span>.jpg');</div><div class="t m0 x1 h5 y1a ff1 fs1 fc0 sc0 ls0 ws0">ed_rob2 = edge(image2,'roberts');</div><div class="t m0 x1 h4 y1b ff1 fs1 fc0 sc0 ls0 ws0">imwrite(ed_rob2,'<span class="ff2">&#36793;&#32536;&#19981;&#26126;&#26174;&#30340;&#22270;<span class="_ _3"> </span></span>Roberts<span class="_ _3"> </span><span class="ff2">&#31639;&#23376;&#26816;&#27979;&#36793;&#32536;</span>.jpg');</div><div class="t m0 x1 h5 y1c ff1 fs1 fc0 sc0 ls0 ws0">ed_sob2 = edge(image2,'sobel');</div><div class="t m0 x1 h4 y1d ff1 fs1 fc0 sc0 ls0 ws0">imwrite(ed_sob2,'<span class="ff2">&#36793;&#32536;&#19981;&#26126;&#26174;&#30340;&#22270;<span class="_ _3"> </span></span>Sobel<span class="_ _3"> </span><span class="ff2">&#31639;&#23376;&#26816;&#27979;&#36793;&#32536;</span>.jpg');</div><div class="t m0 x1 h5 y1e ff1 fs1 fc0 sc0 ls0 ws0">ed_pre2 = edge(image2,'prewitt');</div><div class="t m0 x1 h4 y1f ff1 fs1 fc0 sc0 ls0 ws0">imwrite(ed_pre2,'<span class="ff2">&#36793;&#32536;&#19981;&#26126;&#26174;&#30340;&#22270;<span class="_ _3"> </span></span>Prewitt<span class="_ _3"> </span><span class="ff2">&#31639;&#23376;&#26816;&#27979;&#36793;&#32536;</span>.jpg');</div><div class="t m0 x1 h5 y20 ff1 fs1 fc0 sc0 ls0 ws0">ed_log2 = edge(image2,'log');</div><div class="t m0 x1 h4 y21 ff1 fs1 fc0 sc0 ls0 ws0">imwrite(ed_log2,'<span class="ff2">&#36793;&#32536;&#19981;&#26126;&#26174;&#30340;&#22270;&#25289;&#26222;&#25289;&#26031;&#31639;&#23376;&#26816;&#27979;&#36793;&#32536;</span>.jpg');</div><div class="t m0 x1 h4 y22 ff1 fs1 fc0 sc0 ls0 ws0">%kirsch<span class="_ _3"> </span><span class="ff2">&#31639;&#23376;&#26080;&#27861;&#29992;<span class="_ _3"> </span></span>edge<span class="_ _5"> </span><span class="ff2">&#20989;&#25968;&#65292;&#33258;&#24049;&#32534;&#20889;&#36807;&#31243;</span></div><div class="t m0 x1 h4 y23 ff1 fs1 fc0 sc0 ls0 ws0">%<span class="ff2">&#29992;<span class="_ _5"> </span></span>kirsch<span class="_ _3"> </span><span class="ff2">&#31639;&#23376;&#23545;&#31532;&#19968;&#21103;&#22270;&#20687;&#36827;&#34892;&#36793;&#32536;&#26816;&#27979;</span></div><div class="t m0 x1 h5 y24 ff1 fs1 fc0 sc0 ls0 ws0">thr1 = 300;</div><div class="t m0 x1 h5 y25 ff1 fs1 fc0 sc0 ls0 ws0">X = double(image1); </div><div class="t m0 x1 h5 y26 ff1 fs1 fc0 sc0 ls0 ws0">[row1,col1] = size(image1); </div><div class="t m0 x1 h5 y27 ff1 fs1 fc0 sc0 ls0 ws0">ed_kir1 = zeros(row1,col1);</div><div class="t m0 x1 h5 y28 ff1 fs1 fc0 sc0 ls0 ws0">for i = 2:row1-1</div><div class="t m0 x1 h5 y29 ff1 fs1 fc0 sc0 ls0 ws0"> for j = 2:col1-1</div></div></div><div class="pi" data-data='{"ctm":[1.611850,0.000000,0.000000,1.611850,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐
    • matlab图像处理
      这个东西是自己小手编的matlab图像处理程序。利用GUI界面编程,实现了对文件夹的打开、保存,对图像的二值化、灰度变换、直方图均衡、小波变换、小波降噪、小波压缩以及边缘检测等功能。愿与大家从事图像处理的同学...
    • matlab 图像处理
      利用matlab软件简单处理图像图像matlab实验报告、源码一应俱全,快速学会应用matlab软件。
    • matlab 图像处理
      matlab图像处理资源,对初学者有用,对高手也有指导意义
    • matlab图像处理
      matlab入门的教程,包括最基本的操作过程和一些程序实例,是初学者的好帮手。
    • matlab图像处理
      matlab图像处理,让你学会更快更方便得学会使用matlab处理图像
    • matlab图像程序
      matlab的数字图像处理,you can get it from this web station, 数字图像处理,you can get it from this web station
    • matlab 图像处理
      matlab 图像处理 P0201:MATLAB赋值 P0202:MATLAB中的for循环 P0203:MATLAB中的for循环和if条件 P0205:MATLAB图像处理的基本操作 P0206:MATLAB高级图像处理操作 P0207:根据RGB图像创建一幅灰度图像 P0208...
    • matlab图像处理
      试用matlab图像的显示(灰度图像、彩色图像、动态图像)、图像格式、图像压缩和图像的基本操作(图像反转和直方图均衡)
    • MATLAB图形图像
      本书主要内容包括高级...与教程中的图形内容一起,介绍了MATLAB提供的图形图像方面几乎所有的能力。内容全面。介绍了虚拟现实和地图制作等新技术的MATLAB实现方法,内容新颖。详细介绍了三维场景绘制的各种技术,内容
    • matlab图像处理
      基于matlab图像处理程序。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。