csc461 monia wavelet

Upload: kagitha-tirumala

Post on 04-Jun-2018

227 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/13/2019 Csc461 Monia Wavelet

    1/44

    Wavelet-based CodingAnd its application in JPEG2000

    Monia Ghobadi

    CSC561 final project

    [email protected]

  • 8/13/2019 Csc461 Monia Wavelet

    2/44

    Introduction Signal decomposition

    Fourier Transform

    Frequency domain

    Temporal domain Time information?

  • 8/13/2019 Csc461 Monia Wavelet

    3/44

    What is wavelet transform? Wavelet transform decomposes a signal into

    a set of basis functions (wavelets)

    Wavelets are obtained from a singleprototype wavelet (t) called motherwaveletby dilationsand shifting:

    where ais the scaling parameter and bis the shiftingparameter

    )(1

    )(,a

    bt

    a

    tba

  • 8/13/2019 Csc461 Monia Wavelet

    4/44

    What are wavelets

    Haar wavelet

    Wavelets are functions defined over afinite interval and having an average

    value of zero.

  • 8/13/2019 Csc461 Monia Wavelet

    5/44

    Haar Wavelet Transform Example: Haar Wavelet

    100 1

    ScalingFunction Wavelet

    ]2

    1,

    2

    1[)( nh ]

    2

    1,

    2

    1[)( ng

  • 8/13/2019 Csc461 Monia Wavelet

    6/44

    Haar Wavelet Transform

    1. Find the average of each pair of samples.2. Find the difference between the average and the samples.3. Fill the first half of the array with averages.

    4. Normalize5. Fill the second half of the array with differences.6. Repeat the process on the first half of the array.

    1 3 5 7

    1. Iteration

    2. Iteration

    1. 1+3 / 2 = 2

    2. 1 - 2 = -13. Insert

    4. Normalize

    5. Insert

    6. Repeat

    Signal

    -1

    -1-1

    -1

    6

    -2

    2

    4

  • 8/13/2019 Csc461 Monia Wavelet

    7/44

    Haar Wavelet Transform

    Signal 1

    3

    5

    7

    4-2

    -1

    -1

    2. Iteration

    Signal

    [ 1 3 5 7 ]

    Signal recreated from 2 coefficients

    [ 2 2 6 6 ]

  • 8/13/2019 Csc461 Monia Wavelet

    8/44

    Haar Basis

    Lenna Haar Basis

  • 8/13/2019 Csc461 Monia Wavelet

    9/44

    2

    D Mexican Hat wavelet

    )(2

    1

    22

    22

    )2(),(yx

    eyxyx

    Time domain

    )21(2

    1

    22

    22

    )21(2)2,1( wwewwww

    Frequency domain

  • 8/13/2019 Csc461 Monia Wavelet

    10/44

    2D Mexican Hat wavelet (Movie)

    low frequency

    high frequency

  • 8/13/2019 Csc461 Monia Wavelet

    11/44

    Scale = 38

  • 8/13/2019 Csc461 Monia Wavelet

    12/44

    Scale =2

  • 8/13/2019 Csc461 Monia Wavelet

    13/44

    Scale =1

  • 8/13/2019 Csc461 Monia Wavelet

    14/44

    Wavelet Transform

    Continuous Wavelet Transform (CWT)

    Discrete Wavelet Transform (DWT)

  • 8/13/2019 Csc461 Monia Wavelet

    15/44

    Continuous Wavelet

    Transform continuous wavelet transform (CWT) of

    1D signal is defined as

    the a,bis computed from the mother

    waveletby translation and dilation

    dxxxfbfW baa )()()( ,

    a

    bx

    axba

    1)(,

  • 8/13/2019 Csc461 Monia Wavelet

    16/44

    Discrete Wavelet Transform

    CWT cannot be directly applied to analyzediscrete signals

    CWT equation can be discretised byrestraining aand bto a discrete lattice

    transform should be non-redundant,complete and constitute multiresolutionrepresentation of the discrete signal

    dxxxfbfW baa )()()( ,

  • 8/13/2019 Csc461 Monia Wavelet

    17/44

    Discrete Wavelet Transform

    Discrete wavelets

    In reality, we often choose

    ),(0

    2

    0,

    ktaa jj

    kj

    ., Zkj

    .20a

  • 8/13/2019 Csc461 Monia Wavelet

    18/44

    In the discrete signal case we compute theDiscrete Wavelet Transform by successive low

    pass and high pass filtering of the discretetime-domain signal. This is called the Mallatalgorithm or Mallat-tree decomposition.

    Discrete Wavelet Transform

  • 8/13/2019 Csc461 Monia Wavelet

    19/44

    Pyramidal WaveletDecomposition

  • 8/13/2019 Csc461 Monia Wavelet

    20/44

    The decomposition process can be iterated, withsuccessive approximations being decomposed in turn,so that one signal is broken down into many lower-

    resolution components. This is called the waveletdecomposition tree.

    Wavelet Decomposition

  • 8/13/2019 Csc461 Monia Wavelet

    21/44

    Lenna Image

    Source: http://sipi.usc.edu/database/

  • 8/13/2019 Csc461 Monia Wavelet

    22/44

    Lenna DWT

  • 8/13/2019 Csc461 Monia Wavelet

    23/44

    Lenna DWT DC Level Shifted +70

  • 8/13/2019 Csc461 Monia Wavelet

    24/44

    Restored Image

    Can you tell which is the original and which is the

    restored image after removal of the lower right?

  • 8/13/2019 Csc461 Monia Wavelet

    25/44

    DWT for Image Compression

    Block Diagram

    2D DiscreteWavelet

    Transform

    QuantizationEntropy

    Coding

    20 40 60

    10

    20

    30

    40

    50

    60

    20 40 60

    10

    20

    30

    40

    50

    60

    2D discrete wavelet transform (1D

    DWT applied alternatively to vertical

    and horizontal direction line by line )

    converts images into sub-bands

    Upper left is the DC coefficient

    Lower right are higher frequency

    sub-bands.

  • 8/13/2019 Csc461 Monia Wavelet

    26/44

    DWT for Image Compression

    Image Decomposition

    Scale 1

    4 subbands:

    Each coeff. a 2*2 area in the original image

    Low frequencies:

    High frequencies:

    LL1 HL

    1

    LH1 HH

    1

    1111 ,,, HHLHHLLL

    2/0

    2/

  • 8/13/2019 Csc461 Monia Wavelet

    27/44

    DWT for Image Compression

    ImageDecomposition

    Scale 2 4 subbands:

    Each coeff. a

    2*2 area in scale 1image

    Low Frequency:

    High frequencies:

    HL1

    LH1 HH

    1

    HH2LH2

    HL2LL2

    2,

    2,

    2,

    2 HHLHHLLL

    4/0

    2/4/

  • 8/13/2019 Csc461 Monia Wavelet

    28/44

    DWT for Image Compression

    Image Decomposition Parent

    Children

    Descendants:corresponding coeff. atfiner scales

    Ancestors: corresponding

    coeff. at coarser scales

    HL1

    LH1 HH

    1

    HH2LH2

    HL2

    HL3

    LL3

    LH3 HH

    3

  • 8/13/2019 Csc461 Monia Wavelet

    29/44

    DWT for Image Compression Image Decomposition

    Feature 1:

    Energy distribution similar toother TC: Concentrated in low

    frequencies Feature 2:

    Spatial self-similarity across

    subbands

    HL1

    LH1 HH1

    HH2LH2

    HL2

    HL3LL3

    LH3 HH

    3

    The scanning order of the subbands

    for encoding the significance map.

  • 8/13/2019 Csc461 Monia Wavelet

    30/44

    JPEG2000 (J2K) is an emergingstandard for image compression

    Achieves state-of-the-art low bit ratecompression and has a rate distortionadvantage over the original JPEG.

    Allows to extract various sub-images from

    a single compressed image codestream,the so called Compress Once, DecompressMany Ways.

    ISO/IEC JTC 29/WG1Security Working

    Setup in 2002

    JPEG2000

  • 8/13/2019 Csc461 Monia Wavelet

    31/44

    JPEG 2000

    Not only better efficiency, but also morefunctionality

    Superior low bit-rate performance

    Lossless and lossy compression

    Multiple resolution

    Range of interest(ROI)

  • 8/13/2019 Csc461 Monia Wavelet

    32/44

    JPEG2000

    Can be both lossless and lossy

    Improves image quality

    Uses a layered file structure :

    Progressive transmission

    Progressive rendering

    File structure flexibility:

    Could use for a variety of applications

    Many functionalities

  • 8/13/2019 Csc461 Monia Wavelet

    33/44

    Why another standard?

    Low bit-rate compression

    Lossless and lossy compression Large images

    Single decompression architecture

    Transmission in noisy environments

    Computer generated imaginary

  • 8/13/2019 Csc461 Monia Wavelet

    34/44

    Compress Once, DecompressMany Ways

    A Single OriginalCodestream

    By resolutionsBy layers

    Region of Interest

  • 8/13/2019 Csc461 Monia Wavelet

    35/44

    Components

    Each image is

    decomposed intoone or morecomponents,such as R, G, B.

    Denotecomponents as Ci,i = 1, 2, , nC.

  • 8/13/2019 Csc461 Monia Wavelet

    36/44

    JPEG2000 EncoderBlock Diagram

    Key Technologies:

    Discrete Wavelet Transform (DWT)

    Embedded Block Coding with OptimizedTruncation (EBCOT)

    Quantization

    EBCOT Tier-1

    Encoder

    (CF + AE)

    EBCOT

    Tier-2

    Encoder

    Rate Control

    2-D Discrete

    Wavelet

    Transform

    transform quantize coding

  • 8/13/2019 Csc461 Monia Wavelet

    37/44

    Resolution & Resolution-Increments

    1-level DWT

    J2K uses 2-D Discrete Wavelet

    Transformation (DWT)

  • 8/13/2019 Csc461 Monia Wavelet

    38/44

    Resolution and Resolution-Increments

    2-level DWT

    1-level DWT

  • 8/13/2019 Csc461 Monia Wavelet

    39/44

    Discrete Wavelet Transform

    LL 2 HL 2

    LH2 HH2HL 1

    LH1

    HH1

  • 8/13/2019 Csc461 Monia Wavelet

    40/44

    Layers & Layer-Increments

    L0

    {L0

    , L1} {L

    0, L

    1, L

    2}

    All layer-increments

  • 8/13/2019 Csc461 Monia Wavelet

    41/44

    JPEG2000v.s. JPEG

    low b it-rate perform ance

  • 8/13/2019 Csc461 Monia Wavelet

    42/44

    JPEG2K - Quality Scalability

    Improve decoding quality as receivingmore bits:

  • 8/13/2019 Csc461 Monia Wavelet

    43/44

    Spatial Scalability

    Multi-resolution decoding from one bit-stream:

  • 8/13/2019 Csc461 Monia Wavelet

    44/44

    ROI (range of interest)