Hello Javier @milhousito,
Welcome to the forum.
What exactly are you trying to achieve with your FRET effficiency formula? Can you explain
RiFRET relies on donor, transfer and acceptor images to calculate FRET efficiency on a pixel-by-pixel basis by taking the
ImagePlus for the corresponding channel (e.g.
donorInDImage for the donor channel), creating an
ImageProcessor from this (e.g.
ipDD, then producing a
float array from the pixels in this
Edit: To answer your question, the spectral correction factors (“S factors”) in the formulae are all
double as each S factor entered in the corresponding text field is parsed to double.
The original formula can also possibly be made easier to read to look something like this:
ipDDP[i] = (float) ((s1Factor * s2Factor * (ipDAP[i] * (1 - s3Factor * s4Factor) - ipDDP[i] * (s1Factor - s2Factor * s3Factor) - ipAAP[i] * (s2Factor - s1Factor * s4Factor))) / ((s1Factor - s2Factor * s3Factor) * (ipDDP[i] * s2Factor - ipDAP[i] * s4Factor) * alphaFactor))
The source code for RiFRET can be found here.
(I’m happy to expand on this more, and I’m aware my edit count is racking up, but I’m currently in a pharmacology lecture…)