The detection of peaks and valleys in a 1d-vector or 2d-array (image)
window
and cu
need to specified in params={'window': 7, 'cu': 1}
See the documentation pages for the details!
Thank you for this awesome contribution @carolinegoehner
plot_mesh
functionality.Update requirements
fp.imread(path)
fp.plot(xlabel='x-axis', ylabel='yaxis')
fp.plot_persistence(xlabel='x-axis', ylabel='yaxis')
# Import library
from findpeaks import findpeaks
# Initialize
fp = findpeaks(method='topology')
# Example 1d-vector
X = fp.import_example('1dpeaks')
# Fit topology method on the 1d-vector
results = fp.fit(X)
# Plot the results
fp.plot_persistence(fontsize_ax1=12, fontsize_ax2=14)
# Remove labels for ax1
fp.plot_persistence(fontsize_ax1=None, fontsize_ax2=14)
params
changed into params_caerus