bundles / skimage latest / 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 typeThe flattened image pixels.
output: array of the same shape and type as image.The output image must contain only ones.
parent: array of intImage 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 intList 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