Main Page   Modules   File List  

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, long 2d, long 3d

Category: arith

Author:
Michel Couprie

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