skimage 0.17.2

ParametersReturns
_prune_blobs(blobs_array, overlap, *, sigma_dim=1)

Parameters

blobs_array : ndarray

A 2d array with each row representing 3 (or 4) values, (row, col, sigma) or (pln, row, col, sigma) in 3D, where (row, col) ( (pln, row, col) ) are coordinates of the blob and sigma is the standard deviation of the Gaussian kernel which detected the blob. This array must not have a dimension of size 0.

overlap : float

A value between 0 and 1. If the fraction of area overlapping for 2 blobs is greater than :None:None:`overlap` the smaller blob is eliminated.

sigma_dim : int, optional

The number of columns in blobs_array corresponding to sigmas rather than positions.

Returns

A : ndarray

array with overlapping blobs removed.

Eliminated blobs with area overlap.

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/feature/blob.py#144
type: <class 'function'>
Commit: