Frames
Frames
12 October 2010
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 1 / 36
Overview
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 2 / 36
Outline
Introduction
Frame Fundamentals
A Bigger Example
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 3 / 36
Introduction
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 4 / 36
Introduction
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 5 / 36
Introduction
AUDIO
A digital audio signal consists of a discrete sequence of numbers and a sample
rate. The sample rate describes how many digital samples are taken from the
analog signal in a given period of time.
Figure: 1000 of the 8,087,552 samples of the digitized version of the 1970’s tape
recording. This corresponds to about 0.0227 seconds.
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 6 / 36
Introduction
I MAGES
A digital image typically consists of a rectangular array of numbers. The
numeric values in the array describe the intensity of light in the image at the
corresponding location. For grayscale images the intensity ranges from 0
(black) to 255 (white), while color images combine three separate intensity
values (red, green, and blue channels).
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 7 / 36
Introduction
S AMPLING
One obtains a discrete signal from a continuous one by a sampling procedure.
In the case of digital recording and digital photography the sampling is
typically performed by combining special hardware and software.
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 8 / 36
Introduction
S AMPLING
One obtains a discrete signal from a continuous one by a sampling procedure.
In the case of digital recording and digital photography the sampling is
typically performed by combining special hardware and software.
In either case, one ends up with a vector representation of the original signal.
This allows us to use our knowledge of Linear Algebra.
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 8 / 36
Elements of Linear Algebra
V ECTORS
A vector has the form x = x1~i + x2~j + x3~k.
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 9 / 36
Elements of Linear Algebra
V ECTORS
A vector has the form x = x1~i + x2~j + x3~k.
I NNER P RODUCTS
The inner product of two vectors x and y is given by
where kxk2 = x12 + x22 + x32 and θ is the angle between x and y.
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 9 / 36
Elements of Linear Algebra
V ECTORS
A vector has the form x = x1~i + x2~j + x3~k.
I NNER P RODUCTS
The inner product of two vectors x and y is given by
where kxk2 = x12 + x22 + x32 and θ is the angle between x and y.
BASIS
A basis consists of three linearly independent vectors {u, v, w}, where
linearly independent means: the only solution of c1 u + c2 v + c3 w = 0 is
c1 = c2 = c3 = 0.
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 9 / 36
Elements of Linear Algebra
Given a basis {u, v, w}, how can one find the coefficients of a given vector x?
I.e., what values c1 , c2 , c3 achieve
x = c1 u + c2 v + c3 w?
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 10 / 36
Elements of Linear Algebra
Given a basis {u, v, w}, how can one find the coefficients of a given vector x?
I.e., what values c1 , c2 , c3 achieve
x = c1 u + c2 v + c3 w?
Hence, one can find the coefficients by inverting the 3 × 3 matrix. Note that
this is possible because the vectors are linearly independent, implying that the
determinant is nonzero.
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 10 / 36
Elements of Linear Algebra
u·v=v·w=w·u=0 (orthogonality)
and
u · u = v · v = w · w = 1. (unit length)
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 11 / 36
Elements of Linear Algebra
u·v=v·w=w·u=0 (orthogonality)
and
u · u = v · v = w · w = 1. (unit length)
x · u = c1 u · u + c2 v · u + c3 w · u = c1 .
x · v = c1 u · v + c2 v · v + c3 w · v = c2 .
x · w = c1 u · w + c2 v · w + c3 w · w = c3 .
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 11 / 36
Elements of Linear Algebra
u·v=v·w=w·u=0 (orthogonality)
and
u · u = v · v = w · w = 1. (unit length)
x · u = c1 u · u + c2 v · u + c3 w · u = c1 .
x · v = c1 u · v + c2 v · v + c3 w · v = c2 .
x · w = c1 u · w + c2 v · w + c3 w · w = c3 .
Recall that the inner product x · y can also be written hx, yi.
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 11 / 36
Elements of Linear Algebra
The quantity kxk2 = x12 + x22 + x32 = hx, xi is commonly referred to as the
squared length of the vector x. However, in many applications it is reasonable
to consider this quantity as a measure of the energy in the signal x.
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 12 / 36
Elements of Linear Algebra
The quantity kxk2 = x12 + x22 + x32 = hx, xi is commonly referred to as the
squared length of the vector x. However, in many applications it is reasonable
to consider this quantity as a measure of the energy in the signal x.
If {u, v, w} is an orthonormal basis, then
kxk2 = hx, xi
= hc1 u + c2 v + c3 w, c1 u + c2 v + c3 wi
= c21 hu, ui + c22 hv, vi + c23 hw, wi + (zero terms)
= c21 + c22 + c23
= hx, ui2 + hx, vi2 + hx, wi2 .
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 12 / 36
Elements of Linear Algebra
The quantity kxk2 = x12 + x22 + x32 = hx, xi is commonly referred to as the
squared length of the vector x. However, in many applications it is reasonable
to consider this quantity as a measure of the energy in the signal x.
If {u, v, w} is an orthonormal basis, then
kxk2 = hx, xi
= hc1 u + c2 v + c3 w, c1 u + c2 v + c3 wi
= c21 hu, ui + c22 hv, vi + c23 hw, wi + (zero terms)
= c21 + c22 + c23
= hx, ui2 + hx, vi2 + hx, wi2 .
This shows that the inner products “capture” the energy of the signal.
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 12 / 36
Elements of Linear Algebra
V ECTORS :
x = x1 x2 · · · xn
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 13 / 36
Elements of Linear Algebra
V ECTORS :
x = x1 x2 · · · xn
I NNER P RODUCT:
n
X
hx, yi = x1 y1 + · · · + xn yn = xk yk
k=1
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 13 / 36
Elements of Linear Algebra
V ECTORS :
x = x1 x2 · · · xn
I NNER P RODUCT:
n
X
hx, yi = x1 y1 + · · · + xn yn = xk yk
k=1
BASES :
As in the case of dimension 3, bases consist of n linearly independent
vectors {v1 , . . . , vn } and matrix inversion can be used to determine the
coefficients in a basis expansion of the form
n
X
x= ck vk .
k=1
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 13 / 36
Frame Fundamentals
Definition of a Frame
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 14 / 36
Frame Fundamentals
Definition of a Frame
Definition
A collection of vectors e1 , e2 , . . . , em is a frame for an n-dimensional vector
space if there exist 0 < A ≤ B < ∞ such that for all vectors x,
m
X
2
Akxk ≤ hx, ek i2 ≤ Bkxk2 .
k=1
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 14 / 36
Frame Fundamentals
Definition of a Frame
Definition
A collection of vectors e1 , e2 , . . . , em is a frame for an n-dimensional vector
space if there exist 0 < A ≤ B < ∞ such that for all vectors x,
m
X
2
Akxk ≤ hx, ek i2 ≤ Bkxk2 .
k=1
Okay, but so what? How can one know that this will be useful?
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 14 / 36
Frame Fundamentals
Question #1:
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 15 / 36
Frame Fundamentals
Question #1:
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 15 / 36
Frame Fundamentals
Question #1:
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 15 / 36
Frame Fundamentals
Question #2:
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 16 / 36
Frame Fundamentals
Question #2:
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 16 / 36
Frame Fundamentals
Question #2:
In other words,
m
X vector
hx, ek i ek
z}|{
x=
| {z }
k=1
coefficient
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 16 / 36
Frame Fundamentals
Question #2:
In other words,
m
X vector
hx, ek i ek
z}|{
x=
| {z }
k=1
coefficient
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 16 / 36
Frame Fundamentals
How does one recover x from the frame coefficients {hx, ek i}mk=1 ?
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 17 / 36
Frame Fundamentals
How does one recover x from the frame coefficients {hx, ek i}mk=1 ?
Well, we can try the same solution. Define the frame operator S by
m
X
Sx = hx, ek i ek .
k=1
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 17 / 36
Frame Fundamentals
How does one recover x from the frame coefficients {hx, ek i}mk=1 ?
Well, we can try the same solution. Define the frame operator S by
m
X
Sx = hx, ek i ek .
k=1
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 17 / 36
Frame Fundamentals
However, using a little bit of advanced linear algebra one can prove the
following theorem about recovery from frame coefficients.
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 18 / 36
Frame Fundamentals
However, using a little bit of advanced linear algebra one can prove the
following theorem about recovery from frame coefficients.
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 18 / 36
Frame Fundamentals
However, using a little bit of advanced linear algebra one can prove the
following theorem about recovery from frame coefficients.
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 18 / 36
Frame Fundamentals
Some Remarks
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 19 / 36
Frame Fundamentals
Some Remarks
One can even find the ẽk vectors using the Frame Algorithm, since
ẽk = S−1 ek , or, ek = Sẽk .
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 19 / 36
A Simple Tight Frame
A tight-frame for R2
Define {e1 , e2 , e3 } by
√ √
1 3 1 3
e1 = (1, 0) e2 = (− , ) e3 = (− , − ).
2 2 2 2
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 20 / 36
A Simple Tight Frame
A tight-frame for R2
To see that the collection is a frame, let x = (x1 , x2 ).
3
X
hx, ek i2 = hx, e1 i2 + hx, e2 i2 + hx, e3 i2
k=1
√ !2 √ !2
1 3 1 3
x12
= + − x1 + x2 + − x1 − x2
2 2 2 2
√ √
2 1 2 3 3 2 1 2 3 3
= x1 + x1 − x1 x2 + x2 + x1 + x1 x2 + x22
4 2 4 4 2 4
3 2
= (x1 + x22 )
2
3
= kxk2 .
2
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 21 / 36
A Simple Tight Frame
A tight-frame for R2
To see that the collection is a frame, let x = (x1 , x2 ).
3
X
hx, ek i2 = hx, e1 i2 + hx, e2 i2 + hx, e3 i2
k=1
√ !2 √ !2
1 3 1 3
x12
= + − x1 + x2 + − x1 − x2
2 2 2 2
√ √
2 1 2 3 3 2 1 2 3 3
= x1 + x1 − x1 x2 + x2 + x1 + x1 x2 + x22
4 2 4 4 2 4
3 2
= (x1 + x22 )
2
3
= kxk2 .
2
So, it’s actually a tight frame.
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 21 / 36
A Bigger Example
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 22 / 36
A Bigger Example
10
A frame of R of size 25
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 23 / 36
A Bigger Example
10
A frame of R of size 25
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 23 / 36
A Bigger Example
10
A frame of R of size 25
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 24 / 36
A Bigger Example
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 25 / 36
A Bigger Example
B−A
The convergence is slow because ≈ 0.8294.
B+A
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 25 / 36
A Bigger Example
10
Another frame of R of size 25
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 26 / 36
A Bigger Example
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 27 / 36
A Bigger Example
B−A
The convergence is faster because ≈ 0.1723. (This frame was not
B+A
chosen randomly.)
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 27 / 36
Intuition for 2-D signals
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 28 / 36
Intuition for 2-D signals
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 28 / 36
Intuition for 2-D signals
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 28 / 36
Intuition for 2-D signals
3 × 3 Image Space
An example signal:
0.95 0.49 0.45
x = 0.23 0.89 0.02
0.61 0.76 0.82
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 29 / 36
Intuition for 2-D signals
3 × 3 Image Space
An example signal:
0.95 0.49 0.45
x = 0.23 0.89 0.02
0.61 0.76 0.82
An orthonormal basis:
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 29 / 36
Show & Tell
Wavelet Basis
Below we see an image and its wavelet basis coefficients. (no redundancy)
Original
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 30 / 36
Show & Tell
Wavelet Basis
Below we see an image and its wavelet basis coefficients. (no redundancy)
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 30 / 36
Show & Tell
Wavelet Basis
Below we see an image and its wavelet basis coefficients. (no redundancy)
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 30 / 36
Show & Tell
Wavelet Basis
Below we see an image and its wavelet basis coefficients. (no redundancy)
The gray pixels correspond to coefficients close to zero. Black and white
pixels correspond to - and + coefficients, respectively.
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 30 / 36
Show & Tell
Original
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 31 / 36
Show & Tell
Original Reconstructed
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 31 / 36
Show & Tell
Original Reconstructed
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 31 / 36
Show & Tell
Below we see an image and its wavelet frame coefficients (highly redundant).
Original
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 32 / 36
Show & Tell
Below we see an image and its wavelet frame coefficients (highly redundant).
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 32 / 36
Show & Tell
Below we see an image and its wavelet frame coefficients (highly redundant).
Each component of the coefficient image has the same size as the original.
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 32 / 36
Show & Tell
Noisy
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 33 / 36
Show & Tell
Noisy Reconstructed
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 33 / 36
Show & Tell
Noisy Reconstructed
As the level of the noise increases denoising will begin to affect important
signal features, resulting in a blurring of the image.
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 33 / 36
Show & Tell
Original
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 34 / 36
Show & Tell
Original DCT
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 34 / 36
Show & Tell
Original DCT
Concluding Remarks
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 35 / 36
Conclusion
Concluding Remarks
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 35 / 36
Conclusion
Concluding Remarks
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 35 / 36
Conclusion
Concluding Remarks
T HANK YOU !
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 35 / 36
Conclusion
References
B.D. Johnson,
Frames in Rn , expository notes,
http://mathcs.slu.edu/~johnson/public/maths/frames.pdf.
Brody Dylan Johnson (St. Louis University) An Introduction to Frames 12 October 2010 36 / 36