Pink 0.9

mult.c File Reference

pixelwise multiplication of two images More...


Detailed Description

pixelwise multiplication of two images

Usage: mult in1.pgm in2.pgm out.pgm

Description: For each pixel x, out[x] = in1[x] * in2[x]. If both images are byte images, and if out[x] exceeds 255, then out[x] is set to 255. Images must be of the same type and same dimensions.

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

Category: arith

Author:
Michel Couprie