{ } Raw JSON

bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / morphology / _max_tree / _max_tree_local_maxima

fused_cython_function

skimage.morphology._max_tree:_max_tree_local_maxima

Signature

def   _max_tree_local_maxima ( image output parent sorted_indices )

Summary

Find the local maxima in image from the max-tree representation.

Parameters

image : array of arbitrary type

The flattened image pixels.

output : array of the same shape and type as image.

The output image must contain only ones.

parent : array of int

Image of the same shape as the input image. The value at each pixel is the parent index of this pixel in the max-tree reprentation.

sorted_indices : array of int

List of length = number of pixels. Each element corresponds to one pixel index in the image. It encodes the order of elements in the tree: a parent of a pixel always comes before the element itself. More formally: i < j implies that j cannot be the parent of i.

Aliases

  • skimage.morphology._max_tree._max_tree_local_maxima