Maxima Function
rgb2level (pic)
Transforms an rgb picture into a level one by averaging the red, green and blue channels.
rgb
level