skimage 0.17.2

NotesParametersRaisesReturnsBackRef
unique_rows(ar)

In particular, if given an array of coordinates of shape (Npoints, Ndim), it will remove repeated points.

Notes

The function will generate a copy of :None:None:`ar` if it is not C-contiguous, which will negatively affect performance for large input arrays.

Parameters

ar : 2-D ndarray

The input array.

Raises

ValueError : if `ar` is not two-dimensional.

Returns

ar_out : 2-D ndarray

A copy of the input array with repeated rows removed.

Remove repeated rows from a 2D array.

Examples

This example is valid syntax, but we were not able to check execution
>>> ar = np.array([[1, 0, 1],
...  [0, 1, 0],
...  [1, 0, 1]], np.uint8)
... unique_rows(ar) array([[0, 1, 0], [1, 0, 1]], dtype=uint8)
See :

Back References

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

skimage.util.unique.unique_rows skimage.feature._hog._hog_channel_gradient skimage.feature._hog.hog skimage.transform._warps.warp

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/util/unique.py#4
type: <class 'function'>
Commit: