erdogant/findpeaks
소개
The detection of peaks and valleys in a 1d-vector or 2d-array (image)
디자인 및 미디어What you can do
- Topology Detection - Mathematically grounded peak detection using persistent homology. - - - -
- Peakdetect Method - Peak detection algorithm for noisy signals. - link - link
- Mask Detection - Local maximum filtering for 2D image analysis. - - - -
- Caerus Method - Specialized algorithm for financial time series analysis. - - - -
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalfindpeaks
findpeaks is a comprehensive Python library for robust detection and analysis of peaks and valleys in both 1D vectors and 2D arrays (images). The library provides multiple detection algorithms including topology-based persistent homology (most robust), mask-based local maximum filtering, and traditional peakdetect approaches. It can be used for time series analysis, signal processing, image analysis, and spatial data. ⭐️Star it if you like it⭐️
Star History
Key Features
| Feature | Description | Medium | Gumroad & Podcast |
|---|---|---|---|
| Topology Detection | Mathematically grounded peak detection using persistent homology. | - | - |
| Peakdetect Method | Peak detection algorithm for noisy signals. | link | link |
| Mask Detection | Local maximum filtering for 2D image analysis. | - | - |
| Caerus Method | Specialized algorithm for financial time series analysis. | - | - |
| Preprocessing | Denoising, scaling, interpolation, and image preprocessing. | - | - |
| Visualization | Rich plotting capabilities including persistence diagrams and 3D mesh plots. | - | - |
Resources and Links
- Example Notebooks: Examples
- Blog Posts: Medium
- Documentation: Website
- Bug Reports and Feature Requests: GitHub Issues
Background
Topology Method: The most robust detection method based on persistent homology from topological data analysis. It quantifies peak significance through persistence scores and provides mathematically stable results even in noisy data.
Peakdetect Method: A traditional algorithm that excels at finding local maxima and minima in noisy signals without requiring extensive preprocessing. It uses a lookahead approach to distinguish true peaks from noise-induced fluctuations.
Mask Method: Local maximum filtering approach specifically designed for 2D data (images). Employs 8-connected neighborhood analysis and background removal for spatial peak detection.
Preprocessing Pipeline: Comprehensive preprocessing capabilities including interpolation, denoising (Lee, Frost, Kuan filters), scaling, and image resizing to improve detection accuracy.
Installation
Install findpeaks from PyPI
pip install findpeaks
Install from Github source
pip install git+https://github.com/erdogant/findpeaks
Import Library
import findpeaks
print(findpeaks.__version__)
# Import library
from findpeaks import findpeaks
Quick Start
# Import library
from findpeaks import findpeaks
# Initialize with topology method (most robust)
fp = findpeaks(method='topology')
# Example data
X = fp.import_example('1dpeaks')
# Peak detection
results = fp.fit(X)
# Plot results
fp.plot()
# Plot persistence diagram
fp.plot_persistence()
Examples
1D Signal Analysis
2D Image Analysis
Financial Time Series
SAR/SONAR Image Processing
Image Denoising
References
- https://github.com/erdogant/findpeaks
- https://github.com/Anaxilaus/peakdetect
- https://www.sthu.org/blog/13-perstopology-peakdetection/index.html
Contributors
Special thanks to the contributors!
Maintainer
관련 프로젝트 살펴보기
불러오는 중…