Skip to content

HoughLinesPointSet

Image processingfunctionOpenCV 5.0.0
import { HoughLinesPointSet } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSpoint, lines, lines_max, threshold
FUNCTIONHoughLinesPointSet
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Finds lines in a set of points using the standard Hough transform.

The function finds lines in a set of points using a modification of the Hough transform.

HoughLinesPointSet(point: Mat, lines: Mat, lines_max: number, threshold: number, min_rho: number, max_rho: number, rho_step: number, min_theta: number, max_theta: number, theta_step: number): void;
point

Input vector of points. Each vector must be encoded as a Point vector (x,y). Type must be CV_32FC2 or CV_32SC2.

lines

Output destination, filled by the native operation. Output vector of found lines. Each vector is encoded as a vector<Vec3d> (votes, rho, theta). The larger the value of 'votes', the higher the reliability of the Hough line.

lines_max

Max count of Hough lines.

threshold

%Accumulator threshold parameter. Only those lines are returned that get enough votes ( >\texttt{threshold} ).

min_rho

Minimum value for \rho for the accumulator (Note: \rho can be negative. The absolute value |\rho| is the distance of a line to the origin.).

max_rho

Maximum value for \rho for the accumulator.

rho_step

Distance resolution of the accumulator.

min_theta

Minimum angle value of the accumulator in radians.

max_theta

Upper bound for the angle value of the accumulator in radians. The actual maximum angle may be slightly less than max_theta, depending on the parameters min_theta and theta_step.

theta_step

Angle resolution of the accumulator in radians.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.