Video Object Tracking and Replacement for Post TV Production LYU0303 Final Year Project Spring 2004.

Slides:



Advertisements
Similar presentations
1GR2-00 GR2 Advanced Computer Graphics AGR Lecture 9 Adding Realism Through Texture.
Advertisements

9.1si31_2001 SI31 Advanced Computer Graphics AGR Lecture 9 Adding Realism Through Texture.
Introduction Games have always been a fundamental part of human life. Space storm “ عاصفة الفضاء” is a 3D SCI-FI game that consists of two stages presented.
Virtual Realism TEXTURE MAPPING. The Quest for Visual Realism.
Ray tracing. New Concepts The recursive ray tracing algorithm Generating eye rays Non Real-time rendering.
Graphics Pipeline.
Advanced Imaging Techniques Lumberton High Sci Vis II V
V Material obtained from a July, 2014 summer workshop in Guildford County.
Video Object Tracking and Replacement for Post TV Production LYU0303 Final Year Project Fall 2003.
Image Segmentation Region growing & Contour following Hyeun-gu Choi Advisor: Dr. Harvey Rhody Center for Imaging Science.
Video Object Tracking and Replacement for Post TV Production LYU0303 Final Year Project Spring 2004.
Computer Graphics 14: Surface Detection Methods
(conventional Cartesian reference system)
Video Object Tracking and Replacement for post TV production LYU0303 Final Year Project Fall 2003.
Video Object Tracking and Replacement for Post TV Production LYU0303 Final Year Project Fall 2003.
Texture Mapping April 9, The Limits of Geometric Modeling Although graphics cards can render over 10 million polygons per second, that number.
Texture mapping. Adds realism to computer graphics Texture mapping applies a pattern of color Bump mapping alters the surface Mapping is cheaper than.
University of New Mexico
Texture Mapping Mohan Sridharan Based on slides created by Edward Angel 1 CS4395: Computer Graphics.
Basic Rendering Techniques V Recognizing basic rendering techniques.
3x3x3 Rubik’s Cube Solver Kevin Van Kammen Kyle Rupnow Jason Lavrenz.
Introduction to 3D Graphics John E. Laird. Basic Issues u Given a internal model of a 3D world, with textures and light sources how do you project it.
Tal Mor  Create an automatic system that given an image of a room and a color, will color the room walls  Maintaining the original texture.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 19 Other Graphics Considerations Review.
Digital Images The digital representation of visual information.
Computer Graphics Inf4/MSc Computer Graphics Lecture 9 Antialiasing, Texture Mapping.
COMP 175: Computer Graphics March 24, 2015
Week 2 - Wednesday CS361.
Computer Graphics An Introduction. What’s this course all about? 06/10/2015 Lecture 1 2 We will cover… Graphics programming and algorithms Graphics data.
CS 6825: Binary Image Processing – binary blob metrics
Graphics Systems and OpenGL. Business of Generating Images Images are made up of pixels.
Introduction Image geometry studies rotation, translation, scaling, distortion, etc. Image topology studies, e.g., (i) the number of occurrences.
Plenoptic Modeling: An Image-Based Rendering System Leonard McMillan & Gary Bishop SIGGRAPH 1995 presented by Dave Edwards 10/12/2000.
1 Perception and VR MONT 104S, Fall 2008 Lecture 21 More Graphics for VR.
1 Artificial Intelligence: Vision Stages of analysis Low level vision Surfaces and distance Object Matching.
Digital Media Dr. Jim Rowan ITEC So far… We have compared bitmapped graphics and vector graphics We have discussed bitmapped images, some file formats.
CS 450: COMPUTER GRAPHICS PROJECTIONS SPRING 2015 DR. MICHAEL J. REALE.
OpenGL The Viewing Pipeline: Definition: a series of operations that are applied to the OpenGL matrices, in order to create a 2D representation from 3D.
CS 325 Introduction to Computer Graphics 03 / 29 / 2010 Instructor: Michael Eckmann.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
Material obtained from Summer workshop in Guildford County, July, 2014 Unit 6.
Lecture 6 Rasterisation, Antialiasing, Texture Mapping,
Making Panoramas. Input: Output: … Input:  A set of images taken from the same optical center.  For this project, the images will also have the same.
Yizhou Yu Texture-Mapping Real Scenes from Photographs Yizhou Yu Computer Science Division University of California at Berkeley Yizhou Yu Computer Science.
2D Output Primitives Points Lines Circles Ellipses Other curves Filling areas Text Patterns Polymarkers.
Digital Media Lecture 5: Vector Graphics Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
Visible-Surface Detection Methods. To identify those parts of a scene that are visible from a chosen viewing position. Surfaces which are obscured by.
Processing Images and Video for An Impressionist Effect Automatic production of “painterly” animations from video clips. Extending existing algorithms.
Computer Graphics CC416 Lecture 04: Bresenham Line Algorithm & Mid-point circle algorithm Dr. Manal Helal – Fall 2014.
Over the recent years, computer vision has started to play a significant role in the Human Computer Interaction (HCI). With efficient object tracking.
Introduction to Computer Graphics
图像处理技术讲座(3) Digital Image Processing (3) Basic Image Operations
Computer Graphics Imaging
University of New Mexico
Buffers and texture mapping
Texture Mapping.
Computer Graphics Texture Mapping
A Geometry-Based Soft Shadow Volume Algorithm Using Graphics Hardware
Computer Graphics CC416 Week 13 Clipping.
Chapter 14 Shading Models.
Objectives Create a figure box Add a background image
Chapter 1: Image processing and computer vision Introduction
Digital Media Dr. Jim Rowan ITEC 2110.
Computer Animation Texture Mapping.
The Graphics Pipeline Lecture 5 Mon, Sep 3, 2007.
Lecture 13 Clipping & Scan Conversion
Texture Mapping Ed Angel Professor Emeritus of Computer Science
Chapter 14 Shading Models.
Dr. Jim Rowan ITEC 2110 Vector Graphics II
Presentation transcript:

