SoftmatterLMU-RaedlerGroup / pyama

Desktop application for extracting single-cell fluorescence from single-cell time-lapse microscopy movies
MIT License
1 stars 2 forks source link

Background correction: gain by linear regression #3

Open dwoschee opened 3 years ago

dwoschee commented 3 years ago

The background correction can be improved by calculating the gain using linear regression, as suggested in the paper by Schwarzfischer et al.

Currently, the gain is approximated as per-pixel median of the quotient of interpolated background and time-dependent mean background: https://github.com/SoftmatterLMU-RaedlerGroup/pyama/blob/e3283160a92d2e43099688fca695573d968eac23/src/img_op/background_correction.py#L141-L150