Professional Documents
Culture Documents
Lecture Outline
1D wavelets and FWT 2D separable wavelets 2D nonseparable wavelets
different sampling grids
Lifting scheme
easy to construct filter banks
x[n]
H0
x0[n]
G0
^ x[n]
H1
x1[n]
G1
Synthesis Bank
Synthesis Bank
Complexity of FWT
Number of operations proportional to: N size of data L length of filters in the filterbank (scaling and wavelet vectors)
2D separable FWT
Sampling in 2D
Image is split into several groups of pixels (phases) Not as straightforward as in 1D Many ways to split an image
Separable Quincunx Hexagonal...
Quincunx Downsampling
n2
n1
Image is split into two phases (cosets) Simplest nonseparable sampling scheme
Subsampling Matrix
n2
(1,1)
Basis vectors form the unit cell Subsampling matrix (dilation matrix) defines the sampling operation
n1
(1,-1)
1 1 D= 1 1
Subsampling Matrix
Defines the sampling grid For a 2D grid, D is a 2x2 matrix. There are M = |det(D)| image phases and also M samples in the unit cell. For the quincunx case, M = 2.
Quincunx PR FB needs M = 2 channels.
Digital Image Processing II
2D Subsampling Operation
D defines the sampling grid Take one coset of the image Renumber it to fit on the integer grid
xD (n1 , n2 ) = x(k1 , k2 ), k1 n1 where = D k2 n2
Downsampling is actually...
reading the image along the new axes. 45 rotation for the quincunx case
n2
n2
(1,1)
(0,1)
n1 (1,-1)
(1,0) n1
n2
(2,1)
(0,1)
n1 (2,-1)
(1,0) n1
e as h
Ph
as e
Counterclockwise rotation
Digital Image Processing II
Separable Sampling
n2 (0,2)
(2,0) n1
4 elements of the unit cell Image is split into 4 phases Requires 4 channels of the PR filter bank
2 0 D= 0 2
Hexagonal Sampling
n2
(1,2)
4 elements of the unit cell Image is split into 4 phases Requires 4 channels of the PR filter bank
n1
(1,-2)
1 1 D= 2 2
Voronoi cell
Voronoi cell consists of points closer to the origin... than to any other point of the given lattice. n Quincunx Voronoi cell
2
1 1 n1
where
1 = 2
To avoid aliasing... signal should be bandlimited to Voronoi cell of the lattice defined by 2D-T
Digital Image Processing II
Bandlimiting
Properly bandlimited signal for quincunx downsampling
2
Quincunx downsampling
Input image has been properly bandlimited
2
2 2
Quincunx upsampling
x(D1n) xU (n) = 0
n2 (0,1)
(1,1)
(1,0) n1
n1 (1,-1)
z1 z = z2
n
n1 n2
n = z1n1 z 2 2
z1 D z = z2
d11 d 21
d12 d 22
d z1d11 z 2 21 = d d z1 12 z 2 22
Frequency transformation
z e j
d z1d11 z 2 21 e j ( d111 + d 212 ) D jD T z = d d j (d +d ) = e z1 12 z 2 22 e 12 1 22 2
Conclusion:
X U () = X ( D T )
Quincunx upsampling
X ()
2
2 2
X U () = X (DT )
2
2
X U () = X (D2 )T
2
)
X U () = X (D3 )T
2
Predict stage
Prediction of the second phase sample ...based on a number of samples from the first phase. Wavelet coefficients are obtained as... a prediction error. X(z) 2 Smooth signal... gives small details.
Digital Image Processing II
z-1 2
P(z) D(z)
Update stage
Input: detail coefs. Output is used to create approximation coefs. Average value of the input image must be retained. X(z) A(z)
2 + z-1 2
Digital Image Processing II
P(z) -
U(z) D(z)
Quincunx FB Example
Lifting scheme based on quincunx interpolating filters J. Kovaevi & W. Sweldens: Wavelet Families of Increasing Order in Arbitrary Dimensions. IEEE Trans. Image Proc., vol. 9, no. 3, pages 480-496, March 2000.
Predict Filters
Neville interpolating filters symmetric interpolation neighborhoods
n2
n1
example of a second order P filter: P2 ( z1 , z 2 ) = 0.25 + 0.25 z11 + 0.25 z 2 1 + 0.25 z11 z 2 1
Digital Image Processing II
Update Filters
updates the average value of the input image based on the corresponding predict filter
1 * U N ( z1 , z2 ) = PN ( z1 , z2 ) 2
Digital Image Processing II
Analysis LP
Analysis HP
Synthesis LP
Digital Image Processing II
Synthesis HP
Analysis scale
Analysis wavelet
Synthesis scale
Digital Image Processing II
Synthesis wavelet
DJ-1
DJ-2
DJ-3
Separable
widely used simple realization based on 1D filter banks
Quincunx Wavelets
Simplest nonseparable sampling grid Only two channels Double quincunx sampling = nonseparable sampling Less biased in horizontal and vertical directions Comparable results with separable wavelets
Digital Image Processing II