Hi there. I am new to the field of corrections and I was wondering if by having a dark field and flat field image from a test, if it is possible to obtain a formula with the offset and gain value so I can apply it to any image that comes from the sensor in order to apply a relative radiometric correction.
From what I've read the dark image gives me the offset value, right? And the relative gain value is (dark - flat)/mean(dark-flat). Is this right?
Considering that these are test images, if I want to apply this formula to real images of the sensor then I'm guessing that I have to obtain a default value from the gain and offset matrices. Maybe by getting their mean?
Not sure if this is the way to go. I've also seen that for the dark field i could make a histogram and see the value with the highest peak and maybe choose that as my offset value? But not sure how that would work for the flat image.
Any help is appreciated as I am a little bit loss on what are the best steps here.