Main Page Modules File List
float2byte.c File Reference
converts a "float" image to a "byte" image
More...
Detailed Description
converts a "float" image to a "byte" image
Usage: float2byte in.pgm [mode] out.pgm
Description:
Depending on the value given for the (optional) parameter mode:
- mode = 0 (default) : for all x, out[x] = min(255, arrondi(in[x])).
- mode = 1 : for all x, out[x] = arrondi(in[x]) modulo 256.
- mode = 2 : scales values in the range 0-255.
- mode = 4 : truncation of the square root in the range 0-255.
- mode = 5 : truncation of the log in the range 0-255.
Types supported: float 2d, float 3d
Category: convert
- Author:
-
Michel Couprie
Generated on Fri Dec 17 11:59:37 2004 for Pink by
1.2.18