A method of compressing digital images acquired in CFA format that
utilizes optimized quantization matrices. The method, basing itself on
the statistical characterization of the error introduced during the
processing phase that precedes compression, appropriately modifies the
coefficients of any initial quantization matrix, even of a standard type,
obtaining a greater compression efficiency without introducing further
quality losses.