Top Banner
Anaglyph Videos Student: Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor: Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams
24

Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

Dec 13, 2015

Download

Documents

Brooke Black
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

Anaglyph Videos

Student: Jihaad PienaarSupervisor: Mr Mehrdad Ghaziasgar Co-Supervisor: Mr James ConnanMentors: Mr Roland Foster & Mr Kenzo Abrahams

Page 2: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

Overview

• RECAP• USER INTERFACE SPECIFICATION• HIGH LEVEL DESIGN• LOW LEVEL DESIGN• DEMO• REFERENCES• QUESTIONS & ANSWERS

Page 3: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

Recap

A system which allows users to convert 2D videos into an Anaglyph 3D equivalent.

Converted video can then be viewed on any normal TV or monitor, with 3D anaglyph glasses.

Page 4: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

User Interface Specification

Page 5: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

User Interface Specification

• Graphic User Interface (GUI)

• Users will interact by selecting options from menu’s

Page 6: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

User Interface Specification

• Display Window

Page 7: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

User Interface Specification

• Opening a file

Page 8: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

User Interface Specification

• Converting the file

Page 9: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

User Interface Specification

• Play back of 3D output

Page 10: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

User Interface Specification

• Saving the 3D output

Page 11: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

High Level Design

Page 12: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

High Level Design

Input

Image Processing

Left Image Right Image6.5 cm

Page 13: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

High level design

Output

Page 14: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

High Level Design

Input

Image Processing

Original Image Depth Map of Image

Page 15: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

High level design

Output

Page 16: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

Low Level Design

Page 17: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

Low Level Design

• Video needs to be broken up into frames

• cvQueryFrame( capture )

Page 18: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

Low Level Design

• Convert BGR colour space to RGB colour space

• cvtColor(left, left, CV_BGR2RGB);

Page 19: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

Low Level Design

• Dubois

– Least square approximation to produce a

matrix

– MatrixMultiply(Limage[3][1],Rimage[3][1])

Page 20: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

Low Level Design

• Depth Map

– Using depth map we displace original image by some amount

– Displace(Image,DepthMap)

– D=30.0*((I-127.5)/(127.5));

– Where D is the amount to displace and I is the current pixel of

the depth map

Page 21: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

Low Level Design

• Output

– Display video frames

– cvShowImage( “example", frame );

Page 22: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

Demo

Page 23: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

Questions

Page 24: Anaglyph Videos Student:Jihaad Pienaar Supervisor: Mr Mehrdad Ghaziasgar Co-Supervisor:Mr James Connan Mentors: Mr Roland Foster & Mr Kenzo Abrahams.

References

• Bradski, G., & Kaehler, A., (2008). “Learning OpenCV.

United States of America: O’Reilly Media, Inc.”, 8-30

• Doneus, M., & Hanke K., (1997). “Anaglyph images still a good way to look at 3d-objects?”, 2

• Ianir A. I., Leonid P. Y., ; Barak, F., & Roni, V., (2007). "3D from compressed 2D video", Proc. SPIE 6490, Stereoscopic Displays and Virtual Reality Systems XIV, 64901C