Hi Juan,
I have to say I'm fascinated with this approach! Not only did I download and run your code, I went as far as to print it out and review it by hand, and run a few filter weights on my calculator to really understand the concept. As a side note, I had no idea it was possible to create plots in PixInsight - how cool!
I just did a side-by-side comparison of your approach to my approach of giving all filters equal weight and just running them through pixel math (as referenced in my previous post). Your approach gives you a very clean, color balanced image right off the bat, whereas my image requires a lot of color calibration before it even starts looking natural. I totally agree that the 'extended filter' set is clearly the best option because it truly utilizes all of the available data while adhering to a rigorous approach to color.
Just out of curiosity, how did you choose the central wavelength for the various filter sets (and specifically the extended set)? I often find myself combining data from many different wavelengths (Radio, IR, optical, UV, X-ray, etc) often in the same image (I'm the Science Imager for NASA's Chandra X-ray Observatory). How would you adapt your approach here to something like that? Often times, when working in such disparate spectral regimes, you don't see the kind of overlap of morphological structures as you do here with the Alhambra dataset. I wonder how that would affect the choice of spectra weights?
Many thanks for such an informative post!
-Joe