Pink 0.9

pow.c File Reference

raises the value of each pixel to the pth power More...


Detailed Description

raises the value of each pixel to the pth power

Usage: pow in.pgm p out.pgm

Description: For each pixel x, out[x] = in[x]^p. If the image is a byte image, and if out[x] exceeds 255, then out[x] is set to 255.

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

Category: arith

Author:
Michel Couprie