Project Image Morphing Presented By Sharmila Gupta.

Slides:



Advertisements
Similar presentations
15-Nov-13www.fakengineer.com Seminar O n morphing.
Advertisements

Linear Interpolation Applying “weighted averages” to some graphics problems: animations and curve-drawing.
Chapter 7 Working with Distortions, Gradient Meshes, Envelopes, and Blends.
Morphing & Warping 2D Morphing Involves 2 steps 1.Image warping “get features to line up” 2.Cross-dissolve “mix colors” (fade-in/fadeout transition)
Warping and Morphing.
© 2011 Delmar, Cengage Learning Chapter 7 Working with Distortions, Gradient Meshes, Envelopes, and Blends.
2-D IMAGE MORPHING.
2D preobrazba (morphing). 2D preobrazba dekle-tiger.
Feature-Based Image Metamorphosis Thaddeus Beier Shawn Neely SIGGRAPH 1992.
A new approach for modeling and rendering existing architectural scenes from a sparse set of still photographs Combines both geometry-based and image.
1 Computer Science 631 Lecture 2: Morphing Ramin Zabih Computer Science Department CORNELL UNIVERSITY.
Chapter 4 Digital Multimedia, 2nd edition Vector Graphics.
(conventional Cartesian reference system)
Image Morphing : Rendering and Image Processing Alexei Efros.
Image Morphing Tong-Yee Lee. Image Morphing Animate transitions between two images Specify Correspondence Warping Blending.
Image Morphing : Computational Photography Alexei Efros, CMU, Fall 2005 © Alexey Tikhonov.
Image Morphing, Triangulation CSE399b, Spring 07 Computer Vision.
Image warping/morphing Digital Video Special Effects Fall /10/17 with slides by Y.Y. Chuang,Richard Szeliski, Steve Seitz and Alexei Efros.
Image Morphing, Thin-Plate Spline Model CSE399b, Spring 07 Computer Vision
Image Morphing CSC320: Introduction to Visual Computing
3D Morphing.
MORPHING Presentation By: SWARUP DEEPIKA JAGMOHAN Date: 22 OCT 2002 Course: COMPUTER GRAPHICS.
CSCE 441: Computer Graphics Image Warping/Morphing Jinxiang Chai.
CS 551/651 Advanced Computer Graphics Warping and Morphing Spring 2002.
Geometric Operations and Morphing.
COLLEGE OF ENGINEERING UNIVERSITY OF PORTO COMPUTER GRAPHICS AND INTERFACES / GRAPHICS SYSTEMS JGB / AAS 1 Shading (Shading) & Smooth Shading Graphics.
Portraiture Morphing Presented by Fung, Chau-ha Jenice.
Geometric Transformations
Multimedia Software Tools. 3-D Modeling and Animation Tools 3-D modeling gives images a 3-dimensional look. It can be used along with animation, for instance,
Digital Media Dr. Jim Rowan ITEC Vector Graphics Elegant way to construct digital images that –have a compact representation –are scalable –are.
Computer Animation Algorithms and Techniques Chapter 4 Interpolation-based animation.
1 CS 430/536 Computer Graphics I Curve Drawing Algorithms Week 4, Lecture 8 David Breen, William Regli and Maxim Peysakhov Geometric and Intelligent Computing.
Vector Graphics Digital Multimedia Chap 이병희
Digital Media Dr. Jim Rowan ITEC So far… We have compared bitmapped graphics and vector graphics We have discussed bitmapped images, some file formats.
Image Processing Part II. 2 Classes of Digital Filters global filters transform each pixel uniformly according to the function regardless of its location.
Editing Graphics Effects and Improvements. Editing Graphics Graphics editors have features for changing the sizes of images as well as their colors and.
Advanced Multimedia Warping & Morphing Tamara Berg.
Volume Visualization Presented by Zhao, hai. What’ volume visualization Volume visualization is the creation of graphical representations of data sets.
3D Object Morphing CS5245 Vision and Graphics for Special Effects.
CS559: Computer Graphics Lecture 8: Warping, Morphing, 3D Transformation Li Zhang Spring 2010 Most slides borrowed from Yungyu ChuangYungyu Chuang.
Intelligent Vision Systems ENT 496 Image Filtering and Enhancement Hema C.R. Lecture 4.
Image Processing 고려대학교 컴퓨터 그래픽스 연구실 cgvr.korea.ac.kr.
Graphics Graphics Korea University cgvr.korea.ac.kr Image Processing 고려대학교 컴퓨터 그래픽스 연구실.
Lecture # 19 Image Processing II. 2 Classes of Digital Filters Global filters transform each pixel uniformly according to the function regardless of.
Image warping Li Zhang CS559
Krivljenje slike - warping. Princip 2D krivljenja Demo.
Digital Media Dr. Jim Rowan ITEC Vector Graphics Elegant way to construct digital images that –have a compact representation –are scalable –are.
Multimedia Programming 10: Image Morphing
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
College of Computer and Information Science, Northeastern UniversityMarch 8, CS U540 Computer Graphics Prof. Harriet Fell Spring 2007 Lecture 34.
CS559: Computer Graphics Lecture 7: Image Warping and Panorama Li Zhang Spring 2008 Most slides borrowed from Yungyu ChuangYungyu Chuang.
Image Processing Lab Section 28/3/2016 Prepared by Mahmoud Abdelsatar Demonstrator at IT Dep. Faculty of computers and information Assuit University.
Chapter 7 Working with Distortions, Gradient Meshes, Envelopes, and Blends.
Krivljenje slike - warping
Image warping/morphing Digital Visual Effects, Spring 2006 Yung-Yu Chuang 2005/3/15 with slides by Richard Szeliski, Steve Seitz and Alexei Efros.
Image Morphing © Zooface Many slides from Alexei Efros, Berkeley.
2D preobrazba (morphing)
CS1315: Introduction to Media Computation
Prof. Harriet Fell Spring 2009 Lecture 34 – March 25, 2009
Jeremy Bolton, PhD Assistant Teaching Professor
Image warping/morphing
Dr. Jim Rowan ITEC 2110 Wednesday, September 12
Computational Photography Derek Hoiem, University of Illinois
Outline Announcement Local operations (continued) Linear filters
Digital Media Dr. Jim Rowan ITEC 2110.
Morphing WU PO-HUNG.
Computer Graphics: Image Warping/Morphing
Image Morphing using mesh warp and feature based warp
Presentation transcript:

