Video Object Tracking and Replacement for Post TV Production LYU0303 Final Year Project Fall 2003.

Slides:



Advertisements
Similar presentations
Visible-Surface Detection(identification)
Advertisements

Video Object Tracking and Replacement for Post TV Production LYU0303 Final Year Project Spring 2004.
CS 352: Computer Graphics Chapter 7: The Rendering Pipeline.
Ray tracing. New Concepts The recursive ray tracing algorithm Generating eye rays Non Real-time rendering.
Week 11 - Wednesday.  Image based effects  Skyboxes  Lightfields  Sprites  Billboards  Particle systems.
3D Graphics Rendering and Terrain Modeling
Image Processing IB Paper 8 – Part A Ognjen Arandjelović Ognjen Arandjelović
Image Segmentation Image segmentation (segmentace obrazu) –division or separation of the image into segments (connected regions) of similar properties.
 Engineering Graphics & Introductory Design 3D Graphics and Rendering REU Modeling Course – June 13 th 2014.
Video Object Tracking and Replacement for Post TV Production LYU0303 Final Year Project Fall 2003.
HCI 530 : Seminar (HCI) Damian Schofield.
Motion Detection And Analysis Michael Knowles Tuesday 13 th January 2004.
Video Object Tracking and Replacement for Post TV Production LYU0303 Final Year Project Spring 2004.
Computer Graphics Hardware Acceleration for Embedded Level Systems Brian Murray
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.
Fitting a Model to Data Reading: 15.1,
The Story So Far The algorithms presented so far exploit: –Sparse sets of images (some data may not be available) –User help with correspondences (time.
Post-rendering Cel Shading & Bloom Effect
1. 2  A computer is a device capable of storing data  in a format suited to the computer,  which is then processed by mathematical manipulation and.
Modeling and representation 1 – comparative review and polygon mesh models 2.1 Introduction 2.2 Polygonal representation of three-dimensional objects 2.3.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 19 Other Graphics Considerations Review.
Computer Graphics Inf4/MSc Computer Graphics Lecture 9 Antialiasing, Texture Mapping.
Polygon Shading. Assigning color to a shape to make graphical scenes look realistic, or artistic, or whatever effect we’re attempting to achieve But first.
Basics of Rendering Pipeline Based Rendering –Objects in the scene are rendered in a sequence of steps that form the Rendering Pipeline. Ray-Tracing –A.
COMPUTER GRAPHICS CS 482 – FALL 2014 AUGUST 27, 2014 FIXED-FUNCTION 3D GRAPHICS MESH SPECIFICATION LIGHTING SPECIFICATION REFLECTION SHADING HIERARCHICAL.
COMP 175: Computer Graphics March 24, 2015
Dr. S.M. Malaek Assistant: M. Younesi
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
October 14, 2014Computer Vision Lecture 11: Image Segmentation I 1Contours How should we represent contours? A good contour representation should meet.
Geometric Operations and Morphing.
Under Supervision of Dr. Kamel A. Arram Eng. Lamiaa Said Wed
Intelligent Vision Systems ENT 496 Object Shape Identification and Representation Hema C.R. Lecture 7.
Graphics Systems and OpenGL. Business of Generating Images Images are made up of pixels.
Visible-Surface Detection Jehee Lee Seoul National University.
Digital Media Dr. Jim Rowan ITEC Vector Graphics Elegant way to construct digital images that –have a compact representation –are scalable –are.
Computer Graphics The Rendering Pipeline - Review CO2409 Computer Graphics Week 15.
Multitouch and Collision Detection MOBILE SOFTWARE DEVELOPMENT.
2D Output Primitives Points Lines Circles Ellipses Other curves Filling areas Text Patterns Polymarkers.
CS654: Digital Image Analysis Lecture 25: Hough Transform Slide credits: Guillermo Sapiro, Mubarak Shah, Derek Hoiem.
1 Perception and VR MONT 104S, Fall 2008 Lecture 21 More Graphics for VR.
Digital Media Dr. Jim Rowan ITEC So far… We have compared bitmapped graphics and vector graphics We have discussed bitmapped images, some file formats.
1 Research Question  Can a vision-based mobile robot  with limited computation and memory,  and rapidly varying camera positions,  operate autonomously.
Edge Detection and Geometric Primitive Extraction Jinxiang Chai.
CS 325 Introduction to Computer Graphics 03 / 29 / 2010 Instructor: Michael Eckmann.
Autonomous Robots Vision © Manfred Huber 2014.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
Lecture 6 Rasterisation, Antialiasing, Texture Mapping,
Digital Media Dr. Jim Rowan ITEC Vector Graphics Elegant way to construct digital images that –have a compact representation –are scalable –are.
CS559: Computer Graphics Final Review Li Zhang Spring 2010.
1Ellen L. Walker 3D Vision Why? The world is 3D Not all useful information is readily available in 2D Why so hard? “Inverse problem”: one image = many.
2D Output Primitives Points Lines Circles Ellipses Other curves Filling areas Text Patterns Polymarkers.
Lecture 13: Raster Graphics and Scan Conversion
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
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.
A School of Mechanical Engineering, Hebei University of Technology, Tianjin , China Research on Removing Shadow in Workpiece Image Based on Homomorphic.
CSE 185 Introduction to Computer Vision
Chapter 10 Digital Signal and Image Processing
Fitting: Voting and the Hough Transform
Week 11 - Wednesday CS361.
Motion and Optical Flow
Digital 2D Image Basic Masaki Hayashi
3D Graphics Rendering PPT By Ricardo Veguilla.
CSCE 441: Computer Graphics Image Warping
Geometric Transformations for Computer Graphics
Presentation transcript:

Video Object Tracking and Replacement for Post TV Production LYU0303 Final Year Project Fall 2003

Outline  Project Introduction  Basic parts of the purposed system  Working principles of individual parts  Future Work  Q&A

Introduction  Post-TV production software changes the content of the original video clips.  Extensively used in video-making industries.  Why changing the content of a video?  Reducing video production cost  Performing dangerous actions  Producing effects those are impossible in reality

Difficulties to be overcome  Things in video can be treated individually called “video objects”.  Computers cannot perform object detection directly because…  Image is processed byte-by-byte  Without prior knowledge about the video objects to be detected  Result is definite, no fuzzy logic.  Though computers cannot perform object detection directly, it can be programmed to work indirectly.

Basic parts of the purposed system  Simple bitmap reader/writer  RGB/HSV converter  Edge detector with smoother  Edge equation finder  Equation processor  Translation detector  Texture mapper

RGB/HSV converter  Human eyes are more sensitive to the brightness rather than the true color components of an object.  More reasonable to convert the representation of colors into HSV (Hue, Saturation and Value (brightness)) model.  After processing, convert back to RGB and save to disk.

RGB/HSV converter RGB to HSV HSV to RGB

Basic parts of the purposed system  Simple bitmap reader/writer  RGB/HSV converter  Edge detector with smoother  Edge equation finder  Equation processor  Translation detector  Texture mapper

Edge detector  Usually, a sharp change in hue, saturation or brightness means that there exist a boundary line. HSV: (0,0,0) HSV: (0,255,255)

Edge detector Before edge highlightingAfter edge highlighting

Smoother for Edge detector  Sometimes noise will affect the edge detection result of low resolution images.  Include an image smoother to remove large noise points in the image.  In some cases performing a smoothing will greatly enhance the performance of edge detection due to the decrease in “fake” edge points.

Smoother for Edge detector

Basic parts of the purposed system  Simple bitmap reader/writer  RGB/HSV converter  Edge detector with smoother  Edge equation finder  Equation processor  Translation detector  Texture mapper

Edge equation finder  Derives mathematical facts out of the edge points.  Works with voting algorithm of Hough Transform.  Automatically adjusts tolerance value to minimize the effect of noise points.  This helps when the edge is not completely straight or blurred.

Edge equation finder (x1,y1) Angle in degree Frequency Desired linear equation in point-slope form:

Edge equation finder

Basic parts of the purposed system  Simple bitmap reader/writer  RGB/HSV converter  Edge detector with smoother  Edge equation finder  Equation processor  Translation detector  Texture mapper

Equation processor  After finding out the equation, constraints can be applied in order to remove redundant equations, get shadows or detect occultation.  Find out the corner points for translation detector and texture mapper.

Equation processor Before edge findingAfter edge and equation findingAfter extra equation removal

Equation processor  The following criteria are currently adopted in the equation processor:  Distance between the equations  Angle between the equations  Whether the equation intersects the object or not.  Since equation processor is a potential burden to the system, it may be replaced in the future by improving other parts.

Basic parts of the purposed system  Simple bitmap reader/writer  RGB/HSV converter  Edge detector with smoother  Edge equation finder  Equation processor  Translation detector  Texture mapper

Translation detector  A simple object motion tracker.  Collects the data of the first key frame to accelerate the process of the remaining video frames.  Can be beneficial if the video segment is long and the scene seldom changes.

Translation detector  Records the approximate location of the object in the key frame.  When processing the following video frames, just scan within a certain boundary near the recorded location.  Will improve its efficiency later.

Basic parts of the purposed system  Simple bitmap reader/writer  RGB/HSV converter  Edge detector  Edge equation finder  Equation processor  Texture mapper

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 (color) Texture mapImage

Texture Mapper  Definition of terms: Image coordinates (r, c) : location of pixel in the image Image coordinates (r, c) : location of pixel in the image Texture coordinates (u, v) : location in texture map which contains color information for image coordinates Texture coordinates (u, v) : location in texture map which contains color information for image coordinates Mapping function : determines how texture coordinates are mapped to image coordinates or vice versa. e.g. linear scan-line interpolation Mapping function : determines how texture coordinates are mapped to image coordinates or vice versa. e.g. linear scan-line interpolation

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

Texture Mapper  Definition of terms Forward mapping maps from the texture space to image space Forward mapping maps from the texture space to image space Inverse mapping maps from the image space to texture space Inverse mapping maps from the image space to texture space Scan-line conversion: an area-filling technique processing a surface line by line. It can be applied with forward/inverse mapping. Scan-line conversion: an area-filling technique processing a surface line by line. It can be applied with forward/inverse mapping.

Texture Mapper Forward mapping Inverse mapping

Texture Mapper Texture scanning Image scanning More important Scan-line conversion

 triangle/parallelogram scanning  line by line, from top to bottom  process each pixel on every line Scan-line conversion Scanline y k Scanline y k+1 scanning order for every line

Scan-line conversion  For a row scan, maintain a list of scanline / polygon intersections.  Intersection at scanline r+1 efficiently computed from scanline r. Scanline y k Scanline y k+1 Coordinates differ by Δx and Δy

Scan-line conversion  quadrilateral  triangles or parallelograms  scan each sub-polygon  special case: only 2 sub-polygons 1 2 3

Scan-line conversion with forward mapping Algorithm Algorithm texture scanning forward mapping functions r = R(u,v) c = C(u,v) copy pixel at source (u,v) copy pixel at source (u,v) to destination (r,c) to destination (r,c) for u = umin to umax for v = vmin to vmix for v = vmin to vmix

Scan-line conversion with inverse mapping texture scanning inverse mapping functions u = U(r,c) v = V(r,c) copy pixel at source (u,v) copy pixel at source (u,v) to destination (r,c) to destination (r,c) for (r,c) = polygon pixel Algorithm Algorithm

Comparison Possibility of aliasing NoYes Calculation of fractional area of pixel coverage a bit complicated as it involves image scanning easy if the mapping function is known Ease of implementation image  texture texture  image Principle Inverse mapping Forward mapping

Comparison Aliasing – filtering/resampling techniques can be applied for inverse mapping

Comparison Yes, but can be avoided with simple filtering/resampling Yes Possibility of aliasing NoYes Calculation of fractional area of pixel coverage a bit complicated as it involves image scanning easy if the mapping function is known Ease of implementation image  texture texture  image Principle Inverse mapping Forward mapping We used inverse mapping

Mapping functions  Simple linear transformations Translation, scaling, etc Translation, scaling, etc  parallelograms only  parallelograms only very fast very fast  Linear scan-line interpolation Based on proportion Based on proportion  any quadrilaterals  any quadrilaterals not suitable feasible

Linear scan-line interpolation  Idea of interpolation (x 1, y 1 ) (x 2, y 2 ) a 1-a (x, y) = a(x 2, y 2 ) + (1-a)(x 1, y 1 )

Linear scan-line interpolation (r 4, c 4 ) (r 1, c 1 ) (r 3, c 3 )(r 2, c 2 ) (r 5, c 5 ) (r, c) image (u 1, v 1 )(u 3, v 3 ) texture map (u 2, v 2 ) (u 4, v 4 ) (u 5, v 5 ) For a particular scanline, (u, v)

After mapping a bit strange !

Shadow mapping  Mapping of surface brightness  Retain the brightness of the original surface  Method: Convert the original surface  HSV Convert the original surface  HSV Get the V value Get the V value Replace the V value of the mapped surface Replace the V value of the mapped surface

After Shadow mapping More natural !

Future Work  Anti-aliasing  Mapping different shapes like cans  Speed optimization  Movie manipulation  Use of 3D markers

Q & A