Table of Contents

Method HoughPoint2Line

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

HoughPoint2Line(Point, InputArray, AngleRangeOption, HoughDeskewOption, RulesOption)

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

public static Vec4i HoughPoint2Line(Point houghPoint, InputArray srcImgInfo, AngleRangeOption angleRange = AngleRangeOption.ARO_315_135, HoughDeskewOption makeSkew = HoughDeskewOption.DESKEW, RulesOption rules = RulesOption.IGNORE_BORDERS)

Parameters

houghPoint Point

Point in Hough space.

srcImgInfo InputArray

The source (input) image of Hough transform.

angleRange AngleRangeOption

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

makeSkew HoughDeskewOption

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

rules RulesOption

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

Returns

Vec4i

Coordinates of line segment corresponded by point in Hough space.

Remarks

If rules parameter set to RO_STRICT then returned line cut along the border of source image. 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.