Project Image Morphing Presented By Sharmila Gupta

Digital Image Manipulation uCompositing uConvolution uDithering uWarping uInterpolation/ Extrapolation uMorphing uSimple pixel Modification

Simple Pixel Modification uConvert to Gray f(r,g,b) =.3r +.52g + 10b uInvert f(v) = 1-v uBrighten/darken f(v) = ßv for ß >= 0 uThreshold if v > threshold then f(v) = 1 else f(v) = 0 uApplying same degree of change in every pixel

Image Interpolation/Extrapolation uChange Contrast uChange Saturation OriginalMore ContrastLess Contrast uOffers a general, unifying approach to many common point and area image processing operations. uBrightness, contrast, saturation, tint, and sharpness can all be controlled with one formula, separately or simultaneously. OriginalMore SaturatedLess Saturated

Image Interpolation/Extrapolation uBrighten/darken uNoise removal OriginalMore BrightLess Bright median filtered image Image with “impulse” noise

Compositing u Compisiting images involves combining separate image layers into one u Layers may be moved and arranged. Composite Original

Convolution uEdge Enhancement uBlur-ness OriginalEdge Defined De-blurredBlurred uUsed for different image processing, removing blur-ness, defining edge, restore special effect by filtering, masking or other technique.

Dithering uMonitors and image files limited to 256 colors can create the illusion of more colors by Dithering the available colors in a scattered pattern, approximating the desired color. uImage editors often use dithering to convert true color images to indexed color images. True-color Image Dithered Image

