probabilistic-hough-line

probabilistic_hough_line

skimage.transform.probabilistic_hough_line(img, threshold=10, line_length=50, line_gap=10, theta=None) [source]

Return lines from a progressive probabilistic line Hough transform.

Parameters:

img : (M, N) ndarray

Input image with nonzero values representing edges.

threshold : int, optional (default 10)

Threshold

line_length : int, optional (default 50)

Minimum accepted length of detected lines. Increase the parameter to extract longer lines.

line_gap : int, optional, (default 10)

Maximum gap between pixels to still form a line. Increase the parameter to merge broken lines more aggresively.

theta : 1D ndarray, dtype=double, optional, default (-pi/2 .. pi/2)

Angles at which to compute the transform, in radians.

Returns:

lines : list

List of lines identified, lines in format ((x0, y0), (x1, y0)), indicating line start and end.

References

[R375] C. Galamhos, J. Matas and J. Kittler, “Progressive probabilistic Hough transform for line detection”, in IEEE Computer Society Conference on Computer Vision and Pattern Recognition, 1999.
doc_scikit_image
2017-01-12 17:22:52
Comments
Leave a Comment

Please login to continue.