hardware implementation of data compression ... - INFN Bologna
hardware implementation of data compression ... - INFN Bologna
hardware implementation of data compression ... - INFN Bologna
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
38<br />
or, expressed as a matrix:<br />
Data <strong>compression</strong> techniques<br />
C = ASA T<br />
The inverse transform is the following one:<br />
S = BCB T<br />
(2.25)<br />
(2.26)<br />
Frequently orthonormal transforms are used, so that B = A −1 = A T ,<br />
in a way that calculating the inverse trasform reduces to:<br />
S = A T CA (2.27)<br />
Even in the bi-dimensional case, in order to reach a high <strong>compression</strong><br />
ratio, a good transform has to be chosen. For instance the JPEG<br />
standard has adopted, until the year 2000, the use <strong>of</strong> the Discrete<br />
Cosine Transform, known as DCT.<br />
If A is the matrix representing the DCT, the following relationship<br />
follows:<br />
<br />
(2j +1)iπ<br />
[A]i,j = w(i)cos<br />
j =0, 1,... ,N − 1 (2.28)<br />
2N<br />
where:<br />
⎧<br />
⎨<br />
w(i) =<br />
⎩<br />
<br />
1<br />
N <br />
2<br />
N<br />
i =0<br />
i =1,... ,N − 1<br />
Fig. 2.3 gives a graphical interpretation <strong>of</strong> (2.28).<br />
After choosing the transform, the next step consists in the quantization<br />
<strong>of</strong> the transformed image.<br />
Several approaches are possible: for example the zonal mapping foresees<br />
a preliminary analysis <strong>of</strong> the transformed coefficients statistics and<br />
alaterassignment<strong>of</strong>afixednumber<strong>of</strong>bits.<br />
The name zonal mapping comes from the assignment <strong>of</strong> a fixed number<br />
<strong>of</strong> bits depending on the zone in which each coefficient is placed in the<br />
square N × N block under study; Tab. 2.6 reports an allocation bit