This script is intended to transform a traditionally processed (stretched, non-linear) image to use a Hubble-style palette. It is most impactful in nebula with dark structures like M16 (the Eagle Nebula) with its "Pillars of Creation."
The standard workflow:
- Use StarNet++ to remove the stars
- Normalize RGB channels of the starless image
- To avoid oversaturating the red channel, create a synthetic channel that subtracts blue from red
- Normalize the synthetic channel
- Combine the channels by mixing the synthetic and green channels
- Red channel becomes 70% of the synthetic channel combined with 30% of the green channel
- Green channel becomes 30% of the synthetic channel combined with 70% of the green channel
- Blue channel remains the same
- Add the stars back