首页 边缘特征点提取

边缘特征点提取

举报
开通vip

边缘特征点提取边缘特征点提取 这个是主程序:界面和代这 using System; using System.Collections.Generic;using System.ComponentModel;using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;using System.IO; namespace 这这这这这影量作1 { public partial cl...

边缘特征点提取
边缘特征点提取 这个是主程序:界面和代这 using System; using System.Collections.Generic;using System.ComponentModel;using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;using System.IO; namespace 这这这这这影量作1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private string curFileName; private System.Drawing.Bitmap curBitmap; int a =0; int b =0; int n = 0; int count = 0; private void button2_Click(object sender, EventArgs e) { OpenFileDialog of = new OpenFileDialog(); of.Filter = "JPG这像(*.jpg)|*.jpg|BMP这像(*.bmp)|*.bmp|所有文件(*.*)|*.*"; of.Title = "打文件这这这"; of.ShowDialog(); curFileName = of.FileName; try { curBitmap = (Bitmap)Image.FromFile(curFileName); } catch(Exception ex) { MessageBox.Show("出这!" + ex.Message); } pictureBox1.Image = Image.FromFile(curFileName ); } private void button1_Click(object sender, EventArgs e) { button4.Visible = true; int i,j,k,m; double V1 = 0, V2 = 0,V3 =0, V4 = 0; double [,]V= new double [curBitmap.Width, curBitmap.Height]; double [,] VV = new double[curBitmap.Width, curBitmap.Height]; int [,] Gray = new int[curBitmap.Width, curBitmap.Height]; for (i=0;i 公式 小学单位换算公式大全免费下载公式下载行测公式大全下载excel公式下载逻辑回归公式下载 这这这这 } for (i=2;i= Convert.ToDouble(textBox1.Text)) { VV[i, j] = 1; } else { VV[i, j] = 0; } } catch (Exception ex) { MessageBox.Show("这这这这这入出:"+ex.Message); } } int WindowsScal=comboBox1.SelectedIndex; if (WindowsScal == 0) WindowsScal = 2; else if (WindowsScal == 1) WindowsScal = 3; else if (WindowsScal == 2) WindowsScal = 4; else MessageBox.Show("这这这特征点窗口 模板 个人简介word模板免费下载关于员工迟到处罚通告模板康奈尔office模板下载康奈尔 笔记本 模板 下载软件方案模板免费下载 大小"); m = WindowsScal * 2 + 1; double temp; int wsi=WindowsScal; int wsj=WindowsScal; int[] Record = new int[curBitmap.Width * curBitmap.Height ]; bool bol = true; do { temp = 0; for (i = wsi; i < wsi + m; i++) { for (j = wsj; j < wsj + m; j++) { if (VV[i, j] == 1) { if (temp < V[i, j]) { temp = V[i, j]; a = i; b = j; } } else { a = 0; b = 0; } } } Record[n++] = a; Record[n++] = b; a = 0; b = 0; if(curBitmap .Width - (wsi + m)= Convert.ToDouble(textBox1.Text)) { VV[i, j] = 1; } else { VV[i, j] = 0; } } catch (Exception ex) { MessageBox.Show("这这这这这入出:"+ex.Message); } } int WindowsScal=comboBox1.SelectedIndex; if (WindowsScal == 0) WindowsScal = 2; else if (WindowsScal == 1) WindowsScal = 3; else if (WindowsScal == 2) WindowsScal = 4; else MessageBox.Show("这这这特征点窗口模板大小"); m = WindowsScal * 2 + 1; double temp; int wsi=WindowsScal; int wsj=WindowsScal; int[] Record = new int[curBitmap.Width * curBitmap.Height ]; bool bol = true; do { temp = 0; for (i = wsi; i < wsi + m; i++) { for (j = wsj; j < wsj + m; j++) { if (VV[i, j] == 1) { if (temp < V[i, j]) { temp = V[i, j]; a = i; b = j; } } else { a = 0; b = 0; } } } Record[n++] = a; Record[n++] = b; a = 0; b = 0; if(curBitmap .Width - (wsi + m)
本文档为【边缘特征点提取】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
is_358746
暂无简介~
格式:doc
大小:48KB
软件:Word
页数:0
分类:生活休闲
上传时间:2017-11-11
浏览量:19