generation of anaglyph stereoscopic images

39
Generation of anaglyph stereoscopic images Eric Dubois

Upload: others

Post on 03-Feb-2022

22 views

Category:

Documents


0 download

TRANSCRIPT

Generation of anaglyph stereoscopicimages

Eric Dubois

June 14, 2000 Eric Dubois 2

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?

June 14, 2000 Eric Dubois 3

Stereoscopic image transmission andviewing

June 14, 2000 Eric Dubois 4

Stereoscopic Pair (Ray Hannisian)

June 14, 2000 Eric Dubois 5

Stereoscopic display methods

• Stereoscope (1832)

• Anaglyph (1853)

• Polarized glasses (1891)

• Liquid crystal shutter (time-sequential)

• Autostereoscopic (no glasses)

June 14, 2000 Eric Dubois 6

Wheatstone’s stereoscope

June 14, 2000 Eric Dubois 7

Stereoscope optics

June 14, 2000 Eric Dubois 8

Polarized stereoscopic display

June 14, 2000 Eric Dubois 9

What is ‘anaglyph’?

Anaglyph is a method to view stereoscopic imagesusing colored spectacles. The method waspatented in 1891 by Louis Ducos du Hauron, butsimilar methods had been demonstrated previouslyby W. Rollmann in 1853 and J.C. D’Almeida in1858.

June 14, 2000 Eric Dubois 10

Origin of the word anaglyph

The word anaglyph is from the Greek

ανα == again

γλµφη == sculpture

June 14, 2000 Eric Dubois 11

Classical method

For monochrome stereo images, the left view inblue (or green) is superimposed on the same imagewith the right view in red. When viewed throughspectacles of corresponding colors but reversed,the three-dimensional effect is perceived.

June 14, 2000 Eric Dubois 12

3D drawing

June 14, 2000 Eric Dubois 13

Bubbles (André-Claude Latulippe)

June 14, 2000 Eric Dubois 14

Dinosaur (Henry Chung)

June 14, 2000 Eric Dubois 15

Ideal Stereoscopic Display

• Input left and right views:

• The three components j=1,2,3 are gamma-corrected RGB(in that order) that can be directly displayed by a standardRGB display.

• L is the sampling raster for the image

