I'm working with the HDR+ Burst Photography Dataset. The burst RAW images are provided in DNG format. For each image, an additional low-resolution floating point lens shading map (encoded as .TIFF) is provided in order to perform lens shading correction.
I would like to programmatically correct the lens shading of the raw images using the provided gains but I can't find an article or paper that describes the correct procedure. What would be the formulas I need to implement in order to correctly apply such gains to the raw image?