{ } Raw JSON

bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / transform / hough_transform / probabilistic_hough_line

function

skimage.transform.hough_transform:probabilistic_hough_line

source: /dev/scikit-image/src/skimage/transform/hough_transform.py :250

Signature

def   probabilistic_hough_line ( image threshold = 10 line_length = 50 line_gap = 10 theta = None rng = None )

Summary

Return lines from a progressive probabilistic line Hough transform.

Parameters

image : ndarray, shape (M, N)

Input image with nonzero values representing edges.

threshold : int, optional

Threshold

line_length : int, optional

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

line_gap : int, optional

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

theta : ndarray of dtype, shape (K,), optional

Angles at which to compute the transform, in radians. Defaults to a vector of 180 angles evenly spaced in the range [-pi/2, pi/2).

rng : {`numpy.random.Generator`, int}, optional

Pseudo-random number generator. By default, a PCG64 generator is used (see numpy.random.default_rng). If rng is an int, it is used to seed the generator.

Returns

lines : list

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

Aliases

  • skimage.transform.probabilistic_hough_line