{ } Raw JSON

bundles / skimage latest / skimage / morphology / _extrema_cy / _local_maxima

fused_cython_function

skimage.morphology._extrema_cy:_local_maxima

Signature

def   _local_maxima ( image flags neighbor_offsets )

Summary

Detect local maxima in n-dimensional array.

Extended Summary

Inner function to local_maxima that detects all local maxima (including plateaus) in the image. The result is stored inplace inside flags with the value of "QUEUED_CANDIDATE".

Parameters

image : ndarray, one-dimensional

The raveled view of a n-dimensional array.

flags : ndarray

An array of flags that is used to store the state of each pixel during evaluation and is MODIFIED INPLACE. Initially, pixels that border the image edge must be marked as "BORDER_INDEX" while all other pixels should be marked with "NOT_MAXIMUM".

neighbor_offsets : ndarray

A one-dimensional array that contains the offsets to find the connected neighbors for any index in image.

Aliases

  • skimage.morphology._extrema_cy._local_maxima