This does the following :
pixpipe.FileImageReader
pixpipe.ForEachPixelImageFilter
pixpipe.CanvasImageWriter
The original image:
The transformed image, with switched chanels: