本文整理汇总了C#中HTuple.TupleSort方法的典型用法代码示例。如果您正苦于以下问题:C# HTuple.TupleSort方法的具体用法?C# HTuple.TupleSort怎么用?C# HTuple.TupleSort使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTuple
的用法示例。
在下文中一共展示了HTuple.TupleSort方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: find_caltab_edges
//.........这里部分代码省略.........
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();
ho_SelectedRegions2.Dispose();
ho_SelectedRegions.Dispose();