Pink 0.9

scale.c File Reference

product of an image by a scalar More...


Detailed Description

product of an image by a scalar

Usage: scale in.pgm const out.pgm

Description: For each pixel x, out[x] = in[x] * const. 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