资源简介
Halcon生成的计算圆心坐标C#代码,导入到C#工程中,可调用计算结果.
请下载此份代码
代码片段和文件信息
//
// File generated by HDevelop for HALCON/.NET (C#) Version 17.12
//
// This file is intended to be used with the HDevelopTemplate or
// HDevelopTemplateWPF projects located under %HALCONEXAMPLES%\c#
using System;
using HalconDotNet;
public partial class HDevelopExport
{
public HTuple hv_ExpDefaultWinHandle;
// Main procedure
private void action()
{
// Local iconic variables
Hobject ho_Image ho_ROI_0 ho_ImageReduced;
Hobject ho_Edges ho_ContoursSplit ho_objectSelected=null;
Hobject ho_ContCircle=null;
// Local control variables
HTuple hv_Width = null hv_Height = null hv_Number = null;
HTuple hv_Ox = null hv_Oy = null hv_I = null hv_Attrib = new HTuple();
HTuple hv_Row = new HTuple() hv_Column = new HTuple();
HTuple hv_Radius = new HTuple() hv_StartPhi = new HTuple();
HTuple hv_EndPhi = new HTuple() hv_PointOrder = new HTuple();
// Initialize local and output iconic variables
HOperatorSet.GenEmptyObj(out ho_Image);
HOperatorSet.GenEmptyObj(out ho_ROI_0);
HOperatorSet.GenEmptyObj(out ho_ImageReduced);
HOperatorSet.GenEmptyObj(out ho_Edges);
HOperatorSet.GenEmptyObj(out ho_ContoursSplit);
HOperatorSet.GenEmptyObj(out ho_objectSelected);
HOperatorSet.GenEmptyObj(out ho_ContCircle);
//dev_close_window(...);
ho_Image.Dispose();
HOperatorSet.ReadImage(out ho_Image “F:/halcon_files/learning/222.bmp“);
HOperatorSet.GetImageSize(ho_Image out hv_Width out hv_Height);
//dev_open_window(...);
HOperatorSet.SetPart(hv_ExpDefaultWinHandle 0 0 hv_Height-1 hv_Width-1);
HOperatorSet.DispObj(ho_Image hv_ExpDefaultWinHandle);
ho_ROI_0.Dispose();
HOperatorSet.GenRectangle1(out ho_ROI_0 6 27 99 139);
ho_ImageReduced.Dispose();
HOperatorSet.ReduceDomain(ho_Image ho_ROI_0 out ho_ImageReduced);
ho_Edges.Dispose();
HOperatorSet.EdgesSubPix(ho_ImageReduced out ho_Edges
- 上一篇:C#局域网语音聊天点对点
- 下一篇:c#串口通讯log存储及实时波形绘制代码
相关资源
- c#串口通讯log存储及实时波形绘制代码
- C#局域网语音聊天点对点
- asp.net中用C#写的在线考试系统
- C# CRC 循环冗余校验算法
- C#网上招聘系统 源码
- CLR via C# 最新 中文完整版 高清
- C# 打印设置小票打印收银打印
- .net c# 考试系统
- 生产管理系统 (VS2008 C# winform )
- 中英文切换
- C# DataGridView单元格中动态添加多个控
- c# asp.net 二维码生成源码改良版
- c#企业电话客服系统
- C#程序注册源代码-可直接使用
- c#制作一个通讯录
- 边缘检测Canny算子C#程序
- c#寻找最优解
- 用c#vs2005写的仿汽车仪表做的一个仪表
- C# arcengine 图层操作
- c#编写的计算器
- 计算机网络课程设计-TCP聊天系统课程
- 随机姓名生成器 按性别 C# 源代码和执
- asp.net简易新闻发布系统
- C#+access做的简单的用户资料管理系统
- winform打印窗体源代码
- c#做的飞鸽传输,能发送表情
- C#完整精美时间计时和倒计时软件(带
- C# kafka demo
- 字形轮廓提取显示C#源码(0515).rar
- C#邮件接收案例源码.rar
评论
共有 条评论