Skip to content

Instantly share code, notes, and snippets.

@romainGuiet
Created January 26, 2023 10:26
Show Gist options
  • Save romainGuiet/c49b33a1478688f55b451f2054cdb537 to your computer and use it in GitHub Desktop.
Save romainGuiet/c49b33a1478688f55b451f2054cdb537 to your computer and use it in GitHub Desktop.
find maxima example
#@ 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