TopTechnical DictionaryCompression

Compression

General

 

The original data representing the images and video sequences stored in the RGB format include redundant and non-essential information. The redundant information can be restored based on the remaining image data, while non-essential information can be removed without deterioration of the image quality. A compression algorithm automatically evaluates which non-essential information, when removed will result in least distortion. A compression ratio depends on the content and acceptable loss of image quality. The graph below (Fig. 1) shows a theoretical relationship between the data stream and the distortions.

 

Fig. 1. Image distortion as the function of data stream size.

 

A - Data stream B - Distortion

The compression can be defined as intraframe or interframe. The intraframe compression involves coding of the entire image, irrespective of the remaining frames. The interframe compression depends on the previous and subsequent frames.

 

Colour rendering

 

The compression usually applies to colour images. Any displayed image is a combination of three primary colours: red, green and blue. Each pixel is represented by a sum of those three components. However, data stored this way may take a lot of storage space. Due to the nature of the human eye, it is more convenient to store the images as luminance Y and chrominances Cr and Cb, where:

 

Y = 0.299R + 0.587G + 0.114B,
Cb = 0.564(B-Y), Cr = 0.713(R-Y). 

The human eye is more sensitive to changes in the brightness of points represented by the luminance and to a lesser degree to changes in colour represented by the chrominance. Thus, the chrominance signal can be decimated. In analogue television system including PAL, SECAM or NTSC, this property has been utilized to transmit the chrominance signal using half the bandwidth without any deterioration of the image quality.

 

Intraframe compression

 

Modern intraframe compression techniques are based on the fact that the video signal spectrum is focused around the lowest frequency. Thus, a signal spectrum can be calculated and a small number of significant coefficients (usually at the lowest frequencies) can be stored, while other (usually corresponding to the higher frequencies) can be stored using less bytes.

 

In practice, the image is divided into 8x8 point blocks and a cosine transform (modified Fourier transform) is calculated. The calculated string is divided by a special quantization table giving a string of repeating zero digits. The representation is stored as a pair including the number of zero digits and a non-zero coefficient value. The results are stored using codes with variable bit length. It means that the frequently occurring pairs are assigned shorter codes, and rarely occurring pairs are assigned longer codes.

 

Interframe compression

 

The interframe compression is based on the fact that the previous and subsequent frame in the video sequence are often similar. It is usually enough to transmit a prediction error, i.e. the difference between the image and its prediction. In the most simple case, it can be predicted that the subsequent image is identical to the previous one.

 

In more advanced encoders, a motion compensation is used to predict the subsequent image. The most similar squares in the subsequent image are identified for 16x16 luminance samples. A difference in the position of those blocks is referred to as a motion vector. With or without the motion compensation, depending on the encoder used, a predicted image is generated and compared with the actual image. The difference, encoded using similar techniques as used in the intraframe encoding is send to the receiver.

 

Fig. 2. Motion prediction rules in the interframe compression

 

A - 16x16 block in the previous image B - the most similar 16x16 block in the actual image


Net:0.00 USD
Gross:0.00 USD
Weight:0.00 kg
Especially recommended
EXTENDER HDMI+USB-EX-100
HDMI+USB-EX-100

Net: 100.40 USD

HDD FOR DVR HDD-WD20PURZ 2TB 24/7 WESTERN DIGITAL
HDD-WD20PURZ

Net: 65.63 USD

Switch PoE GTS-B1-10-82G 10-PORT
GTS-B1-10-82G

Net: 99.73 USD

AHD, HD-CVI, HD-TVI, PAL CAMERA APTI-H24C6-2812W - 1080p 2.8 ... 12 mm
APTI-H24C6-2812W

Net: 61.91 USD

IP CAMERA DS-2CD1321-I(2.8MM)(D) - 1080p HIKVISION
DS-2CD1321-I(2.8MM)(D)

Net: 96.35 USD

SWITCHING ADAPTER 12V/1A/5.5*P100
12V/1A/5.5*P100

Net: 302.30 USD

Switch PoE GTS-B1-10-82G 10-PORT
GTS-B1-10-82G

Net: 99.73 USD

GUARDS ROUTES PORTABLE READER PATROL-II-LCD
PATROL-II-LCD

Net: 180.76 USD

POWER SUPPLY ADAPTER 12V/3A/5.5
12V/3A/5.5

Net: 6.68 USD

 
60-713 Poznań, Graniczna 10
tel.: +(48) 61 864 69 66
e-mail: shop@delta.poznan.pl
Working hours
Mon.-Fri.: 8.00 - 19.00
Sat.: 8.00 - 14.00
Sales Department, Shipments
tel.: +(48) 61 864 69 66
e-mail: shop@delta.poznan.pl
Technical Support
tel.: +(48) 61 864 69 98
e-mail: support@delta.poznan.pl
(c) 2001-2019 DELTA