Login  Register

Re: Finding Multiple Peaks in a Plot Profile

Posted by Tiago Ferreira-2 on Mar 18, 2014; 12:45pm
URL: http://imagej.273.s1.nabble.com/Finding-Multiple-Peaks-in-a-Plot-Profile-tp5006959p5006970.html

On Mar 18, 2014, at 06:28, Burni <[hidden email]> wrote:
> how the program is finding the peaks exactly?

Peak detection is performed by MaximumFinder, the plugin that implements the
Process>Find Maxima... command. The source code is here:
http://imagej.nih.gov/ij/developer/source/ij/plugin/filter/MaximumFinder.java.html
This is possible because last year Norbert Vischer made MaximumFInder aware of 1D
arrays.


> The best results would be achieved if the individual peaks were the result of a
> Gaussian or a Lorentz fit (...) Do you know if there's an addon or script that
> does this?
Perhaps you could use the built-in CurveFitter (Analyze>Tools>Curve Fitting...)?

In a macro:

run("Blobs (25K)");
makeLine(132, 12, 143, 33);
run("Plot Profile");
Plot.getValues(x, y);
Fit.doFit("Gaussian", x, y);
Fit.plot();

Best,
-tiago
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html