08.01.2013 Views

DigitalVideoAndHDTVAlgorithmsAndInterfaces.pdf

DigitalVideoAndHDTVAlgorithmsAndInterfaces.pdf

DigitalVideoAndHDTVAlgorithmsAndInterfaces.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 38.12 Compression<br />

ratio control in JPEG is<br />

effected by altering the<br />

quantizer matrix: The larger<br />

the entries in the quantizer<br />

matrix, the higher the<br />

compression ratio. The<br />

higher the compression ratio,<br />

the higher the reconstruction<br />

error. At some point,<br />

compression artifacts will<br />

become visible.<br />

DCT Q VLE<br />

DCT -1<br />

Q<br />

JPEG performance is loosely characterized by the error<br />

between the original image data and the reconstructed<br />

data. Metric such as mean-squared error (MSE) are used<br />

to objectify this measure; however, MSE (and other<br />

engineering and mathematical measures) don’t necessarily<br />

correlate well with subjective performance. In<br />

practice, we take care to choose quantizer matrices<br />

according to the properties of perception. Imperfect<br />

recovery of the original image data after JPEG decompression<br />

effectively adds noise to the image. Imperfect<br />

reconstruction of the DC term can lead to JPEG’s 8×8<br />

blocks becoming visible – the JPEG blocking artifact.<br />

The lossiness of JPEG, and its compression, come<br />

almost entirely from the quantizer step. The DCT itself<br />

may introduce a small amount of roundoff error; the<br />

inverse DCT may also introduce a slight roundoff error.<br />

The variable-length encoding and decoding processes<br />

are perfectly lossless.<br />

Compression ratio control<br />

The larger the entries in the quantizer matrix, the higher<br />

the compression ratio. Compression ratio control in<br />

JPEG can be achieved by altering the quantizer matrix,<br />

as suggested by the manual control sketched in<br />

Figure 38.12. Larger step sizes give higher compression<br />

ratios, but image quality is liable to suffer if the step<br />

sizes get too big. Smaller step sizes give better quality,<br />

at the expense of poorer compression ratio. There is no<br />

easy way to predict, in advance of actually performing<br />

the compression, how many bytes of compressed data<br />

will result from a particular image.<br />

CHAPTER 38 JPEG AND MOTION-JPEG (M-JPEG) COMPRESSION 457<br />

Q -1<br />

VLE -1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!