skimage 0.17.2

ParametersReturns
label_distant_points(xs, ys, min_xdistance, min_ydistance, max_points)

The first point is always accpeted and all subsequent points are selected so that they are distant from all their preceding ones.

Parameters

xs : array

X coordinates of points.

ys : array

Y coordinates of points.

min_xdistance : int

Minimum distance separating points in the x dimension.

min_ydistance : int

Minimum distance separating points in the y dimension.

max_points : int

Max number of distant points to keep.

Returns

should_keep : array of bool

A mask array for distant points to keep.

Keep points that are separated by certain distance in each dimension.

Examples

See :

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#379
type: <class 'function'>
Commit: