91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 4KB
    文件類型: .cs
    金幣: 1
    下載: 0 次
    發布日期: 2021-06-09
  • 語言: C#
  • 標簽: halcon??C#??

資源簡介

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?

評論

共有 條評論