Pink 0.9

normalize.c File Reference

normalization of grayscale values More...


Detailed Description

normalization of grayscale values

Usage: normalize in.pgm [[nmin nmax] out.pgm]

Description: Grayscale of in.pgm values are normalized to span the range of [nmin...nmax]. The parameters nmin and nmax are optional. For byte and int32_t images, the default values are nmin = 0 and nmax = 255. For float images, the default values are nmin = 0 and nmax = 1.

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

Category: arith

Author:
Michel Couprie