**Name**

**fencode** Encode a fimage : return bit rate for lossless compression

**Command Synopsis**

**fencode** *U* *.*

U: input fimage

. (screen output) : best rate (bit per pixel)

**Function Summary**

double fencode (U )

Fimage U ;

**Description**

This module computes the bit rate (bit per pixel) needed to encode the input fimage that is, to perform lossless compression on it.

Several algorithms are considered, and the bit rate returned by the function is the best bit rate over all the following algorithms : entropy coding, arithmetic coding, predictive arithmetic coding.

See the module `arencode2`

for more information on the arithmetic
coding algorithms.

**See Also**

**Version 0.0**

Last Modification date : Thu Nov 29 20:23:57 2001

**Author**

Jacques Froment