Skip to content

ximgproc_HoughPoint2Line

Extended image processingfunctionOpenCV 5.0.0
import { ximgproc_HoughPoint2Line } from '@banou/opencv-wasm'

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

ARGUMENTShoughPoint, srcImgInfo, angleRange, makeSkew
FUNCTIONximgproc_HoughPoint2Line
RETURN TYPEVec4i
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Calculates coordinates of line segment corresponded by point in Hough space.

retval: [Vec4i] Coordinates of line segment corresponded by point in Hough space.

Remark: s If rules parameter set to RO_STRICT then returned line cut along the border of source image.

Remark: s If rules parameter set to RO_WEAK then in case of point, which belongs the incorrect part of Hough image, returned line will not intersect source image.

The function calculates coordinates of line segment corresponded by point in Hough space.

ximgproc_HoughPoint2Line(houghPoint: Point, srcImgInfo: Mat, angleRange: number, makeSkew: number, rules: number): Vec4i;
4 available overloads
ximgproc_HoughPoint2Line(houghPoint: Point, srcImgInfo: Mat): Vec4i;
ximgproc_HoughPoint2Line(houghPoint: Point, srcImgInfo: Mat, angleRange: number): Vec4i;
ximgproc_HoughPoint2Line(houghPoint: Point, srcImgInfo: Mat, angleRange: number, makeSkew: number): Vec4i;
ximgproc_HoughPoint2Line(houghPoint: Point, srcImgInfo: Mat, angleRange: number, makeSkew: number, rules: number): Vec4i;
houghPoint

Point in Hough space.

srcImgInfo

The source (input) image of Hough transform.

angleRange

The part of Hough space where point is situated, see cv::AngleRangeOption

makeSkew

Specifies to do or not to do image skewing, see cv::HoughDeskewOption

rules

Specifies strictness of line segment calculating, see cv::RulesOption

Returns

The Vec4i result.

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.