A python script generating a gain map from pixelwise histograms from either fluorescence or sample data.