By default, color images are imported so that the first channel is red, the second channel is green and the third channel is blue. However, images imported from other formats may end up being imported with the channel order reversed. Modifying the channel colors in the viewer is easy enough, we simply need to right-click on the channel gradient and select a new color,

but the channel order cannot be modified and this must must be accounted for in the script settings.

In the script editor, under the User Settings section, you will find entries for defining the channel number for each color. Note that the first channel is channel 0. In the example below the first channel is red, the second is green, and the third is blue.

# @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ USER SETTINGS @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

# -----------------------------------------------------------------------------

# Skeleton section - Script

# INPUT_CHANNEL channel with the binary image

# is only used to read/write the voxels

# ---> imageset.get_channeldata / imageset.set_channeldata

# -----------------------------------------------------------------------------

INPUT_CHANNEL_R = 0

INPUT_CHANNEL_G = 1

INPUT_CHANNEL_B = 2

Simply type in the correct numbers for each as required.