Channel Combination puts gray images together as the channels of a color image: the red, green and blue masters of a monochrome camera, or narrowband masters mapped to colors. The images can also be the components of a color space, CIE L*a*b*, L*c*h*, XYZ, HSV or HSI; and instead of making a new image, Channel Combination can replace some components of an existing color image, its lightness for instance.

Categories
  • Channel Management
  • Color
Keywords
  • channel combination
  • combine channels
  • RGB combination
  • LRGB
  • narrowband
  • SHO
  • HOO
  • Hubble palette
  • color spaces
  • CIE L*a*b*
  • CIE L*c*h*
  • CIE XYZ
  • HSV
  • HSI
  • replace lightness
  • astrometric solution
  • PixInsight ChannelCombination

1Introduction

A monochrome camera records each filter as a gray image. To see color, the images become the channels of one color image: red, green and blue for a natural color image, or sulfur, hydrogen and oxygen for the Hubble palette. Channel Combination does this with open images of the same size, named in a table of three rows.

The rows need not be red, green and blue. In CIE L*a*b* they are the lightness and the two color components; in CIE L*c*h* the lightness, the chroma and the hue; in HSV and HSI the hue, the saturation and the value or intensity; in CIE XYZ the three tristimulus values. Combined in a color space, they are converted to RGB. That is how an image taken apart with Channel Extraction is put back together after one of its components was processed alone.

Channel Combination is our own engine, with the parameters and channel names of PixInsight's ChannelCombination: a PixInsight icon of ChannelCombination opens here, and the panel saves one that PixInsight opens. Create a new image is our own setting, for what PixInsight decides by where the icon is dropped.

The red, green and blue masters of the Wizard Nebula
Three gray masters. A red, green and blue masters of the Wizard Nebula, each shown with its own automatic screen stretch.
The color image combined from the three masters
Combined. The new color image Channel Combination made of them, shown with an automatic unlinked screen stretch. Its colors still need Background Extraction, Background Neutralization and Color Calibration.

2Quick Start

  1. Open the gray masters, all of the same size.
  2. Choose Process > Channel Management > Channel Combination.
  3. In the Channels table, pick the image of each row in the list beside it: R, G and B.
  4. Click Apply. The color image arrives as a new image, named after its sources with _RGB at the end: M31_R, M31_G and M31_B make M31_RGB.

3Interface & Parameters

The panel has one section, Combination, which folds away with the arrow beside its title. Under it are the image the process applies to with the live preview's eye, the buttons and the system bar along the bottom.

The Channel Combination panel
The Channel Combination panel with the three masters in its table. A new image is not previewed, and the panel says so above the Applies to row.

3.1Combination

Create a new image: On, the default, the channel images make a new color image. Off, they replace the enabled components of the color image the process is applied to, and the other components keep that image's own.

Color space: What the three rows are: RGB, the default, the channels; or the components of CIE XYZ, CIE L*a*b*, CIE L*c*h*, HSV or HSI. The rows of the table are named after the components. The CIE spaces are computed in sRGB with a D50 white, PixInsight's default.

Channels: A row for each channel or component. Use includes it; Image names the gray image it comes from, picked among the open images or typed. An empty name, shown as Automatic, is the image's name and the channel's suffix: M31_R, M31_G, M31_B for an image named M31, and, for a new image made with M31_R in front, M31 is the prefix. The new image is named after its sources: their common name without the channels' suffixes, or what all their names start with (NGC7380_SII, NGC7380_Ha and NGC7380_OIII make NGC7380_RGB), and RGB alone when they have nothing in common, as R, G and B. A component not used keeps the image's own when the process is applied to an image, and is neutral in a new image: 0, or the middle for a* and b*.

Inherit the astrometric solution: On, the default, a new image takes the astrometric solution of the first channel image that has one, in the table's order, or else of the image the process is applied to when it is of the same size. A solution of an image of another size is never written, and the Log says why. Off, the new image has none. Applied to an image, the image keeps its own.

3.2Apply, Preview and Instance

Live preview (the eye): At the end of the Applies to row; Preview in the system bar is the same switch. With Create a new image off, the image shows the components replaced in the part in view, as the settings change, with the banner "PREVIEW only, nothing applied"; the image itself does not change until Apply. With a new image there is nothing to preview on the image in front, and the panel says so.

Applies to: The image Channel Combination works with, chosen in a list of the open images. It shows the image in front, and follows it as we bring other images to the front. Picking another image in the list makes the panel work on that one, its live preview included, without bringing it to the front; the pick stays while we work on other images, and Follow Active, the small button that appears beside the list, makes the panel follow the image in front again. An image that a tool or a run is working on is listed, but cannot be picked. For a new image, it gives the new image's name and, possibly, its astrometric solution.

Apply: Combines the channel images. A new image arrives in its own tab, in the sample format of the first channel image, and the image in Applies to is only read. With Create a new image off, the image in Applies to changes, in one history step that Undo takes back, through its mask if it has one. Every channel image must be open, gray and of the same size, the image's size when components are replaced; otherwise nothing is done and the Log says which image is wrong.

Instance: Shows the process as the panel has it now, as text: the settings as a DSPX process (.dsproc) or as a PixInsight process icon (.xpsm) of ChannelCombination, chosen under Format. Copy puts the text on the clipboard; Save... saves it as a file and puts it on the Process Shelf.

Reset: Puts every setting back to its default.

The system bar along the bottom of the panel has the same commands as small icons: at the left, drag to apply and Apply; at the right, Instance, Help (this page) and Reset. Drag to apply, the first icon, carries the process with its settings: dropped on an image's window, it applies them to that image, whatever image the panel works on; dropped on the Process Shelf, it is kept there as a row of its own. With Edit > Preferences > Layout > Hide classic buttons, the bar alone has them.

The Log after Channel Combination
The Log names the new image: here RGB, since the sources R, G and B have no name in common.

4Narrowband Palettes

The same table maps narrowband masters to colors. The Hubble palette, SHO, puts sulfur in red, hydrogen alpha in green and oxygen in blue; since hydrogen is usually much the strongest, the result is green until SCNR removes the excess. A bicolor image, HOO, puts hydrogen in red and oxygen in green and blue: in Channel Combination the same image can be named in two rows. A mixture of channels in a row, such as half hydrogen and half oxygen, is a job for Pixel Math.

5Replacing Components

With Create a new image off, the process changes the color image it is applied to. In CIE L*a*b* with only the L* row used, a processed lightness replaces the image's own while its colors stay: the image taken apart by Channel Extraction and put back after the lightness was sharpened or denoised alone. In HSV, a new value or saturation can be put in the same way.

6Usage Tips and Tricks

Registered masters. The channels must be aligned to each other: masters registered in the same pre-processing session are.

Balance after combining. The new image keeps each master's own levels, so its colors are rarely right at once: gradients, the background and the white balance come next, while the data is still linear.

Unlinked to look, linked to judge. An unlinked screen stretch shows the combined image balanced; a linked one shows the real balance of its channels, which is what the calibration processes will correct.

Channel Extraction: the reverse, a color image's channels or components as gray images.

LRGB Combination: a luminance image as the lightness of a color image.

Pixel Math: channels mixed by an expression.

SCNR: removes the green of the Hubble palette.