I’m trying to analyze a set of immunofluorescence staining images. I already have a short macro to detect the actual signal but now I struggle to measure a background signal for background normalization.
My PI suggested to set a treshold for every picture to measure the mean intensities of the first 3% or 10% of the histogram. However, I have to set this threshold manually for every single image because the histograms are quite different. Is there a way to set the treshold to a set relative value automatically so I can include it into a macro?
Thank you so much in advance!