bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / morphology / _skeletonize / _table_lookup
function
skimage.morphology._skeletonize:_table_lookup
source: /dev/scikit-image/src/skimage/morphology/_skeletonize.py :538
Signature
def _table_lookup ( image , table ) Summary
Perform a morphological transform on an image, directed by its neighbors
Parameters
image: ndarrayA binary image
table: ndarrayA 512-element table giving the transform of each pixel given the values of that pixel and its 8-connected neighbors.
Returns
result: ndarray of same shape as `image`Transformed image
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.
Aliases
-
skimage.morphology._skeletonize._table_lookup