Add the function 'calculate_intensity'

This function calculate the mean intensity of the fluorescence.