skimage 0.17.2

NotesParametersReturns
_table_lookup(image, table)

Notes

The pixels are numbered like this:

0 1 2
3 4 5
6 7 8

The index at a pixel is the sum of 2**<pixel-number> for pixels that evaluate to true.

Parameters

image : ndarray

A binary image

table : ndarray

A 512-element table giving the transform of each pixel given the values of that pixel and its 8-connected neighbors.

border_value : bool

The value of pixels beyond the border of the image.

Returns

result : ndarray of same shape as `image`

Transformed image

Perform a morphological transform on an image, directed by its neighbors

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/morphology/_skeletonize.py#523
type: <class 'function'>
Commit: