Operators |
union_straight_contours_histo_xld — Compute the union of neighboring straight contours that have a similar distance from a given line.
union_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 Measuring instead.
union_straight_contours_histo_xld(Contours : UnionContours, SelectedContours : RefLineStartRow, RefLineStartColumn, RefLineEndRow, RefLineEndColumn, Width, MaxWidth, FilterSize : HistoValues)
union_straight_contours_histo_xld merges neighboring XLD contours Contours 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, FilterSize 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 MaxWidth, 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_xld , the parameters of the regression line to the contour must be calculated by calling regress_contours_xld. Note further that already closed contours are not considered for a union anymore.
Input XLD contours.
Output XLD contours.
Output XLD contours.
y coordinate of the starting point of the reference line.
Default value: 0
x coordinate of the starting point of the reference line.
Default value: 0
y coordinate of the endpoint of the reference line.
Default value: 0
x coordinate of the endpoint of the reference line.
Default value: 0
Size of Smoothfilter
Default value: 1
Typical range of values: 1 ≤ FilterSize ≤ 63
Output Values of Histogram.
Foundation
Operators |