Hi tracypunshon
We can provide a script that will calculate the sum for you, but the issue is how do you then use that sum value? What equation would you use to turn that sum into concentration values for your image pixels? If we can work out the best approach for that, we can put it all into a script for you.
Kind regards,
Bence