What is Image Morphing?

uIt comes from the word Metamorphosis uMetamorphosis: Change shape, size, form or appearance Image Morphing

uTransition from one object to another What is Image Morphing ? uMorphing can be defined as: uProcess of transforming one image into another.  An animation technique that allows you to blend two still images, creating a sequence of in – between pictures that when played in Quick Time, metamorphoses the first image into the second.

uA process of transforming two images where it seems like the first melts, dissolves and re-arranges itself to become the second one What is Image Morphing ?contd..

How is Morphing done?

uFirst image is gradually distorted and is faded out General View uThe second image starts out totally distorted toward the first and is faded in. uIt is broadly two-step process:

Classification of Morphing uMorphing classified into three types uImage-based Method uVolume-based approaches uBoundary representations (B-rep) -based approaches

uWarping uWarping two images to make them having the same shape Image-based Morphing uCross dissolving uCross dissolving the resulting images uTwo steps are:

Image-based Morphing WARPING ?

Image-Based Morphing - Warping uWarping an image means apply a given deformation to it uTwo ways to warp an image: uA warp is a 2-D geometric transformation and generates a distorted image when it is applied to an image uForward Mapping uReverse Mapping

Forward Mapping uEach pixel in the source image is mapped to an appropriate pixel in the destination image. uSome pixels in the destination image may not be mapped Source Image Destination Image

Reverse Mapping uThis method goes through each pixel in the destination image and samples an appropriate source image pixel uAll destination image pixels are mapped to some source image pixel. uThis mapping used in the Beier/Neely line morphing method.

Cross Dissolving  A cross-dissolve is a sequence of images which implements a gradual fade from one to the other.  Very primitive  No smooth transition

Image-based Morphing - Example

Do Morphing Source ImageDestination Image

Image-based Morphing - Example Baby to Grandpa Morphing Groom to Bride Compositing Warping

Image-Based Morphing - Other option !  Better option than Cross - Dissolving: uField/Line Morphing uMesh Mapping uMultilevel Free-form Deformation (MFFD)

Field/Line Morphing uWhat pixel coordinate in the source image do we sample for each pixel in destination image ? uCorrespondence achieved using feature line(s) in source and destination images Source ImageDestination Image

Field/Line Morphing uTwo step process u Step I : Interpolating the lines: Interpolate the coordinates of the end points of every pair of lines. uStep II : Warping the Images: Each of the source images has to be deformed towards the needed frame. The deformation works pixel by pixel is based on the reverse mapping. This algorithm is called Beier-Neely Algorithm.

BEIER-NEELY ALGORITHM uDivide the two image to be morphed into lines

uCreate Intermediate Morph for both images BEIER-NEELY ALGORITHM (contd.) uIntermediate Morph ? uUse corresponding lines in both the images to redefine a new position for each pixel according to a parameter t uIf t = 0 for First image and t = 1 for Second Image then Intermediate Morph: 0<t<1

BEIER-NEELY ALGORITHM (contd.) uCompute line endpoints in the intermediate morph uA = endpoint of a line in First image uB = endpoint of a line in Second image uAB = endpoint of the line in Intermediate image = (1-t)*A+t*B uUse Field Morphing to warp First Image according to intermediate line endpoints uUse Field Morphing to warp Second Image according to intermediate line endpoints uCross-Dissolve the warped images using t to define weighted pixel average

BEIER-NEELY ALGORITHM (contd.) uCross Dissolve the intermediate warped images Warped First Image Warped Second Image

BEIER-NEELY ALGORITHM - PIXEL POSITION 1)Compute position of pixel X in destination image relative to the line drawn in destination image. (x,y)  (u,v) X P Q P’ Q’ u v Destination Image Source Image

uCompute coordinates of pixel in source image whose position relative to the line drawn in source image is (u,v). (u,v)  (x’,y’) X P Q P’ Q’ u v u v Destination Image Source Image BEIER-NEELY ALGORITHM - PIXEL POSITION

