Pink 0.9

addconst.c File Reference

adds a constant value to an image More...


Detailed Description

adds a constant value to an image

Usage: addconst in.pgm const [out.pgm]

Description: For each pixel x, out[x] = in[x] + const. If out[x] exceeds 255, then out[x] is set to 255.

If out.pgm is not specified, then out.pgm = in.pgm.

Types supported: byte 2d, byte 3d, int32_t 2d, int32_t 3d

Category: arith

Author:
Michel Couprie