《边缘检测原理》word版

《边缘检测原理》word版

ID:22914082

大小:99.00 KB

页数:10页

时间:2018-11-01

《边缘检测原理》word版_第1页
《边缘检测原理》word版_第2页
《边缘检测原理》word版_第3页
《边缘检测原理》word版_第4页
《边缘检测原理》word版_第5页
资源描述:

《《边缘检测原理》word版》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库

1、SobelEdgeDetector詳細的Sobel演算法流程,我就不再多談,請參考SobelEdgeDetector。详细的Sobel演算法流程,,请参考相应算法。下圖的Gx與Gy是Sobeledgedetector在X方向與Y方向的kernel,將與P5這個pixel做convolution。下图的Gx与Gy是Sobeledgedetector在X方向与Y方向的kernel,将与P5这个pixel做convolution。雖然是對P5運算,卻必須同時知道P1、P2、P3、P4、P6、P7、P8、P9的資訊,這在C不是問題,因為都在array內,只要

2、改變一下array的index就可得到,但在Verilog卻做不到。虽然是对P5运算,却必须同时知道P1、P2、P3、P4、P6、P7、P8、P9的资讯,这在C不是问题,因为都在array内,只要改变一下array的index就可得到,但在Verilog却做不到。系統架構圖使用Verilog實現SobelEdgeDetector使用Verilog实现SobelEdgeDetectorSobel.v/VerilogSobel.v/Verilog1/*1/*2(C)OOMusou2008http://oomusou.cnblogs.com2(C)OOMu

3、sou2008http://oomusou.cnblogs.com334Filename   :Sobel.v4Filename:Sobel.v5Compiler   :QuartusII8.05Compiler:QuartusII8.06Description:DemohowtoimplementSobelEdgeDetectoronDE2-706Description:DemohowtoimplementSobelEdgeDetectoronDE2-707Release    :09/27/20081.07Release:09/27/20081.

4、08*/8*/9910moduleSobel(10moduleSobel(1111 inputiCLK,inputiCLK,1212 inputiRST_N,inputiRST_N,1313 input[7:0]iTHRESHOLD,input[7:0]iTHRESHOLD,1414 inputiDVAL,inputiDVAL,1515 input[9:0]iDATA,input[9:0]iDATA,1616 outputoutput regoDVAL,regoDVAL,1717 outputoutput reg[9:0]oDATAreg[9:0]o

5、DATA18);18);191920//maskx20//maskx21parameterX1=21parameterX1= 8'hff,X2=8'h00,X3=8'hff,X2=8'h00,X3= 8'h01;8'h01;22parameterX4=22parameterX4= 8'hfe,X5=8'h00,X6=8'hfe,X5=8'h00,X6= 8'h02;8'h02;23parameterX7=23parameterX7= 8'hff,X8=8'h00,X9=8'hff,X8=8'h00,X9= 8'h01;8'h01;242425//ma

6、sky25//masky26parameterY1=26parameterY1= 8'h01,Y2=8'h02,Y3=8'h01,Y2=8'h02,Y3= 8'h01;8'h01;27parameterY4=27parameterY4= 8'h00,Y5=8'h00,Y6=8'h00,Y5=8'h00,Y6= 8'h00;8'h00;28parameterY7=28parameterY7= 8'hff,Y8=8'hfe,Y9=8'hff,Y8=8'hfe,Y9= 8'hff;8'hff;292930wire[7:0]Line0;30wire[7:0]

7、Line0;31wire[7:0]Line1;31wire[7:0]Line1;32wire[7:0]Line2;32wire[7:0]Line2;333334wire[17:0] Mac_x0;34wire[17:0]Mac_x0;35wire[17:0] Mac_x1;35wire[17:0]Mac_x1;36wire[17:0] Mac_x2;36wire[17:0]Mac_x2;373738wire[17:0] Mac_y0;38wire[17:0]Mac_y0;39wire[17:0] Mac_y1;39wire[17:0]Mac_y1;4

8、0wire[17:0] Mac_y2;40wire[17:0]Mac_y2;414142wire[19:0]

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。