skimage 0.17.2

NotesParametersReturnsBackRef
hough_ellipse(image, threshold=4, accuracy=1, min_size=4, max_size=None)

Notes

The accuracy must be chosen to produce a peak in the accumulator distribution. In other words, a flat accumulator distribution with low values may be caused by a too low bin size.

Parameters

image : (M, N) ndarray

Input image with nonzero values representing edges.

threshold : int, optional

Accumulator threshold value.

accuracy : double, optional

Bin size on the minor axis used in the accumulator.

min_size : int, optional

Minimal major axis length.

max_size : int, optional

Maximal minor axis length. If None, the value is set to the half of the smaller image dimension.

Returns

result : ndarray with fields [(accumulator, yc, xc, a, b, orientation)].

Where (yc, xc) is the center, (a, b) the major and minor axes, respectively. The :None:None:`orientation` value follows skimage.draw.ellipse_perimeter convention.

Perform an elliptical Hough transform.

Examples

This example is valid syntax, but we were not able to check execution
>>> from skimage.transform import hough_ellipse
... from skimage.draw import ellipse_perimeter
... img = np.zeros((25, 25), dtype=np.uint8)
... rr, cc = ellipse_perimeter(10, 10, 6, 8)
... img[cc, rr] = 1
... result = hough_ellipse(img, threshold=8)
... result.tolist() [(10, 10.0, 10.0, 8.0, 6.0, 0.0)]
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

skimage.transform.hough_transform.hough_ellipse

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /skimage/transform/hough_transform.py#115
type: <class 'function'>
Commit: