Pink 0.9

div.c File Reference

pixelwise division of two images More...


Detailed Description

pixelwise division of two images

Usage: div in1.pgm in2.pgm out.pgm

Description: For each pixel x such that in2[x] != 0, out[x] = in1[x] / in2[x]. For each pixel x such that in2[x] = 0, out[x] = 0. 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