ClassesClassesClassesClasses | | | | Operators

hough_linesT_hough_linesHoughLineshough_linesHoughLinesHoughLines (Operator)

Name

hough_linesT_hough_linesHoughLineshough_linesHoughLinesHoughLines — Detect lines in edge images with the help of the Hough transform and returns it in HNF.

Signature

hough_lines(RegionIn : : AngleResolution, Threshold, AngleGap, DistGap : Angle, Dist)

Herror T_hough_lines(const Hobject RegionIn, const Htuple AngleResolution, const Htuple Threshold, const Htuple AngleGap, const Htuple DistGap, Htuple* Angle, Htuple* Dist)

Herror hough_lines(Hobject RegionIn, const HTuple& AngleResolution, const HTuple& Threshold, const HTuple& AngleGap, const HTuple& DistGap, HTuple* Angle, HTuple* Dist)

HTuple HRegion::HoughLines(const HTuple& AngleResolution, const HTuple& Threshold, const HTuple& AngleGap, const HTuple& DistGap, HTuple* Dist) const

void HoughLines(const HObject& RegionIn, const HTuple& AngleResolution, const HTuple& Threshold, const HTuple& AngleGap, const HTuple& DistGap, HTuple* Angle, HTuple* Dist)

HTuple HRegion::HoughLines(Hlong AngleResolution, Hlong Threshold, Hlong AngleGap, Hlong DistGap, HTuple* Dist) const

void HOperatorSetX.HoughLines(
[in] IHUntypedObjectX* RegionIn, [in] VARIANT AngleResolution, [in] VARIANT Threshold, [in] VARIANT AngleGap, [in] VARIANT DistGap, [out] VARIANT* Angle, [out] VARIANT* Dist)

VARIANT HRegionX.HoughLines(
[in] Hlong AngleResolution, [in] Hlong Threshold, [in] Hlong AngleGap, [in] Hlong DistGap, [out] VARIANT* Dist)

static void HOperatorSet.HoughLines(HObject regionIn, HTuple angleResolution, HTuple threshold, HTuple angleGap, HTuple distGap, out HTuple angle, out HTuple dist)

HTuple HRegion.HoughLines(int angleResolution, int threshold, int angleGap, int distGap, out HTuple dist)

Description

The operator hough_lineshough_linesHoughLineshough_linesHoughLinesHoughLines allows the selection of linelike structures in a region, whereby it is not necessary that the individual points of a line are connected. This process is based on the Hough transform. The lines are returned in HNF, that is by the direction and length of their normal vector.

The parameter AngleResolutionAngleResolutionAngleResolutionAngleResolutionAngleResolutionangleResolution defines the degree of exactness concerning the determination of the angles. It amounts to 1 / AngleResolutionAngleResolutionAngleResolutionAngleResolutionAngleResolutionangleResolution degree. The parameter ThresholdThresholdThresholdThresholdThresholdthreshold determines by how many points of the original region a line's hypothesis has to be supported at least in order to be taken over into the output. The parameters AngleGapAngleGapAngleGapAngleGapAngleGapangleGap and DistGapDistGapDistGapDistGapDistGapdistGap define a neighborhood of the points in the Hough image in order to determine the local maxima. The lines are returned in HNF.

Parallelization

Parameters

RegionInRegionInRegionInRegionInRegionInregionIn (input_object)  region objectHRegionHRegionHRegionHRegionXHobject

Binary edge image in which the lines are to be detected.

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

Adjusting the resolution in the angle area.

Default value: 4

List of values: 1, 2, 4, 8

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

Threshold value in the Hough image.

Default value: 100

Typical range of values: 2 ≤ Threshold Threshold Threshold Threshold Threshold threshold

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

Minimal distance of two maxima in the Hough image (direction: angle).

Default value: 5

Typical range of values: 0 ≤ AngleGap AngleGap AngleGap AngleGap AngleGap angleGap

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

Minimal distance of two maxima in the Hough image (direction: distance).

Default value: 5

Typical range of values: 0 ≤ DistGap DistGap DistGap DistGap DistGap distGap

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

Angles (in radians) of the detected lines' normal vectors.

Typical range of values: -1.5707963 ≤ Angle Angle Angle Angle Angle angle ≤ 3.1415927

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

Distance of the detected lines from the origin.

Number of elements: Dist == Angle

Typical range of values: 0 ≤ Dist Dist Dist Dist Dist dist

Result

The operator hough_lineshough_linesHoughLineshough_linesHoughLinesHoughLines 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

thresholdthresholdThresholdthresholdThresholdThreshold, skeletonskeletonSkeletonskeletonSkeletonSkeleton

Possible Successors

select_matching_linesselect_matching_linesSelectMatchingLinesselect_matching_linesSelectMatchingLinesSelectMatchingLines

See also

hough_line_transhough_line_transHoughLineTranshough_line_transHoughLineTransHoughLineTrans, gen_region_hlinegen_region_hlineGenRegionHlinegen_region_hlineGenRegionHlineGenRegionHline, hough_circleshough_circlesHoughCircleshough_circlesHoughCirclesHoughCircles

Module

Foundation


ClassesClassesClassesClasses | | | | Operators