union_straight_contours_histo_xldT_union_straight_contours_histo_xldUnionStraightContoursHistoXldUnionStraightContoursHistoXldunion_straight_contours_histo_xld (算子)
名称
union_straight_contours_histo_xldT_union_straight_contours_histo_xldUnionStraightContoursHistoXldUnionStraightContoursHistoXldunion_straight_contours_histo_xld — 计算与给定直线具有相似距离的相邻直线轮廓的并集。
警告
union_straight_contours_histo_xldunion_straight_contours_histo_xldUnionStraightContoursHistoXldUnionStraightContoursHistoXldUnionStraightContoursHistoXldunion_straight_contours_histo_xld 已过时,仅出于向后兼容性考虑而保留。 New applications should use the
operators of the chapter 1D Measuring instead.
签名
Herror T_union_straight_contours_histo_xld(const Hobject Contours, Hobject* UnionContours, Hobject* SelectedContours, const Htuple RefLineStartRow, const Htuple RefLineStartColumn, const Htuple RefLineEndRow, const Htuple RefLineEndColumn, const Htuple Width, const Htuple MaxWidth, const Htuple FilterSize, Htuple* HistoValues)
void UnionStraightContoursHistoXld(const HObject& Contours, HObject* UnionContours, HObject* SelectedContours, const HTuple& RefLineStartRow, const HTuple& RefLineStartColumn, const HTuple& RefLineEndRow, const HTuple& RefLineEndColumn, const HTuple& Width, const HTuple& MaxWidth, const HTuple& FilterSize, HTuple* HistoValues)
HXLDCont HXLDCont::UnionStraightContoursHistoXld(HXLDCont* SelectedContours, Hlong RefLineStartRow, Hlong RefLineStartColumn, Hlong RefLineEndRow, Hlong RefLineEndColumn, Hlong Width, Hlong MaxWidth, Hlong FilterSize, HTuple* HistoValues) const
static void HOperatorSet.UnionStraightContoursHistoXld(HObject contours, out HObject unionContours, out HObject selectedContours, HTuple refLineStartRow, HTuple refLineStartColumn, HTuple refLineEndRow, HTuple refLineEndColumn, HTuple width, HTuple maxWidth, HTuple filterSize, out HTuple histoValues)
HXLDCont HXLDCont.UnionStraightContoursHistoXld(out HXLDCont selectedContours, int refLineStartRow, int refLineStartColumn, int refLineEndRow, int refLineEndColumn, int width, int maxWidth, int filterSize, out HTuple histoValues)
描述
union_straight_contours_histo_xldunion_straight_contours_histo_xldUnionStraightContoursHistoXldUnionStraightContoursHistoXldUnionStraightContoursHistoXldunion_straight_contours_histo_xld merges neighboring XLD
contours ContoursContoursContoursContourscontourscontours if certain criteria are fulfilled.
The maximum and minimum distances of the contours to a given
reference line are calculated. From this distances a histogram is
created. If the histogram should be smoothed, FilterSizeFilterSizeFilterSizeFilterSizefilterSizefilter_size
must be greater than one. Afterwards, the resulting histogram is
divided into ranges (from minima to minima). Contours which lie in
the same range are concatenated to a new contour. If the width of
the range is greater than MaxWidthMaxWidthMaxWidthMaxWidthmaxWidthmax_width, all contours in this range
are ignored (removed). If a contour lies in two ranges or more it is
ignored, too. If there are parallel contours, there is a
risk of merging neighboring contours.
The parameters of the regression lines are calculated newly for merged
contours.
The resulting contours cannot be displayed.
注意
Before the contour parameters can be returned by
union_straight_contours_histo_xldunion_straight_contours_histo_xldUnionStraightContoursHistoXldUnionStraightContoursHistoXldUnionStraightContoursHistoXldunion_straight_contours_histo_xld, the parameters of the regression
line to the contour must be calculated by calling
regress_contours_xldregress_contours_xldRegressContoursXldRegressContoursXldRegressContoursXldregress_contours_xld。Note further that already closed contours are
not considered for a union anymore.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
ContoursContoursContoursContourscontourscontours (输入对象) xld_cont-array → objectHXLDContHObjectHXLDContHobject
输入 XLD 轮廓。
UnionContoursUnionContoursUnionContoursUnionContoursunionContoursunion_contours (输出对象) xld_cont-array → objectHXLDContHObjectHXLDContHobject *
Output XLD contours.
SelectedContoursSelectedContoursSelectedContoursSelectedContoursselectedContoursselected_contours (输出对象) xld_cont-array → objectHXLDContHObjectHXLDContHobject *
Output XLD contours.
RefLineStartRowRefLineStartRowRefLineStartRowRefLineStartRowrefLineStartRowref_line_start_row (输入控制) line.begin.y → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
y coordinate of the starting point of the reference line.
默认值:
0
RefLineStartColumnRefLineStartColumnRefLineStartColumnRefLineStartColumnrefLineStartColumnref_line_start_column (输入控制) line.begin.x → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
x coordinate of the starting point of the reference line.
默认值:
0
RefLineEndRowRefLineEndRowRefLineEndRowRefLineEndRowrefLineEndRowref_line_end_row (输入控制) line.end.y → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
y coordinate of the endpoint of the reference line.
默认值:
0
RefLineEndColumnRefLineEndColumnRefLineEndColumnRefLineEndColumnrefLineEndColumnref_line_end_column (输入控制) line.end.x → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
x coordinate of the endpoint of the reference line.
默认值:
0
WidthWidthWidthWidthwidthwidth (输入控制) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Maximum distance.
默认值:
1
MaxWidthMaxWidthMaxWidthMaxWidthmaxWidthmax_width (输入控制) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Maximum width between two minima.
默认值:
1
FilterSizeFilterSizeFilterSizeFilterSizefilterSizefilter_size (输入控制) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Size of smoothing filter
默认值:
1
值范围:
1
≤
FilterSize
FilterSize
FilterSize
FilterSize
filterSize
filter_size
≤
63
HistoValuesHistoValuesHistoValuesHistoValueshistoValueshisto_values (输出控制) integer-array → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Output values of histogram.
模块
基础