Skip to content

Xunius/python_peak_promience2d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

python_peak_promience2d

Compute peak prominence on 2d array using contour method using numpy and matplotlib

The prominence of a local maximum (peak) is defined as

the height of the peak's summit above the lowest contour line encircling it but containing no higher summit.

See wikipedia for more details.

This module takes a surface in R3 defined by 2D arrays of X, Y and Z, and use enclosing contours to find local maxima and their prominences.

Optionally, peaks with small prominence or area can be filtered out.

See a toy example below:

About

Computes 2D peak prominence

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages