Pink 0.9

mask.c File Reference

applies a binary mask to an image More...


Detailed Description

applies a binary mask to an image

Usage: mask in.pgm mask.pgm out.pgm

Description: For each pixel x, if mask[x] == 0 then out[x] = 0 else out[x] = in[x] Images must be of the same dimensions.

Types supported: byte 2D-3D, long 2D-3D, float 2D-3D, complex 2D-3D

Category: arith

Author:
Michel Couprie