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, optionalThreshold
line_length: int, optionalMinimum accepted length of detected lines. Increase the parameter to extract longer lines.
line_gap: int, optionalMaximum gap between pixels to still form a line. Increase the parameter to merge broken lines more aggressively.
theta: ndarray of dtype, shape (K,), optionalAngles 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}, optionalPseudo-random number generator. By default, a PCG64 generator is used (see numpy.random.default_rng). If
rngis an int, it is used to seed the generator.
Returns
lines: listList of lines identified, lines in format ((x0, y0), (x1, y1)), indicating line start and end.
Aliases
-
skimage.transform.probabilistic_hough_line