Main Page   Modules   File List  

add.c File Reference

pixelwise addition of two images More...


Detailed Description

pixelwise addition of two images

Usage: add in1.pgm in2.pgm out.pgm

Description: For each pixel x, out[x] = in1[x] + 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

Author:
Michel Couprie

Generated on Fri Dec 17 11:59:36 2004 for Pink by doxygen1.2.18