L∈= xxx ;3,2,1),(),( '' jVV rjlj

June 14, 2000 Eric Dubois 16

Ideal Stereoscopic Display• The three components go through the display gamma,

denoted g, and excite the display RGB phosphors,

• The spectral density functions of the RGB displayphosphors are denoted

• The light emanating from point x in left and right images isgiven by

3,2,1),( =jd j λ

( ) ( ) ( )

( ) ( ) ( )λλ

λλ

jj

rjr

jj

ljl

dVQ

dVQ

=

=

=

=

3

1

3

1

,

,

xx

xx

( ) ( )( ) 3,2,1;,,' ==⋅= ⋅⋅ jrlVgV jj xx

June 14, 2000 Eric Dubois 17

June 14, 2000 Eric Dubois 18

Perceived stereo pair

• The color perceived at point x in the left and rightimages is determined by the projection of Ql(λ ,x)and Qr(λ ,x) onto the visual subspace using colormatching functions ( )λkp

( ) ( ) ( )

( ) ( ) ( )

( ) 3,2,1,

,~

3

1

3

1

==

=

=

∑ ∫

=

=

kVc

ddpV

dpQV

ljj

kj

jjklj

kllk

x

x

xx

λλλ

λλλ

June 14, 2000 Eric Dubois 19

Perceived stereo pair

• In matrix notation,

• Similarly,

• With the standard XYZ color space,

( ) ( )xCVxV ll =~

[ ] ( ) ( ) λλλ ddpc jkkjkj ∫==C

( ) ( )xCVxV rr =~

=

9109.01421.00357.0

0811.06592.02597.0

1808.03055.04641.0

C

June 14, 2000 Eric Dubois 20

Perceived Stereo Image

• The value of the stereo image at each point x canbe considered to be an element of a six-dimensional vector space S6

( )

( )( )( )( )( )( )

=

x

x

x

x

x

x

xV

3

2

1

3

2

1

~

~

~

~

~

~

~

r

r

r

l

l

l

V

V

V

V

V

V

June 14, 2000 Eric Dubois 21

Visualization of an Anaglyph Image

• The anaglyph image is denoted

• The light emitted from the screen at point x is

• where

( ) L∈= xx ;3,2,1,' jVaj

( ) ( ) ( )λλ jj

aja dVQ ∑=

=3

1, xx

( ) ( )( )xx 'ajaj VgV =

June 14, 2000 Eric Dubois 22

Anaglyph Image

June 14, 2000 Eric Dubois 23

Perceived Anaglyph Image with Glasses

• The light from the CRT passes through two filterswith spectral absorption functions fl(λ) and fr(λ)before arriving at the left and right eyes.

• The light spectral density at the left and right eyesis Qa(λ,x)fl(λ) and Qa(λ,x)fr(λ) respectively.

June 14, 2000 Eric Dubois 24

Transmission of red and blue filters

June 14, 2000 Eric Dubois 25

Perceived Anaglyph Image with Glasses

• The tristimulus values for the left and right viewsthrough the glasses are

• or Similarly,

( ) ( ) ( ) ( )

( ) ( ) ( ) ( )

( ) 3,2,1,

,~

3

1

3

1

==

=

=

∫∑

=

=

kVa

dfdpV

dpfxQU

jajlkj

ljkj

aj

kllk

x

x

x

λλλλ

λλλλ

( ) ( )xVAxU all =~ ( ) ( )xVAxU arr =~

June 14, 2000 Eric Dubois 26

Goal of Anaglyph reproduction

We want the anaglyph image to appear as similaras possible to the ideal stereoscopic image

( )

( )( )( )( )( )( )

=

x

x

x

x

x

x

xV

3

2

1

3

2

1

~

~

~

~

~

~

~

r

r

r

l

l

l

V

V

V

V

V

V

( ) ( )

( )( )( )( )( )( )

==

x

x

x

x

x

x

xRVxU

3

2

1

3

2

1

~

~

~

~

~

~

~

r

r

r

l

l

l

a

U

U

U

U

U

U

Anaglyph3D

Ideal6D

June 14, 2000 Eric Dubois 27

Generation of Anaglyph Image

• For each pixel location, we seek an element of thethree-dimensional anaglyph subspace as close aspossible to the original stereo image value whichis in a six-dimensional space.

• If we have a suitable distance metric, we canchoose the value in the three-dimensional spacethat is closest to the original six-dimensionalvalue.

• This achieved by Projection

June 14, 2000 Eric Dubois 28

Assumptions

• The approximation is carried out independently ateach sample location

• The error metric at each point is a weightedsquared error between and

• A global scaling of the Vaj is used to account forthe attenuation of the filters.

U~ V~

( ) ( )VUWVUVU ~~~~~~ T2 −−=−

June 14, 2000 Eric Dubois 29

Projection

• Applying standard projection theory gives

• The 3 x 6 matrix is fixed andcan be precomputed

( ) ( ) ( )

( ) ( )xVWCRWRR

xVWRWRRxV

2T1T

T1T ~ˆ

=

=a

( ) 2T1T WCRWRR

June 14, 2000 Eric Dubois 30

Basketball Image

June 14, 2000 Eric Dubois 31

Anaglyph

June 14, 2000 Eric Dubois 32

June 14, 2000 Eric Dubois 33

June 14, 2000 Eric Dubois 34

June 14, 2000 Eric Dubois 35

June 14, 2000 Eric Dubois 36

June 14, 2000 Eric Dubois 37

Conclusion

• A method to generate anaglyphs based on themathematical description of the image display andperception process has been developed.

• Some color reproduction is possible.

• Better stereo rendition than conventionalapproaches.

June 14, 2000 Eric Dubois 38

What Else?

• How to choose filters to give best results?

• Can color rendition be improved?

• Can the method be applied to time-shutteredstereo?

June 14, 2000 Eric Dubois 39

Thanks for coming!