当前位置: 首页>>代码示例>>C#>>正文


C# HTuple.TupleGreaterEqual方法代码示例

本文整理汇总了C#中HTuple.TupleGreaterEqual方法的典型用法代码示例。如果您正苦于以下问题:C# HTuple.TupleGreaterEqual方法的具体用法?C# HTuple.TupleGreaterEqual怎么用?C# HTuple.TupleGreaterEqual使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在HTuple的用法示例。


在下文中一共展示了HTuple.TupleGreaterEqual方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: find_caltab_edges


//.........这里部分代码省略.........
          HOperatorSet.SelectShape(ho_SelectedRegions2, out ho_SelectedRegions, "compactness",
          "and", 1.4, 10);
          ho_RegionFillUp.Dispose();
          HOperatorSet.FillUp(ho_SelectedRegions, out ho_RegionFillUp);
          ho_SelectedRegions1.Dispose();
          HOperatorSet.SelectShape(ho_RegionFillUp, out ho_SelectedRegions1, "rectangularity",
          "and", 0.6, 1);
          ho_RegionIntersection.Dispose();
          HOperatorSet.Intersection(ho_SelectedRegions1, ho_RegionDynThresh, out ho_RegionIntersection
          );
          ho_RegionFillUp1.Dispose();
          HOperatorSet.FillUp(ho_RegionIntersection, out ho_RegionFillUp1);
          ho_RegionDifference.Dispose();
          HOperatorSet.Difference(ho_RegionFillUp1, ho_RegionIntersection, out ho_RegionDifference
          );
          HOperatorSet.CountObj(ho_RegionDifference, out hv_Number);
          ho_CaltabCandidates.Dispose();
          HOperatorSet.GenEmptyObj(out ho_CaltabCandidates);
          HOperatorSet.CaltabPoints(hv_DescriptionFileName, out hv_X, out hv_Y, out hv_Z);
          hv_NumDescrMarks = new HTuple(hv_X.TupleLength());
          for (hv_Index = 1; hv_Index.Continue(hv_Number, 1); hv_Index = hv_Index.TupleAdd(1))
          {
          ho_ObjectSelected.Dispose();
          HOperatorSet.SelectObj(ho_RegionDifference, out ho_ObjectSelected, hv_Index);
          ho_ConnectedMarks.Dispose();
          HOperatorSet.Connection(ho_ObjectSelected, out ho_ConnectedMarks);
          HOperatorSet.CountObj(ho_ConnectedMarks, out hv_NumberMarks);
          HOperatorSet.Eccentricity(ho_ConnectedMarks, out hv_Anisometry, out hv_Bulkiness,
              out hv_StructureFactor);
          HOperatorSet.AreaCenter(ho_ConnectedMarks, out hv_AreaMarks, out hv_Row, out hv_Column);
          ho_ObjectSelectedCaltab.Dispose();
          HOperatorSet.SelectObj(ho_RegionIntersection, out ho_ObjectSelectedCaltab,
              hv_Index);
          if ((int)((new HTuple((new HTuple((new HTuple(hv_NumberMarks.TupleGreaterEqual(
              10))).TupleAnd(new HTuple(hv_NumberMarks.TupleLess(hv_NumDescrMarks + 20))))).TupleAnd(
              new HTuple(((((hv_Anisometry.TupleSort())).TupleSelect((new HTuple(hv_Anisometry.TupleLength()
              )) / 2))).TupleLess(2))))).TupleAnd(new HTuple((new HTuple(hv_AreaMarks.TupleMean()
              )).TupleGreater(20)))) != 0)
          {
              HOperatorSet.ConcatObj(ho_CaltabCandidates, ho_ObjectSelectedCaltab, out OTemp[0]
                  );
              ho_CaltabCandidates.Dispose();
              ho_CaltabCandidates = OTemp[0];
          }
          }
          ho_RegionFillUpCand.Dispose();
          HOperatorSet.FillUp(ho_CaltabCandidates, out ho_RegionFillUpCand);
          HOperatorSet.Rectangularity(ho_RegionFillUpCand, out hv_Rectangularity);
          if ((int)(new HTuple((new HTuple(hv_Rectangularity.TupleLength())).TupleEqual(
          0))) != 0)
          {
          ho_ImageMean.Dispose();
          ho_RegionDynThresh.Dispose();
          ho_RegionBorder.Dispose();
          ho_RegionOpening1.Dispose();
          ho_ConnectedRegions1.Dispose();
          ho_SelectedRegions4.Dispose();
          ho_SelectedRegions5.Dispose();
          ho_RegionBorder2.Dispose();
          ho_RegionTrans.Dispose();
          ho_RegionErosion.Dispose();
          ho_RegionBorder1.Dispose();
          ho_RegionDilation2.Dispose();
          ho_RegionDifference1.Dispose();
          ho_RegionOpening.Dispose();
          ho_ConnectedRegions.Dispose();
开发者ID:rtigithub,项目名称:HALCON-12-codelets,代码行数:67,代码来源:QualityProcedures.cs


注:本文中的HTuple.TupleGreaterEqual方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。