HoughLinesPointSet
import { HoughLinesPointSet } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;pointInput vector of points. Each vector must be encoded as a Point vector
(x,y). Type must be CV_32FC2 or CV_32SC2.linesOutput 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_maxMax count of Hough lines.
threshold%Accumulator threshold parameter. Only those lines are returned that get enough votes (
>\texttt{threshold}).min_rhoMinimum value for
\rhofor the accumulator (Note:\rhocan be negative. The absolute value|\rho|is the distance of a line to the origin.).max_rhoMaximum value for
\rhofor the accumulator.rho_stepDistance resolution of the accumulator.
min_thetaMinimum angle value of the accumulator in radians.
max_thetaUpper 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_stepAngle 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.