Professional Documents
Culture Documents
Waveletpr
Waveletpr
Anna Rapoport
Between 1924 and today, the US Federal Bureau of Investigation has collected over 200 million cards of fingerprints Some come from employment and security checks, but 114.5 million cards belong to some 29 million criminals (bad guys tend to get fingerprinted more than once)
includes some 29 million records they examine each time they're asked to round up the usual suspects. And to make matters worse, fingerprint data continues to accumulate at a rate of 30,000-50,000 new cards PER DAY
10 MB of data!
Multiplied by 200 million cards about
2,000 terabytes!
The FBI decided to adopt a wavelet-based image coding algorithm as a national standard for digitized fingerprint records.
WSQ (Wavelet/Scalar Quantization) developed and maintained by the FBI, Los Alamos National Lab, and the National Institute for Standards and Technology involves:
2-dimensional discrete wavelet transform DWT Uniform scalar quantization Huffman entropy coding
Compression rate
Compressed image
change the coordinate system in which we represent a signal in order to make it much better suited for processing (compression). We should be able to represent all the useful signal features and important phenomena in as compact manner as possible. Important to compact the bulk of the signal energy into the fewest number of transform coefficients.
A possible choice for the linear transformation are: DFT or, avoiding complex coefficients, the DCT JPEG (decomposition into smaller subimages of size 8x8 or 16x16, followed by DCT as the compression algorithm)
Good frequency resolution at lower frequencies, good time resolution at higher frequencies good for natural images.
Transformation - FWT
Original Image
Wavelet coefficients
Reconstructed
[ 9 7 3 5]
WT
(9 + 7)/2 [8
(3 + 5)/2 4]
(9 - 7)/2 [1
(3 - 5)/2 -1 ]
(8 + 4)/2 6
(8 4)/2 2
[ 6 2 1 -1 ]
that our 1D image is a piecewise constant function on the half-open interval [0,1)
One-pixel image is a const on the entire [0,1) 1D vector Denote V0 to be the vector space of all such functions (1D space) Two-pixel image is a function having two constant pieces in intervals [0,1/2] and [1/2,1), so its a 2D vector - their space V1 In this manner, the space Vj will include all piecewise-constant functions with constant pieces over each of 2j equal-sized subintervals
Example:
Nested Spaces
Every
vector in Vj can be represented in Vj+1 so spaces Vj are nested V0 V1 V2 The idea of nested spaces is one of the basic ingredients of the theory of multiresolution.
Definition of Wavelets
Define
Wj as the orthogonal complement of Vj in Vj+1, i.e. Wj Vj=Vj+1 A collection of linearly independent functions ij(x) spanning Wj are called wavelets: The basis fun-s ij(x) and ij(x) form a basis in Vj+1
each j ij(x) orthogonal to ij(x) Wavelets are orthogonal to each other
For
Haar Wavelets
The
wavelets corresponding to the box basis are known as Haar Wavelets: ij(x) : = (2j x - i) i = 0,, 2j 1 where 1, for 0 x <1/2 (x):= -1, for 1/2 x <1
0, otherwise
Example:
Wavelets as a form of MA
Wavelets work for decomposing signals (such as images) into hierarchy of increasing resolutions: as we consider more layers, we get more and more detailed look at the image.
have matrix of coefficients (average signal and detail signals of each scale) No compression has been accomplished yet, even the obtained representation can be longer than the original (since the decomposition uses a floating point representation, while the original signal could use an integer representation). Compression is achieved by quantizing and encoding coefficients
Quantization
A
quantizer simply reduces the number of bits needed to store the transformed coefficients by reducing the precision of those values. Since this is a many-to-one mapping, it is a lossy process and is the main source of compression in an encoder. Quantization can be performed on each individual coefficient, which is known as Scalar Quantization (SQ).
Uniform Quantizer
Dequantization Rule
Example of Dequantization
the quantization process is completed, the last encoding step is to use entropy coding to achieve the entropy rate of quantizer. The Shannon entropy provides a lower bound in terms of the amount of compression entropy coding can best achieve. Examples: Huffman Arithmetic coding
Wavelet Denoising
Wavelet denoising
DWT of the image is calculated Resultant coefficients are passed through threshold testing The coefficients < threshold are removed, others shrinked Resultant coefficients are used for image reconstruction with IWT.
The Idea
The
intuition behind this approach is that the neighboring pixels exhibit high correlation, which translates to only a few large wavelet coefficients. On the other hand, the noise is evenly distributed among the coefficients and is generally small.
yi = xi + ni
Threshold techniques
Hard threshold Soft threshold
= (2log(N))
possible to remove the noise with little loss of details. The idea of wavelet denoising based on the assumption that the amplitude, rather than the location, of the spectra of the signal to be as different as possible for that of noise.
Example 1
Example 2
References
Wavelet Image Compression Zixiang Xiong, Kannan Ramchandran http://lena.tamu.edu/~zx/ EPIC (Efficient Pyramid Image Coder) http://www.cis.upenn.edu/~eero/epic.html Filtering (Denoising) in the Wavelet transform Domain Yousef M. Hawwar, Ali M. Reza et al http://www.xilinx.com/products/logicore/dsp/denoise_ wavelet.pdf Wavelet Denoising with MatLab http://wwwlmc.imag.fr/SMS/software/GaussianWaveDen/