Created
January 26, 2023 10:26
-
-
Save romainGuiet/c49b33a1478688f55b451f2054cdb537 to your computer and use it in GitHub Desktop.
find maxima example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ ImagePlus imp | |
#@ Double tolerance | |
nT = imp.getNFrames() | |
imp.getStack(). | |
means_vals = (1..nT).collect{ | |
imp.setT(it) | |
return imp.getStatistics().mean | |
} | |
println new MaximumFinder().findMaxima(means_vals as double[] , tolerance, false) | |
return | |
import ij.plugin.filter.MaximumFinder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment