A Projection Method to Generate Anaglyph Stereoscopic Images Eric Dubois VIVA Lab (Video, Image, Vision & Audio Research Lab) School of Information Technology and.
Download ReportTranscript A Projection Method to Generate Anaglyph Stereoscopic Images Eric Dubois VIVA Lab (Video, Image, Vision & Audio Research Lab) School of Information Technology and.
A Projection Method to Generate Anaglyph Stereoscopic Images
Eric Dubois VIV A Lab
(Video, Image, Vision & Audio Research Lab) School of Information Technology and Engineering (SITE) University of Ottawa, Ottawa ON Canada
Today’s Program • Generalities on stereoscopic viewing • What is anaglyph?
• Mathematical formulation of color stereo viewing • Mathematical formulation of anaglyph viewing • Method to generate anaglyphs by projection • Some results • What’s left to do?
May 8, 2001 ICASSP 2001 2
Stereoscopic Imaging Scene
May 8, 2001
Stereoscopic camera Stereoscopic display Viewer (with glasses)
ICASSP 2001 3
Stereoscopic Pair (Ray Hannisian)
May 8, 2001 ICASSP 2001 4
Stereoscopic display methods • Stereoscope (1832) • Anaglyph (1853) • Polarized glasses (1891) • Liquid crystal shutter (time-sequential) • Autostereoscopic (no glasses)
May 8, 2001 ICASSP 2001 5
What is ‘anaglyph’?
Anaglyph is a method to view stereoscopic images using colored spectacles. The method was patented in 1891 by Louis Ducos du Hauron, but similar methods had been demonstrated previously by W. Rollmann in 1853 and J.C. D’Almeida in 1858.
May 8, 2001 ICASSP 2001 6
Origin of the word anaglyph The word
anaglyph
ana == again glmfh is from the Greek == sculpture
May 8, 2001 ICASSP 2001 7
Classical method For monochrome stereo images, the left view in blue (or green) is superimposed on the same image plane with the right view in red. When viewed through spectacles of corresponding colors but reversed, the three-dimensional effect is perceived.
8 May 8, 2001 ICASSP 2001
3D drawing
May 8, 2001 ICASSP 2001 9
Bubbles (André-Claude Latulippe)
May 8, 2001 ICASSP 2001 10
Ideal Stereoscopic Display • Input left and right views:
V lj
' (
x
),
V rj
' (
x
),
j
1 , 2 , 3 ;
x
L
• • The three components j=1,2,3 are gamma-corrected RGB (in that order) that can be directly displayed by a standard RGB monitor.
L
is the sampling raster for the image
May 8, 2001 ICASSP 2001 11
Ideal Stereoscopic Display • The three components go through the display gamma, denoted g, and excite the RGB phosphors of the display,
V
j
g
'
j
,
l
,
r
;
j
1 , 2 , 3 • The spectral density functions of the RGB display phosphors are denoted
d j
( l ),
j
1 , 2 , 3 • The light emanating from point
x
in left and right images is given by
Q l
l ,
x
j
3 1
V lj
x
d j Q r
l ,
x
j
3 1
V rj
x
d j
May 8, 2001 ICASSP 2001 12
May 8, 2001 ICASSP 2001 13
Perceived stereo pair • The color perceived at point
x
in the left and right images is determined by the projection of
Q l
( l ,
x
) and
Q r
( l ,
x
) onto the visual subspace using color matching functions
p k
~
V lk
Q l
l ,
x
p k d
l
j
3 1
V lj
p k d
l
j
3 1
c kj V lj
,
k
1 , 2 , 3
May 8, 2001 ICASSP 2001 14
Perceived stereo pair • In matrix notation, ~
V
l
kj
c kj
p k
CV
l d
l • Similarly, ~
V
r
CV
r
• With the standard XYZ color space,
C
0 0 0 .
.
4641 .
2597 0357 0 .
3055 0 .
6592 0 .
1421 0 0 0 .
.
.
1808 0811 9109
May 8, 2001 ICASSP 2001 15
Perceived Stereo Image • The value of the stereo image at each point x can be considered to be an element of a six dimensional vector space
S
6 ~
V
V V
~
V
~
V
~ ~ ~
V
~
l r r l l
1 2 3
V r
1 2 3
May 8, 2001 ICASSP 2001 16
Visualization of an Anaglyph Image • The anaglyph image is denoted
V
'
aj
,
j
1 , 2 , 3 ;
x
L
May 8, 2001 ICASSP 2001 17
Anaglyph Image
May 8, 2001 ICASSP 2001 18
Visualization of an Anaglyph Image • The anaglyph image is denoted
V
'
aj
,
j
1 , 2 , 3 ;
x
L
• The light emitted from the screen at point
x
is
Q a
l ,
x
3
j
1
V aj
x
d j
• where
V aj
g
V
'
aj
May 8, 2001 ICASSP 2001 19
Perceived Anaglyph Image with Glasses • The light from the CRT passes through two filters with spectral absorption functions
f l
( l ) and
f r
( l ) before arriving at the left and right eyes.
• The light spectral density at the left and right eyes is
Q a
( l ,
x
)
f l
( l ) and
Q a
( l ,
x
)
f r
( l ) respectively.
May 8, 2001 ICASSP 2001 20
Transmission of red and blue filters
May 8, 2001 ICASSP 2001 21
Perceived Anaglyph Image with Glasses • The tristimulus values for the left and right views through the glasses are ~
U lk
Q
l ,
x p k d
l
j
3 1
V aj
p k d
l
j
3 1
a lkj V aj
,
k
1 , 2 , 3 • or ~
U
l
A
l
V
a
Similarly, ~
U
r
A
r
V
a
May 8, 2001 ICASSP 2001 22
Goal of Anaglyph reproduction We want the anaglyph image to appear as similar as possible to the ideal stereoscopic image ~
U
RV
a
U U
~
U
~
U
~
l U
~
U
~ ~
r l r l
1 2 3
r
1 2 3 ~
V
V V
~
V
~
V
~ ~ ~
V
~
l r r l l
1 2 3
V r
1 2 3
Anaglyph 3D Ideal 6D May 8, 2001 ICASSP 2001 23
Generation of Anaglyph Image • For each pixel location, we seek an element of the three-dimensional anaglyph subspace as close as possible to the original stereo image value which is in a six-dimensional space.
• If we have a suitable distance metric, we can choose the value in the three-dimensional space that is closest to the original six-dimensional value.
• This achieved by
Projection
May 8, 2001 ICASSP 2001 24
Assumptions • The approximation is carried out independently at each sample location • The error metric at each point is a weighted squared error between and ~
V
~
U
~
V
2 ~
U
~
V
~
U
~
V
• A global scaling of the
V aj
is used to account for the attenuation of the filters.
May 8, 2001 ICASSP 2001 25
Projection • Applying standard projection theory gives
V
a
R R
T
WR
T
WR
1 1
R
T ~
W V R
T
WC
2
V
can be precomputed
May 8, 2001 ICASSP 2001 26
Basketball Image
May 8, 2001 ICASSP 2001 27
Anaglyph
May 8, 2001 ICASSP 2001 28
May 8, 2001 ICASSP 2001 29
May 8, 2001 ICASSP 2001 30
May 8, 2001 ICASSP 2001 31
May 8, 2001 ICASSP 2001 32
May 8, 2001 ICASSP 2001 33
Conclusion • A method to generate anaglyphs based on the mathematical description of the image display and perception process has been developed.
• Some color reproduction is possible.
• Better stereo rendition than conventional approaches.
• You can view results at http://www.site.uottawa.ca/~edubois/icassp01/
May 8, 2001 ICASSP 2001 34
What Else?
• How to choose filters to give best results?
• Can color rendition be improved?
• Can the method be applied to time-shuttered stereo?
May 8, 2001 ICASSP 2001 35
Thanks for coming!
May 8, 2001 ICASSP 2001 36