uComputation of pixel X with respect to Line X (x,y) P (px,py) Q (qx,qy) u v Destination Image (x,y) (u,v) (x-px)(qx-px)+(y-py)(qy-py) (X-P).(Q-P) ||(Q-P)|| 2 (X-P).Perpendicular(Q-P) ||(Q-P)|| (qx-px)+(qy-py) (qy-py, -qx+px) BEIER-NEELY ALGORITHM - PIXEL POSITION

BEIER-NEELY ALGORITHM-WEIGHTED AVG. uComputation of weighted pixel average X (x,y) P (px,py) Q (qx,qy) u v Weight = length p a + dist b length = (qx-px) 2 + (qy-py) 2 dist = abs(v) if o<u<1 or dist = distance of (x,y) from P if u < 0 or dist = distance of (x,y) from Q if u > 1 dist = abs(v) if o<u<1 or dist = distance of (x,y) from P if u < 0 or dist = distance of (x,y) from Q if u > 1 (a,b) controls influence of line for points near it (a,b) controls influence of line for points near it

BEIER-NEELY ALGORITHM For each pixel X=(x,y) in the destination image DSUM=(0,0), weightsum=0 for each line(Pi, Qi) calculate(ui,vi) based on Pi, Qi calculate (xi’, yi’) based on u,v and Pi, Qi calculate displacement Di = Xi’ – X for this line compute weight for line(Pi,Qi) DSUM+=Di*weight weightsum+=weight (x’y’) = (x,y)+DSUM/weightsum color at destination pixel(x,y) = color at source pixel(x’y’)

Mesh Morphing uMesh is a rough presentation of an object Meshed Image uSource and Destination images are meshed uMeshes for both images are interpolated uHow it is done ? uIntermediate images are cross-dissolved

Mesh Morphing-Algorithm for each frame f do –Linearly interpolate mesh M, between M s and M t –warp Image s to I 1, using meshes M s and M –warp Image t to I 2, using meshes M t and M –Linearly interpolate image I 1 and I 2 end

Mesh Morphing

Mesh Morphing - Pros and Cons u Hard to fit the mesh in the image u All control points affects the warping equally. u Not enough control on certain points when needed. uPros uCons A Mesh A Rendered Image

Multilevel Free Form Deformation (MFFD) uMorphing two sequences of live action, rather than just two still images uMark all features in key frames uInterpolate the features between key frames uDo image metamorphosis on set of image pairs

Multilevel Free Form Deformation (MFFD)

Volume Based Approaches uTechnique: uThe objects are expressed as level sets of distance functions uTwo steps: uWarp: deform the 3D space in order to make the two objects to be morphed coincide as much as possible uInterpolation: linear interpolate distance fields deformed by the warp uInteraction: uThe user interface allows to select feature (or anchor) points in each voxelized object space and map the anchor points of the source object to the anchor points of the target object

Volume Based Approaches - Example

Volume Based Approaches uD. Cohen-Or, D. Levin, A. Solomovoci. Three-dimensional distance field metamorphosis. ACM Trans. Graphics 17: , 1998 uhttp://

B-Rep Based Approaches uPolyhedral Morphing using Feature based surface decomposition uThe users only need to specify a few corresponding pairs of features on the two polyhedra. They can then specify the trajectories along which these features travel during the morph using Bezier curves, as shown in the next page. uThe algorithm not only provides the user with high- level control in terms of specifying the features and trajectories, it also allows for local refinement

B-Rep Based Approaches uDestination Image u Source Image

B-Rep Based Approaches

uA. Gregory, A. State, M. C. Lin, D. Manocha, and M. A. Livingston. Interactive surface decomposition for polyhedral morphing. The Visual Computer (1999) 15: uhttp://

B-Rep Based Approaches - Examples uJack and Jill uCoffecup to Donut

Project Image Morphing