Pink 0.9

float2long.c File Reference

converts a "float" image to a "int32_t" image More...


Detailed Description

converts a "float" image to a "int32_t" image

Usage: float2long in.pgm offset factor out.pgm

Description:

Applies the following tranformation to each value x in in.pgm :

X = round(offset + factor * x)

Types supported: float 2d, float 3d

Category: convert

Author:
Michel Couprie