Video Object Tracking and Replacement for Post TV Production LYU0303 Final Year Project Spring 2004

Outline Brief project overview and targets achieved New components added to the proposed system Working principles of individual parts Future work Q & A

Overview Post-TV production processes and changes the content of a video clip Difficult for computers to process video in a global view Step-by-step programming enables the computer to think more thoroughly

Overview We have introduced the following parts in the last semester: Bitmap I/O RGB HSV converter Edge detector Edge equation finder Translation detector Texture mapper New parts have been added in order to increase the functionality of the system

Additional Basic Components The following parts have been added Graphical User Interface (GUI) Corner point finder Video file reader and writer Video player processor (frame-based) Improved texture mapper The following part has been modified Bitmap I/O Edge finder Texture mapper Removed Equation processor

Graphical User Interface Although UI is not a main project part, a good GUI can significantly decrease the time needed for processing and program maintenance Since C++ language is being used, the Microsoft Foundation Classes are adopted to develop the user interface Provide most of the basic functions needed for information input and output

Graphical User Interface

Corner Point Finder As we know that processing dots are much faster than processing lines, we may wish to try to find the corner points directly before finding the edge equations Stick some brightly coloured labels at the corners of the rectangular surface Can apply on cylindrical objects as well to indicated the curve control points A simple K-Means method is used to group the points together.

Corner Point Finder In order to know the orientation of the mapped texture, we need to know which is the first point For simplicity we just make the first point larger so that it contains more corner points than the others First point

Corner Point Finder We repeat the process until all the corner points has been processed Points which are too far away from the main groups are discarded Find out the centroids of the groups and move them out to give an estimation of corner positions GroupNo. of Member

Corner Point Finder

Video File I/O As we are talking about video processing, it is inevitable to handle video reading and writing DirectShow interfaces are being used in the project Able to process any type of AVI video as long as the Window Media Player can play them

Video Player We need to choose a video renderer that is suitable for our application To reserve the function of real-time processing and video texture in the future, the Video Mixing Renderer 9 (VMR9) is used Allows the rendering of more than one video or bitmap on the screen at the same time

Video Processor Video are sequence of bitmap frames We capture each video frame and process them in the same way as processing the bitmaps After a video frame is being processed, we add them to an AVI file Default video compressor is DivX Mpeg4 encoder (FourCC code divx)

Video Renderer Video System Structure

Texture Mapper A graphics design technique used to wrap a surface of a 3-D object with a texture map The 3-D object acquires a surface texture similar to the texture map. Colors, brightness values or altitudes

Texture Mapper Mapping function (u,v) (r,c) Texture coordinates Image coordinates

line by line process each pixel on every line last semester, we mapped cubes. How about this semester? Scan-line conversion Scanline y k Scanline y k+1 scanning order for every line

Cylindrical mapping How to map this cylinder with different textures?

Cylindrical mapping Mapping cylinders 3 parts: Surface detection Line scanning Texture lookup + Orientation determination

Surface detection 1. Hough algorithm to detect the two straight edges four points are detected

Surface detection 2. Scanning from top to bottom the scanning slope is orthogonal yellow points are detected by color transition

Surface detection 3. Model the curved edges by ellipses x 2 / a 2 + y 2 / b 2 = 1 2 ellipses are needed rotational factor x y z

Scan-line mapping 4. Scan-line from left to right Problem: How to determine the corresponding texture for each pixel, say p=(x,y) ? x y z (x,y)

Texture lookup 5. Rotate the cylinder to the upright position along z-axis 6. Translate the cylinder to (0,0) and determine the z coordinate p=(x,y,z) 7. Rotate the along x- axis upright from viewpoint x y z (0,0) h

Texture lookup 8. Detect the marker which indicates where the texture starts 9. Look up the texture coordinate (u,v) by (y+h/2)/h = v tan -1 (x/z) / 2 = u x y z (u,v)

Cylindrical mapping After mapping the top we have : TEXTURES MAPPING MAPPED CYLINDER

Spherical mapping How to map this sphere with different textures?

Spherical mapping Mapping spheres Also 3 parts: Surface detection Line scanning Texture lookup + Orientation determination

Surface detection 1. Scan from 4 directions and get the boundary points 2. Determine center

Line scanning 3. Scan from left to right. 4. For each pixel p=(x,y), look up the texture by transforming it to the upright position x y z (0,0) Upright

Texture lookup 4. Translate to origin 5. Look up z- coordinate 6. Rotate the ball along z-axis 7. Rotate the ball along x-axis (x,y,z) x y z (0,0) (5) (6)

Texture lookup 8. Lookup the texture by v = cos -1 (y/R) / u = (cos -1 (x/(R sin(v ))) ) / (2 )

Spherical mapping After mapping: Mapped Sphere Texture

Shadow mapping Mapping of surface brightness Method: Covert the image from RGB HSV Modify the V (intensity) value 5 types of shadow mapping

Shadow mapping 1. Mapping with texture brightness often unrealistic 2. Mapping with image brightness

Shadow mapping 3. Mapping with average brightness of the image more realistic 4. Mapping with other shadow maps (e.g. wood)

Shadow mapping 5. Transparency mapping (background information has to be obtained)

Problem with sphere mapping The texture is squeezed at the pole

Solution Modify the texture to this: Mapped sphere becomes: No distortion at pole

Q & A