Pink 0.9

inverse.c File Reference

computes the pixelwise inverse of an image More...


Detailed Description

computes the pixelwise inverse of an image

Usage: inverse in.pgm [out.pgm]

Description: Byte images: for each pixel x, out[x] = 255 - in[x].
Long or float images: for each pixel x, out[x] = VMAX - in[x], where VMAX = max{in[x]}.

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

Types supported: byte 2d, byte 3d, long 2d, long 3d, float 2d, float 3d

Category: arith

Author:
Michel Couprie