Calcium Spark Curve Fitting

Hi everyone,

I am new to ImageJ and have a project to write a macro in which all my calcium sparks analysis be done in ImageJ. So far, I just automated the BG subtraction, normalization and ploting my data correctly.

I am just now stuck at this point. because I need to make curve fitting in order to drive the calcium sparks parameters such as rise and decay time, FWHM, FDHM and so on.

Any help, source or guide is highly appreciated.