ilastik/ilastik — pull request #1066 by jakirkham (2014-12-19 00:55:33+00:00)
Title: Add 4 channel support for RGBA layers in the LayerViewerGui

For some reason, only 2 or 3 channels were considered to be an RGBA, but 4 was excluded. As a result, supplying 4 channels made one's layer behave as if it were grayscale. As it turns out, the rest of the function correctly handles the alpha channel with this change in place. As it is helpful to set the alpha layer in some cases (transparent background) and it behave properly, it doesn't make sense to exclude the case of 4 channels. Thus, this PR is offered to enable 4 channel/alpha support.