Pink 0.9

sub.c File Reference

substracts an image from another one More...


Detailed Description

substracts an image from another one

Usage: sub in1.pgm in2.pgm out.pgm

Description: For each pixel x, out[x] = in1[x] - in2[x]. For byte and int32_t image types, if out[x] < 0, then out[x] is set to 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