Images used in the following algorithms are by Bruce Cowan.
Swap the values of two channels in an RGB image.
Calculate the distance between two colours.
Convert an image with N channels to be a greyscale version of that image.
Make edges appear white in the image.
Caclulate the Luminance of a pixel
Reflect the contents of the top of the image around the midpoint.
Convert an image with N channels to be the inverse of the channels.
Reduce the colours within an image.
Copy the top half of the image to the bottom half