ClassesClassesClassesClasses | | | | Operators

select_matching_linesselect_matching_linesSelectMatchingLinesselect_matching_linesSelectMatchingLinesSelectMatchingLines (Operator)

Name

select_matching_linesselect_matching_linesSelectMatchingLinesselect_matching_linesSelectMatchingLinesSelectMatchingLines — Select those lines from a set of lines (in HNF) which fit best into a region.

Signature

select_matching_lines(RegionIn : RegionLines : AngleIn, DistIn, LineWidth, Thresh : AngleOut, DistOut)

Herror select_matching_lines(const Hobject RegionIn, Hobject* RegionLines, double AngleIn, double DistIn, const Hlong LineWidth, const Hlong Thresh, double* AngleOut, double* DistOut)

Herror T_select_matching_lines(const Hobject RegionIn, Hobject* RegionLines, const Htuple AngleIn, const Htuple DistIn, const Htuple LineWidth, const Htuple Thresh, Htuple* AngleOut, Htuple* DistOut)

Herror select_matching_lines(Hobject RegionIn, Hobject* RegionLines, const HTuple& AngleIn, const HTuple& DistIn, const HTuple& LineWidth, const HTuple& Thresh, double* AngleOut, double* DistOut)

Herror select_matching_lines(Hobject RegionIn, Hobject* RegionLines, const HTuple& AngleIn, const HTuple& DistIn, const HTuple& LineWidth, const HTuple& Thresh, HTuple* AngleOut, HTuple* DistOut)

HRegionArray HRegion::SelectMatchingLines(const HTuple& AngleIn, const HTuple& DistIn, const HTuple& LineWidth, const HTuple& Thresh, HTuple* AngleOut, HTuple* DistOut) const

void SelectMatchingLines(const HObject& RegionIn, HObject* RegionLines, const HTuple& AngleIn, const HTuple& DistIn, const HTuple& LineWidth, const HTuple& Thresh, HTuple* AngleOut, HTuple* DistOut)

HRegion HRegion::SelectMatchingLines(const HTuple& AngleIn, const HTuple& DistIn, Hlong LineWidth, Hlong Thresh, HTuple* AngleOut, HTuple* DistOut) const

HRegion HRegion::SelectMatchingLines(double AngleIn, double DistIn, Hlong LineWidth, Hlong Thresh, double* AngleOut, double* DistOut) const

void HOperatorSetX.SelectMatchingLines(
[in] IHUntypedObjectX* RegionIn, [out] IHUntypedObjectX*RegionLines, [in] VARIANT AngleIn, [in] VARIANT DistIn, [in] VARIANT LineWidth, [in] VARIANT Thresh, [out] VARIANT* AngleOut, [out] VARIANT* DistOut)

IHRegionX* HRegionX.SelectMatchingLines(
[in] VARIANT AngleIn, [in] VARIANT DistIn, [in] Hlong LineWidth, [in] Hlong Thresh, [out] VARIANT* AngleOut, [out] VARIANT* DistOut)

static void HOperatorSet.SelectMatchingLines(HObject regionIn, out HObject regionLines, HTuple angleIn, HTuple distIn, HTuple lineWidth, HTuple thresh, out HTuple angleOut, out HTuple distOut)

HRegion HRegion.SelectMatchingLines(HTuple angleIn, HTuple distIn, int lineWidth, int thresh, out HTuple angleOut, out HTuple distOut)

HRegion HRegion.SelectMatchingLines(double angleIn, double distIn, int lineWidth, int thresh, out double angleOut, out double distOut)

Description

Lines which fit best into a region can be selected from a set of lines which are available in HNF with the help of the operator select_matching_linesselect_matching_linesSelectMatchingLinesselect_matching_linesSelectMatchingLinesSelectMatchingLines; the region itself is also transmitted as a parameter (RegionInRegionInRegionInRegionInRegionInregionIn). The width of the lines can be indicated by the parameter LineWidthLineWidthLineWidthLineWidthLineWidthlineWidth. The selected lines will be returned in HNF and as regions (RegionLinesRegionLinesRegionLinesRegionLinesRegionLinesregionLines).

The lines are selected iteratively in a loop: At first, the line showing the greatest overlap with the input region is selected from the set of input lines. This line will then be taken over into the output set whereby all points belonging to that line will not be considered in the further steps determining overlaps. The loop will be left when the maximum overlap value of the region and the lines falls below a certain threshold value (ThreshThreshThreshThreshThreshthresh). The selected lines will be returned as regions as well as in HNF.

Parallelization

Parameters

RegionInRegionInRegionInRegionInRegionInregionIn (input_object)  region objectHRegionHRegionHRegionHRegionXHobject

Region in which the lines are to be matched.

RegionLinesRegionLinesRegionLinesRegionLinesRegionLinesregionLines (output_object)  region(-array) objectHRegionHRegionHRegionHRegionXHobject *

Region array containing the matched lines.

AngleInAngleInAngleInAngleInAngleInangleIn (input_control)  hesseline.angle.rad(-array) HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Angles (in radians) of the normal vectors of the input lines.

Typical range of values: -1.5707963 ≤ AngleIn AngleIn AngleIn AngleIn AngleIn angleIn ≤ 3.1415927

DistInDistInDistInDistInDistIndistIn (input_control)  hesseline.distance(-array) HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Distances of the input lines form the origin.

Number of elements: DistIn == AngleIn

LineWidthLineWidthLineWidthLineWidthLineWidthlineWidth (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Widths of the lines.

Default value: 7

Typical range of values: 1 ≤ LineWidth LineWidth LineWidth LineWidth LineWidth lineWidth

ThreshThreshThreshThreshThreshthresh (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Threshold value for the number of line points in the region.

Default value: 100

Typical range of values: 1 ≤ Thresh Thresh Thresh Thresh Thresh thresh

AngleOutAngleOutAngleOutAngleOutAngleOutangleOut (output_control)  hesseline.angle.rad(-array) HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Angles (in radians) of the normal vectors of the selected lines.

Number of elements: AngleOut <= AngleIn

Typical range of values: -1.5707963 ≤ AngleOut AngleOut AngleOut AngleOut AngleOut angleOut ≤ 3.1415927

DistOutDistOutDistOutDistOutDistOutdistOut (output_control)  hesseline.distance(-array) HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Distances of the selected lines from the origin.

Number of elements: DistOut == AngleOut

Typical range of values: 0 ≤ DistOut DistOut DistOut DistOut DistOut distOut

Result

The operator select_matching_linesselect_matching_linesSelectMatchingLinesselect_matching_linesSelectMatchingLinesSelectMatchingLines returns the value 2 (H_MSG_TRUE) if the input is not empty. The behavior in case of empty input (no input regions available) is set via the operator set_system('no_object_result',<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>), the behavior in case of empty region is set via set_system('empty_region_result',<Result>)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>). If necessary an exception is raised.

Possible Predecessors

hough_lineshough_linesHoughLineshough_linesHoughLinesHoughLines

Module

Foundation


ClassesClassesClassesClasses | | | | Operators