renov yapola 26406168. it’s interesting to see 2d movie in 3d illusion when the images have an...
TRANSCRIPT
DESIGN AND IMPLEMENTATION OF
ANAGLYPH MOVIE MAKER APPLICATION
RENOV YAPOLA26406168
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.
OBJECTIVE
Convert a movie into anaglyph movie with using just one movie as a source.
PROBLEM
How to create an anaglyph movie by using just one movie.
Transition of pixel.
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.
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.
FLOWCHART : MAINStart
Pilih Movie
Pilih Metode Konversi
Mengkonversi
End
Membuat file video anaglyph
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
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
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)
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
FLOWCHART : BUILD AUDIO STREAM
Membangun audio
streeam
Membangun timeline
Membangun BackEnd
Continue
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
TRANSITION TEST : 10 PIXEL
TRANSITION TEST : 20 PIXEL
TRANSITION TEST : 50 PIXEL
TRANSITION TEST : 100 PIXEL
METHOD TEST : TRUE ANAGLYPH
METHOD TEST : TRUE ANAGLYPH
Dark Image No Color Reproduction Little Ghosting
METHOD TEST : GRAY ANAGLYPH
METHOD TEST : GRAY ANAGLYPH No color reproduction Ghosting than True Anaglyph Method
METHOD TEST : COLOR ANAGLYPH
METHOD TEST : COLOR ANAGLYPH Partial color reproduction Retinal rivalry
METHOD TEST : HALF – COLOR ANAGLYPH
METHOD TEST : HALF – COLOR ANAGLYPH Partial color reproduction (but not as
good as color anaglyphs) Less retinal rivalry than color anaglyphs
METHOD TEST : OPTIMIZED ANAGLYPH
METHOD TEST : OPTIMIZED ANAGLYPH Partial color reproduction (but not of red
shades) Almost no retinal rivalry
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.
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.