bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / 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-dimensionalThe raveled view of a n-dimensional array.
flags: ndarrayAn 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: ndarrayA one-dimensional array that contains the offsets to find the connected neighbors for any index in
image.
Aliases
-
skimage.morphology._extrema_cy._local_maxima