a projection method to generatea projection method to ...edubois/anaglyph/anaglyph_010508.pdfa...
TRANSCRIPT
A Projection Method to GenerateA Projection Method to Generate Anaglyph Stereoscopic Images
E i D b iEric DuboisVIVA Lab (Video, Image, Vision & Audio Research Lab)
School of Information Technology and Engineering (SITE)School of Information Technology and Engineering (SITE)University of Ottawa, Ottawa ON Canada
T d ’ PToday’s Program
• Generalities on stereoscopic viewing• Generalities on stereoscopic viewing• What is anaglyph?• Mathematical formulation of color stereo viewing• Mathematical formulation of color stereo viewing• Mathematical formulation of anaglyph viewing
M th d t t l h b j ti• Method to generate anaglyphs by projection• Some results
h l f d• What’s left to do?
May 8, 2001 ICASSP 2001 2
S i I iStereoscopic Imaging
Scene Stereoscopic Stereoscopic ViewerScene Stereoscopiccamera
Stereoscopicdisplay
Viewer(with glasses)
May 8, 2001 ICASSP 2001 3
S i P i (R H i i )Stereoscopic Pair (Ray Hannisian)
May 8, 2001 ICASSP 2001 4
S i di l h dStereoscopic display methods
• Stereoscope (1832)• Stereoscope (1832)• Anaglyph (1853)• Polarized glasses (1891)• Polarized glasses (1891)• Liquid crystal shutter (time-sequential)
A t t i ( l )• Autostereoscopic (no glasses)
May 8, 2001 ICASSP 2001 5
Wh i ‘ l h’?What is ‘anaglyph’?
Anaglyph is a method to view stereoscopic imagesAnaglyph is a method to view stereoscopic images using colored spectacles. The method was patented in 1891 by Louis Ducos du Hauron, but p y ,similar methods had been demonstrated previously by W. Rollmann in 1853 and J.C. D’Almeida in 1858.
May 8, 2001 ICASSP 2001 6
O i i f h d l hOrigin of the word anaglyph
The word anaglyph is from the GreekThe word anaglyph is from the Greekανα == againγλμφη == sculptureγλμφη == sculpture
May 8, 2001 ICASSP 2001 7
Cl i l h dClassical method
For monochrome stereo images the left view inFor 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 p gthrough spectacles of corresponding colors but reversed, the three-dimensional effect is perceived.
May 8, 2001 ICASSP 2001 8
3D drawing
May 8, 2001 ICASSP 2001 9
Bubbles (André Claude Latulippe)Bubbles (André-Claude Latulippe)
May 8, 2001 ICASSP 2001 10
Ideal Stereoscopic DisplayIdeal Stereoscopic Display
• Input left and right views:• Input left and right views:
L∈= xxx ;3,2,1),(),( '' jVV rjlj
• 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 Displayp p y• The three components go through the display gamma,
denoted g, and excite the RGB phosphors of the display,g, p p p y,
( ) ( )( ) 3,2,1;,,' ==⋅= ⋅⋅ jrlVgV jj xx
• The spectral density functions of the RGB display phosphors are denoted
• The light emanating from point x in left and right images is3,2,1),( =jd j λ
The light emanating from point x in left and right images is given by
( ) ( ) ( )λλ jljl dVQ ∑=3
, xx
( ) ( ) ( )λλ jj
rjr
j
dVQ ∑
=
=3
1
1
, xx
May 8, 2001 ICASSP 2001 12
j=1
May 8, 2001 ICASSP 2001 13
P i d iPerceived stereo pair
• The color perceived at point x in the left and right• The color perceived at point x in the left and right images is determined by the projection of Ql(λ ,x) and Qr(λ ,x) onto the visual subspace using color Qr( , ) p gmatching functions ( )λkp
( ) ( ) ( )~ = ∫ dpQV kllk xx λλλ( ) ( ) ( )
( ) ( ) ( )
,3
1= ∑ ∫
∫
=ddpV
dpQV
jjklj
kllk
x
xx
λλλ
λλλ
( ) 3,2,1,3
1
1
== ∑=
=
kVc ljj
kj
j
x
May 8, 2001 ICASSP 2001 14
1=j
P i d iPerceived stereo pair
• In matrix notation ( ) ( )xCVxV =~• In matrix notation, ( ) ( )xCVxV ll =
[ ] ( ) ( ) λλλ ddpc jkkjkj ∫==C
• Similarly,With th t d d XYZ l
( ) ( )xCVxV rr =~
• With the standard XYZ color space,
⎥⎤
⎢⎡ 1808.03055.04641.0
⎥⎥⎥
⎦⎢⎢⎢
⎣
=9109.01421.00357.00811.06592.02597.0C
May 8, 2001 ICASSP 2001 15
P i d S IPerceived Stereo Image
• The value of the stereo image at each point x can• The value of the stereo image at each point x can be considered to be an element of a six-dimensional vector space S6p 6
( )( )⎥
⎤⎢⎡ x1
~~lV
( )
( )( )( )⎥
⎥⎥⎥⎥
⎢⎢⎢⎢⎢
=xxx
xV 3
2
~~
~ l
l
VVV
( )( )( )⎥
⎥⎥
⎦⎢⎢⎢
⎣ xxx
3
2
1
~~r
r
VVV
May 8, 2001 ICASSP 2001 16
( )⎦⎣ x3rV
Vi li i f A l h IVisualization of an Anaglyph Image
• The anaglyph image is denoted• The anaglyph image is denoted( ) L∈= xx ;3,2,1,' jVaj
May 8, 2001 ICASSP 2001 17
A l h IAnaglyph Image
May 8, 2001 ICASSP 2001 18
Vi li i f A l h IVisualization of an Anaglyph Image
• The anaglyph image is denoted• The anaglyph image is denoted
• The light emitted from the screen at point x is( ) L∈= xx ;3,2,1,' jVaj
• The light emitted from the screen at point x is
( ) ( ) ( )λλ jaja dVQ ∑=3
, xx
h
jj
j=1
( ) ( )( )'• where ( ) ( )( )xx 'ajaj VgV =
May 8, 2001 ICASSP 2001 19
P i d A l h I i h GlPerceived Anaglyph Image with Glasses
• The light from the CRT passes through two filters with spectral absorption functions fl(λ) and f (λ)with spectral absorption functions fl(λ) and fr(λ) before arriving at the left and right eyes.
• The light spectral density at the left and right eyesThe light spectral density at the left and right eyes is Qa(λ,x)fl(λ) and Qa(λ,x)fr(λ) respectively.
May 8, 2001 ICASSP 2001 20
Transmission of red and blue filters
May 8, 2001 ICASSP 2001 21
P i d A l h I i h GlPerceived Anaglyph Image with Glasses
• The tristimulus values for the left and right views• The tristimulus values for the left and right views through the glasses are
( ) ( ) ( ) ( )~ = ∫ dpfxQU x λλλλ( ) ( ) ( ) ( )
( ) ( ) ( ) ( )
,3
1=
=
∫∑
∫
dfdpV
dpfxQU
ljkj
aj
kllk
x
x
λλλλ
λλλλ
( ) 3,2,1,3
1
1
== ∑
=
kVaj
ajlkj
j
x
• or Similarly,1=j
( ) ( )xVAxU all =~ ( ) ( )xVAxU arr =~
May 8, 2001 ICASSP 2001 22
Goal of Anaglyph reproductiong yp pWe want the anaglyph image to appear as similar as possible to the ideal stereoscopic imageas possible to the ideal stereoscopic image
( )( )⎥
⎤⎢⎡ x1
~~l
VV( )
( )⎥⎤
⎢⎡ x1
~~
l
UU
( )
( )( )( )⎥
⎥⎥⎥⎥
⎢⎢⎢⎢⎢
=xxx
xV 3
2
~~
~ l
l
VVV
( ) ( )
( )( )( )⎥
⎥⎥⎥⎥
⎢⎢⎢⎢⎢
==xxx
xRVxU 3
2
~~
~ l
l
a UUU
( )( )( )⎥
⎥⎥
⎦⎢⎢⎢
⎣ xxx
3
2
1
~~r
r
VVV( )
( )( )⎥
⎥⎥
⎦⎢⎢⎢
⎣ xxx
3
2
1
~~
r
r
UUU
( )⎦⎣ x3rV( )⎦⎣ x3rU
Anaglyph3D
Ideal6D
May 8, 2001 ICASSP 2001 23
3D 6D
G i f A l h IGeneration of Anaglyph Image
• For each pixel location we seek an element of the• 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 p g gis 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
lvalue.• This achieved by Projection
May 8, 2001 ICASSP 2001 24
A iAssumptions
• The approximation is carried out independently at• The approximation is carried out independently at each sample location
• The error metric at each point is a weightedThe error metric at each point is a weighted squared error between and U~ V~
( ) ( )VUWVUVU ~~~~~~ T2=
• A global scaling of the Vaj is used to account for
( ) ( )VUWVUVU −−=−
jthe attenuation of the filters.
May 8, 2001 ICASSP 2001 25
P j iProjection
• Applying standard projection theory gives• Applying standard projection theory gives
( ) 1( ) ( ) ( )
( ) ( )xVWCRWRR
xVWRWRRxV
2T1T
T1T ~ˆ−
−
=
=a
h i i fi d d
( ) ( )2
( ) T1T −• The 3 x 6 matrix is fixed and can be precomputed
( ) 2T1T WCRWRR
May 8, 2001 ICASSP 2001 26
B k b ll IBasketball Image
May 8, 2001 ICASSP 2001 27
A l hAnaglyph
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
C l iConclusion
• A method to generate anaglyphs based on the• A method to generate anaglyphs based on the mathematical description of the image display and perception process has been developed.p p p p
• Some color reproduction is possible.• Better stereo rendition than conventionalBetter stereo rendition than conventional
approaches.• You can view results at
http://www.site.uottawa.ca/~edubois/icassp01/
May 8, 2001 ICASSP 2001 34
Wh El ?What Else?
• How to choose filters to give best results?• How to choose filters to give best results?• Can color rendition be improved?
C th th d b li d t ti h tt d• Can the method be applied to time-shuttered stereo?
May 8, 2001 ICASSP 2001 35
Thanks forcoming!coming!
May 8, 2001 ICASSP 2001 36