Usage: average in1.pgm in2.pgm [alpha] out.pgm
Description: The default value for the optional parameter alpha is 0.5 . For each pixel x, out[x] = alpha * in1[x] + (1 - alpha) * in2[x]. If both images are byte images, and if out[x] exceeds 255, then out[x] is set to 255. Images must be of the same dimensions.
Types supported: byte 2d, byte 3d, long 2d, long 3d, float 2d, float 3d
Category: arith