Subband Coding (1)

Post on 06-Apr-2018

233 views 0 download

Transcript of Subband Coding (1)

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 1/42

Subband Coding

Jennie Abraham 

07/23/2009 

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 2/42

Overview

Previously, different compression

schemes were looked into – 

(i)Vector Quantization Scheme

(ii)Differential Encoding Scheme

(iii)Scalar Quantization Scheme

- Most efficient when the data exhibit

certain characteristics

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 3/42

Overview  –  cont’d 

Source data characteristics - 

Unfortunately, most source outputs

exhibit a combination of characteristics.

difficult to select a compressionscheme exactly suited to the source

output.

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 4/42

Overview - cont’d 

Decomposing the source output into

constituent parts using some method.

Each constituent part is encoded usingone or more of the methods described

previously.

enables the use of these compression

schemes more effectively.

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 5/42

Example 14.2.1

Xn

Zn

Yn

Zn

YnCompression

Scheme 1

Compression

Scheme 2

Xn

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 6/42

Example 14.2.1  –  Cont’d 

Xn = 10 14 10 12 14 8 14 12 10 8 10 12

Yn =

Xn = Yn + Zn

Zn =

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 7/42

Introduction to Subband Coding

The source output can be decomposed

into its constituent parts using digital

filters.

Each of these constituent parts will be

different bands of frequencies which

make up the source.

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 8/42

Subband Coding

A compression approach where digital

filters are used to separate the source

output into different bands of frequencies.

Each part then can be encoded

separately.

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 9/42

Filters

A filter is system that isolates certainfrequencies.

(i) Low Pass Filters

(ii) High Pass Filters

(iii) Band Pass Filters

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 10/42

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 11/42

Digital Filters

Sampling and Nyquist rule :  

If fo is the highest frequency of the signal then thesampling rate > 2fo per second can accurately

represent the continuous signal in digital form.

Extension of Nyquist rule: 

For signal with frequency components between

frequencies f1and f2  then,sampling rate = 2(f2 — f1) per second.

Violation of Nyquist rule: 

Distortion due to aliasing. 

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 12/42

Digital Filtering

The general form of the input-outputrelationships of the filter is given by

where,

{Xn}= input, {Yn}=output of the filter,

Values {ai} and {bi} = filter coefficients,N is called the taps in the filter.

FIR Filter

IIR Filter 

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 13/42

Example 14.3.1

Filter Coefficients ao = 1.25, a1= 0.5 and theinput sequence {Xn} is given by – 

then the output {Yn} is given by

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 14/42

Example 14.3.2

Consider a filter with a o = 1 and b 1 = 2.

The input sequence is a 1 followed by 0s.

Then the output is

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 15/42

Filters in literature

Design and analysis of digital filters isdetailed in Sections 14.5-14.8 of thetextbook.

A useful approach is to make use of the available literature to select thenecessary filters rather than designthem.

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 16/42

Filters used in Subband Coding

Couple of examples of – 

Quadrature Mirror Filters (QMF),

 Johnston Filter 

Smith-Barnwell Filters

Daubechies Filters

….and so on 

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 17/42

8-tap Johnston Low-Pass Filter

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 18/42

8-tap Johnston Low-Pass Filter

LP

HP

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 19/42

Filter Banks

Subband coding uses filter banks.

Filter banks are essentially a cascade of 

stages, where each stage consists of a

low-pass filter and a high-pass filter.

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 20/42

Subband Coding Algorithm

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 21/42

Subband Coding Algorithm

The three major components of this system are -

the analysis and synthesis filters,

the bit allocation scheme, and

the encoding scheme. 

A substantial amount of research has focused on

each of these components.

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 22/42

(1) Analysis

Source output analysis filter bank sub-

sampled encoded.

Analysis Filter Bank The source output is passed through a bank

of filters.

This filter bank covers the range of frequencies that make up the source output.

The passband of each filter specifies each

set of frequencies that can pass through.

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 23/42

Subband Coding Algorithm

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 24/42

(1) Analysis

Source output analysis filter bank sub-

sampled encoded.

Analysis Filter BankDecimation

The outputs of the filters are subsampled

thus reducing the number of samples.

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 25/42

(1) Analysis

Source output analysis filter bank sub-

sampled encoded.

Analysis Filter BankDecimation

The justification for the subsampling is the

Nyquist rule and its extension justifies thisdownsampling.

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 26/42

(1) Analysis

Source output analysis filter bank sub-

sampled encoded.

Analysis Filter BankDecimation

The amount of decimation depends on the

ratio of the bandwidth of the filter output tothe filter input.

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 27/42

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 28/42

(1) Analysis

Source output analysis filter bank sub-

sampled encoded.

Analysis Filter BankDecimation

Encoding

The decimated output is encoded using oneof several encoding schemes, including

ADPCM, PCM, and vector quantization.

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 29/42

(2) Quantization and Coding

Selection of the compression scheme

Allocation of bits between the subbands

allocate the available bits among thesubbands according to measure of theinformation content in each subband. 

This bit allocation procedure significantlyimpacts quality of the final reconstruction.

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 30/42

Bit Allocation

Minimizing the distortion i.e. minimizing

the reconstruction error drives the bit

allocation procedure.

Different subbandsdifferent amount of 

information.

Bit allocation procedure can have a

significant impact on the quality of the

final reconstruction

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 31/42

(3) Synthesis

Quantized and Coded coefficients are used

to reconstruct a representation of the

original signal at the decoder.

Encoded samples from each subband

decoded upsampled bank of 

reconstruction filters outputs combined

Final reconstructed output 

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 32/42

Application

The subband coding algorithm has

applications in -

Speech Coding

Audio Coding

Image Compression

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 33/42

Application to Image Compression

LL LH

HL HH

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 34/42

Example 14.12.2  –  Decomposing and

Image

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 35/42

Example 14.12.2  –  Decomposing and

Image

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 36/42

Example 14.12.2  –  Decomposing and

Image

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 37/42

Coding the Subbands

SQ

LL LH

HL HH

DiscardDPCM

Some bands  VQ

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 38/42

Example 14.12.3  –  Coding the Subbands

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 39/42

Example 14.12.3  –  Coding the Subbands

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 40/42

Coding the Subbands

SQ

LL LH

HL HH

DiscardDPCM

Some bands  VQ

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 41/42

Summary

Subband coding is another approach to

decompose the source output into

components based on frequency.

Each of these components can then be

encoded using one of the techniques

described in the previous chapters.

8/2/2019 Subband Coding (1)

http://slidepdf.com/reader/full/subband-coding-1 42/42

Summary

The general subband encoding procedure can

be summarized as follows:

• Select a set of filters for decomposing the

source.

• Using the filters, obtain the subband signals.

• Decimate the output of the filters.

• Encode the decimated output.

The decoding procedure is the inverse of the