Hello, I would like to see if anyone has any idea of how to median stack raw files before demosaicing, and render a new raw file, preferably higher in bit depth, yet reads like the original file by raw processors.
To explain the intended use, I have cameras, that have a mix of fixed pattern noise (line noise and amp glow) as well as random noise in the deep shadows. I know Rawtherapee (my raw processor of choice) has a dark frame noise subtraction feature, and know how to use it, but it is more useful for hot pixels for low ISO long exposure than high ISO with fixed pattern noise. This is because if there is enough random noise that if I were to use a single dark frame, it would cancel out the fixed pattern noise, but increase the variance of the random noise, thereby making the signal to noise ratio poorer. The solution to this is to mean/median the dark frames, but if the subtraction is done after the raw develop, then it potentially raises issues with the log transform, color matrix and other non-linearities that make the subtraction less accurate. Higher bit depth of the new raw file might be needed, as the extreme shadows information that I am trying to make use of is likely between the steps of the linear 12 bit file, but is dithered by the random noise, but I am not sure this will be 100% needed.
Since this would be used for cinema raw videography with the BMPCC, with thousands of light frames to render, doing the median of multiple dark frames for each raw light frame would be excessively computationally intensive, and would prefer to create a master raw dark frame that was born out of the mean/median of multiple dark frame, that I could use to subtract from each video frame.