资源简介
环境vs2019 .net472 vdm2013
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using NationalInstruments.Vision.Analysis;
using NationalInstruments.Vision;
using System.Diagnostics;
namespace WindowsFormsApp2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private double x = 0;
private double y = 0;
private double out_rad = 0;
private double in_rad = 0;
private SpokeDirection sdir;
private EdgePolaritySearchMode spol;
private RakeProcessType sedge;
private uint skernel;
private double sthr;
private void button3_Click(object sender EventArgs e)
{
OpenFileDialog _dlg = new OpenFileDialog();
_dlg.Filter = (“bmp|*.bmp“);
_dlg.FileName = ““;
_dlg.InitialDirectory = System.IO.Directory.GetCurrentDirectory();
if (_dlg.ShowDialog() == DialogResult.OK)
{
imageViewer1.Image.ReadFile(_dlg.FileName);
}
}
private void button1_Click(object sender EventArgs e)
{
if (imageViewer1.Roi.Count > 0)
{
if (imageViewer1.Roi[0].Type != ContourType.Annulus)
{
MessageBox.Show(“请选择环形工具!“);
}
else
{
AnnulusContour a;
a = (AnnulusContour)imageViewer1.Roi[0].Shape; //AnnulusContour _a = new AnnulusContour();
x = a.Center.X;
y = a.Center.Y;
in_rad = a.InnerRadius;
out_rad = a.OuterRadius;
//imageViewer1.Roi[0];
}
}
imageViewer1.Roi.Clear();
}
private void button2_Click(object sender EventArgs e)
{
skernel = Convert.ToUInt32(textBox1.Text);
sthr = Convert.ToDouble(textBox2.Text);
findcircle(imageViewer1.Image new AnnulusContour(new PointContour(x y) in_rad out_rad 0 360) sdir spol sedge skernel sthr false 0 0 0 0 0 0);
}
private void findcircle(VisionImage src AnnulusContour area SpokeDirection dir EdgePolaritySearchMode pol RakeProcessType edge uint kernelsize double thr bool carlibration double orgx double orgy double orga double calx double caly double cala)
{
Roi _varoi = new Roi();
FindCircularEdgeOptions _vaopt = new FindCircularEdgeOptions();
CircularEdgeFitOptions _vafitopt = new CircularEdgeFitOptions();
FindCircularEdgeReport _vareport = new FindCircularEdgeReport();
CoordinateSyst
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
..A..H. 58880 2020-08-12 11:59 WindowsFormsApp2\.vs\WindowsFormsApp2\v16\.suo
文件 189 2020-08-12 10:38 WindowsFormsApp2\WindowsFormsApp2\App.config
文件 284672 2013-05-16 11:57 WindowsFormsApp2\WindowsFormsApp2\bin\Debug\NationalInstruments.Common.dll
文件 79360 2013-05-16 11:54 WindowsFormsApp2\WindowsFormsApp2\bin\Debug\NationalInstruments.Common.Native.dll
文件 454301 2013-05-16 11:57 WindowsFormsApp2\WindowsFormsApp2\bin\Debug\NationalInstruments.Common.xm
文件 4608 2013-05-16 11:53 WindowsFormsApp2\WindowsFormsApp2\bin\Debug\NationalInstruments.MStudioCLM.dll
文件 29696 2013-05-16 11:53 WindowsFormsApp2\WindowsFormsApp2\bin\Debug\NationalInstruments.NiLmClientDLL.dll
文件 209920 2014-05-16 20:41 WindowsFormsApp2\WindowsFormsApp2\bin\Debug\NationalInstruments.Vision.Common.dll
文件 909026 2014-05-16 20:41 WindowsFormsApp2\WindowsFormsApp2\bin\Debug\NationalInstruments.Vision.Common.xm
文件 508928 2013-06-23 04:54 WindowsFormsApp2\WindowsFormsApp2\bin\Debug\NationalInstruments.Vision.dll
文件 3183225 2013-06-23 04:53 WindowsFormsApp2\WindowsFormsApp2\bin\Debug\NationalInstruments.Vision.xm
文件 15360 2020-08-12 11:58 WindowsFormsApp2\WindowsFormsApp2\bin\Debug\WindowsFormsApp2.exe
文件 902 2020-08-12 10:40 WindowsFormsApp2\WindowsFormsApp2\bin\Debug\WindowsFormsApp2.exe.config
文件 36352 2020-08-12 11:58 WindowsFormsApp2\WindowsFormsApp2\bin\Debug\WindowsFormsApp2.pdb
文件 5039926 2017-05-12 22:33 WindowsFormsApp2\WindowsFormsApp2\bin\Debug\测试.bmp
文件 6122 2020-08-12 11:58 WindowsFormsApp2\WindowsFormsApp2\Form1.cs
文件 10072 2020-08-12 11:54 WindowsFormsApp2\WindowsFormsApp2\Form1.Designer.cs
文件 6695 2020-08-12 11:54 WindowsFormsApp2\WindowsFormsApp2\Form1.resx
文件 214 2020-08-12 10:38 WindowsFormsApp2\WindowsFormsApp2\obj\Debug\.NETfr
文件 12886 2020-08-12 11:59 WindowsFormsApp2\WindowsFormsApp2\obj\Debug\DesignTimeResolveAssemblyReferences.cache
文件 7770 2020-08-12 10:40 WindowsFormsApp2\WindowsFormsApp2\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 0 2020-08-12 11:58 WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.csproj.CopyComplete
文件 42 2020-08-12 10:40 WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.csproj.CoreCompileInputs.cache
文件 2307 2020-08-12 11:53 WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.csproj.FileListAbsolute.txt
文件 1012 2020-08-12 11:54 WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.csproj.GenerateResource.cache
文件 424 2020-08-12 11:53 WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.csprojAssemblyReference.cache
文件 15360 2020-08-12 11:58 WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.exe
文件 902 2020-08-12 10:40 WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.exe.config
文件 180 2020-08-12 11:54 WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.Form1.resources
文件 36352 2020-08-12 11:58 WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.pdb
............此处省略23个文件信息
- 上一篇:CAD图框外扩
- 下一篇:NiVision找直线
相关资源
- NiVision找直线
- C# SCADA源码修复
- C#的高仿QQ截屏程序
- C#中WPF联合Halcon的一个学习(解决内存
- C# 视觉处理代码、神经网络和遗传算
- C# 窗体随机移动
- C#,GDI图像平移,缩放
- C# 无损压缩图片
- 输入框自动切换中文(C#winform)vs20
- C# OutlookBar导航菜单控件
- WPF鼠标拖动控件源码
- C#控件美化(TabControlEx)
- 网吧管理系统(包附数据库)
- winform右下角弹窗
- C# 定时提醒器
- C#实现 带列的树控件
- C# .NET5.0(net core)基于WPF(XAML)开发
- wpf echart
- C# 抽奖系统源码
- C# 俄罗斯方块(winform)
- C# 贪吃蛇(winform)
- C# 五子棋(winform源码)
- C# 验证码识别
- wpf Dock window
- C# 带跟随窗体的 CenterDialog
- C# 停车场项目(源码)
- C#计算异或和,ASCII码转十六进制
- C#USB开发
- C#通用类基础
- C#与西门子1500通讯59060
评论
共有 条评论