renov yapola 26406168. it’s interesting to see 2d movie in 3d illusion when the images have an...

29
DESIGN AND IMPLEMENTATION OF ANAGLYPH MOVIE MAKER APPLICATION RENOV YAPOLA 26406168

Upload: arline-bryant

Post on 17-Dec-2015

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

DESIGN AND IMPLEMENTATION OF

ANAGLYPH MOVIE MAKER APPLICATION

RENOV YAPOLA26406168

Page 2: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

BACKGROUND

It’s interesting to see 2D movie in 3D illusion when the images have an depth level.

Anaglyphic image illusion can be seen with cheap Anaglyphic Glasses, as filter.

No need for optical gymnastic, like crossing eyes.

Page 3: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

OBJECTIVE

Convert a movie into anaglyph movie with using just one movie as a source.

Page 4: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

PROBLEM

How to create an anaglyph movie by using just one movie.

Transition of pixel.

Page 5: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

ANAGLYPH IMAGING

Made of two slightly different image The difference is in scope and color The two images is superimposed with

screen blending, then displayed.

Page 6: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

ANAGLYPH GLASSES

Filtering some color component, so each eye only see some part of the image color.

The brain interpret this as the result of the difference in distance, thus produce an image with depth level.

Page 7: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

FLOWCHART : MAINStart

Pilih Movie

Pilih Metode Konversi

Mengkonversi

End

Membuat file video anaglyph

Page 8: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

FLOWCHART : SELECT MOVIE

Pilih Movie

Movie tipe AVI

Movie Tipe Mpeg

No

Membuka file dalam bentuk

stream

End

No

Yes

Mencari stream video

Menemukan video stream

End

Memasukkan frame ke

dalam arrayContinue

No

Yes

Membangun audio

stream

Yes

Page 9: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

FLOWCHART : SELECT METHODPilih Metode

Konversi

True Anaglyph

Gray Anaglyph

Color Anaglyph

Half-Color Anaglyph

Optimized Anaglyph

Set Left Color Matrix0,299 0,587 0,114

0 0 00 0 0

Set Right Color Matrix0 0 00 0 0

0,299 0,587 0,114

Continue

Set Left Color Matrix0,299 0,587 0,114

0 0 00 0 0

Set Right Color Matrix0 0 0

0,299 0,587 0,1140,299 0,587 0,114

Set Left Color Matrix1 0 00 0 00 0 0

Set Right Color Matrix0 0 00 1 00 0 1

Set Left Color Matrix0,299 0,587 0,114

0 0 00 0 0

Set Right Color Matrix0 0 00 1 00 0 1

Set Left Color Matrix0 0,7 0,30 0 00 0 0

Set Right Color Matrix0 0 00 1 00 0 1

End

Page 10: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

FLOWCHART : SELECT METHOD (CONT.)

COLOR MATRIX

PIXEL HASIL

R G B

* =

R 00

10

20

R 1 R (00*1)+(10*2)+(20*3)

G 01

11

21

G 2 G (01*1)+(11*2)+(12*3)

B 02

12

22

B 3 B (02*1)+(12*2)+(22*3)

Page 11: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

FLOWCHART : CONVERT

Mengkonversi

I = jumlah frameI = 0

ContinueYes

Mengambil frame dari array pada index ke i

Membuat gambar kiri dan gambar kanan dari frame tersebut dengan

color matrix yang sesuai

Menggabungkan kedua gambar i++

No

Page 12: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

FLOWCHART : BUILD AUDIO STREAM

Membangun audio

streeam

Membangun timeline

Membangun BackEnd

Continue

Page 13: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

FLOWCHART : CREATE FILEMembuat file video anaglyph

Membuat file video baru di hard disk drive komputer

Membuat stream untuk file video,

serta memasukkan metadata

I = 0 I = jumlah frame

Memasukkan frame ke dalam

file video

i++

No

Continue

Menutup file stream

Yes

Page 14: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

TRANSITION TEST : 10 PIXEL

Page 15: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

TRANSITION TEST : 20 PIXEL

Page 16: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

TRANSITION TEST : 50 PIXEL

Page 17: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

TRANSITION TEST : 100 PIXEL

Page 18: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

METHOD TEST : TRUE ANAGLYPH

Page 19: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

METHOD TEST : TRUE ANAGLYPH

Dark Image No Color Reproduction Little Ghosting

Page 20: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

METHOD TEST : GRAY ANAGLYPH

Page 21: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

METHOD TEST : GRAY ANAGLYPH No color reproduction Ghosting than True Anaglyph Method

Page 22: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

METHOD TEST : COLOR ANAGLYPH

Page 23: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

METHOD TEST : COLOR ANAGLYPH Partial color reproduction Retinal rivalry

Page 24: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

METHOD TEST : HALF – COLOR ANAGLYPH

Page 25: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

METHOD TEST : HALF – COLOR ANAGLYPH Partial color reproduction (but not as

good as color anaglyphs) Less retinal rivalry than color anaglyphs

Page 26: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

METHOD TEST : OPTIMIZED ANAGLYPH

Page 27: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

METHOD TEST : OPTIMIZED ANAGLYPH Partial color reproduction (but not of red

shades) Almost no retinal rivalry

Page 28: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

CONCLUSION

Color Anaglyph is the best method to produce an Anaglyphic image when the image have an object with contrast color from the background.

Gray Anaglyph and Half-color Anaglyph is the best method to produce an Anaglyphic Image with less or no Ghosting effect.

Optimized Anaglyph is the best method to produce an Anaglyphic Image with original color intact.

True Anaglyph method is not recomended because the result is dark and have Ghosting effect.

The DexterLib library used to read the video metadata, cannot read all extension of video.

Page 29: RENOV YAPOLA 26406168.  It’s interesting to see 2D movie in 3D illusion when the images have an depth level.  Anaglyphic image illusion can be seen

SUGGESTION

Because of the usage of lots of physical memory, the video to be converted before preview must less than 1 minute.

The file produced by Avifil32 library is huge, that’s why another library must be used to produce an output file.

The algorithm used in this program is slow, so there’s need for another faster algorithm.