A Matlab function that takes 3 images and returns the average of the combined grayscale values as an image.