I understand what you are doing. But... with PI's LRGBCombiantion tool you can do exactly that!
You can throw away the luminance of RGB -which I call
the implicit luminance- as the very first step of LRGB combination:
- Open the four
linear raw images (R, G, B, L)
- Place all of them in the corresponding slots of LRGBCombination.
- Leave all parameters with default values (channel weights = 1, Uniform checked, functions = 0.5, no noise reduction).
- Apply the process globally (click the blue sphere button)
Now you have a LRGB image that has
no implicit luminance at all. The luminance comes now exclusively from the L image.
Furthermore, you have a very important advantage: you can apply deconvolution to the luminance of this LRGB image, since it is still linear (with the help of ScreenTransferFunction of course). Thanks to the ability of PI to extract, process and reinsert the luminance on the fly, you can deconvolve the luminance of the LRGB image and see the true effect on the final color image. This is much better than deconvolving the isolated L image before LRGB combination (the traditional method). If you decide to do this, in these cases you should leave the Linear check box of Deconvolution unchecked, since there is no need to force extraction of a linear luminance, as it is already linear. ATrousWaveletTransform also benefits greatly from working with a linear image.
The LRGB image can be stretched in the usual way after deconvolution, wavelets, etc. I think this is just what you are pursuing.
It's great to get these topics rethought. Isn't this a really interesting forum? 8)