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 — Compute the union of neighboring straight contours that have a similar
distance from a given line.
警告
union_straight_contours_histo_xldunion_straight_contours_histo_xldUnionStraightContoursHistoXldUnionStraightContoursHistoXldUnionStraightContoursHistoXldunion_straight_contours_histo_xld is obsolete and is only provided
for reasons of backward compatibility. New applications should use the
operators of the chapter 1D 测量 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 (input_object) xld_cont-array → objectHXLDContHObjectHXLDContHobject
Input XLD contours.
UnionContoursUnionContoursUnionContoursUnionContoursunionContoursunion_contours (output_object) xld_cont-array → objectHXLDContHObjectHXLDContHobject *
Output XLD contours.
SelectedContoursSelectedContoursSelectedContoursSelectedContoursselectedContoursselected_contours (output_object) xld_cont-array → objectHXLDContHObjectHXLDContHobject *
Output XLD contours.
RefLineStartRowRefLineStartRowRefLineStartRowRefLineStartRowrefLineStartRowref_line_start_row (input_control) line.begin.y → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
y coordinate of the starting point of the reference line.
Default:
0
RefLineStartColumnRefLineStartColumnRefLineStartColumnRefLineStartColumnrefLineStartColumnref_line_start_column (input_control) line.begin.x → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
x coordinate of the starting point of the reference line.
Default:
0
RefLineEndRowRefLineEndRowRefLineEndRowRefLineEndRowrefLineEndRowref_line_end_row (input_control) line.end.y → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
y coordinate of the endpoint of the reference line.
Default:
0
RefLineEndColumnRefLineEndColumnRefLineEndColumnRefLineEndColumnrefLineEndColumnref_line_end_column (input_control) line.end.x → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
x coordinate of the endpoint of the reference line.
Default:
0
WidthWidthWidthWidthwidthwidth (input_control) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Maximum distance.
Default:
1
MaxWidthMaxWidthMaxWidthMaxWidthmaxWidthmax_width (input_control) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Maximum width between two minima.
Default:
1
FilterSizeFilterSizeFilterSizeFilterSizefilterSizefilter_size (input_control) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Size of smoothing filter
Default:
1
Value range:
1
≤
FilterSize
FilterSize
FilterSize
FilterSize
filterSize
filter_size
≤
63
HistoValuesHistoValuesHistoValuesHistoValueshistoValueshisto_values (output_control) integer-array → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Output values of histogram.
模块
Foundation