College of Computer and Information Science, Northeastern UniversityMarch 8, 20161 CS U540 Computer Graphics Prof. Harriet Fell Spring 2007 Lecture 34.

Slides:



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

College of Computer and Information Science, Northeastern UniversityApril 12, CS G140 Graduate Computer Graphics Prof. Harriet Fell Spring 2007 Lecture.
College of Computer and Information Science, Northeastern UniversityApril 17, CS U540 Computer Graphics Prof. Harriet Fell Spring 2009 Lecture 9.
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.
Morphing CSE 590 Computational Photography Tamara Berg.
Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 5 Ravi Ramamoorthi
Morphing. What is Morphing Morphing is an effect that can be used to manipulate still images or to create interesting animated transformations. Morphing.
College of Computer and Information Science, Northeastern UniversityMay 20, CS G140 Graduate Computer Graphics Prof. Harriet Fell Spring 2007 Lecture.
2-D IMAGE MORPHING.
2D preobrazba (morphing). 2D preobrazba dekle-tiger.
Feature-Based Image Metamorphosis Thaddeus Beier Shawn Neely SIGGRAPH 1992.
CS 102 Computers In Context (Multimedia)‏ 04 / 20 / 2009 Instructor: Michael Eckmann.
1Ellen L. Walker Recognizing Objects in Computer Images Ellen L. Walker Mathematical Sciences Dept Hiram College Hiram, OH 44234
1 Computer Science 631 Lecture 2: Morphing Ramin Zabih Computer Science Department CORNELL UNIVERSITY.
CS485/685 Computer Vision Prof. George Bebis
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 6: Image Compositing, Morphing Ravi Ramamoorthi
Image Morphing : Rendering and Image Processing Alexei Efros.
Image Morphing Tong-Yee Lee. Image Morphing Animate transitions between two images Specify Correspondence Warping Blending.
1cs426-winter-2008 Notes  Collision notes part 1 (primitive operations) should be up on the weekend.
1 Computer Science 631 Lecture 3: Morphing, Sampling Ramin Zabih Computer Science Department CORNELL UNIVERSITY.
Image Morphing : Computational Photography Alexei Efros, CMU, Fall 2005 © Alexey Tikhonov.
©College of Computer and Information Science, Northeastern UniversityJune 26, CS U540 Computer Graphics Prof. Harriet Fell Spring 2009 Lecture 11.
Image Morphing, Triangulation CSE399b, Spring 07 Computer Vision.
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 6: Image Compositing, Morphing (brief discussion of reconstruction) Ravi Ramamoorthi
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
02/14/02(c) University of Wisconsin 2002, CS 559 Last Time Filtering Image size reduction –Take the pixel you need in the output –Map it to the input –Place.
Image Morphing CSC320: Introduction to Visual Computing
CS 376b Introduction to Computer Vision 02 / 26 / 2008 Instructor: Michael Eckmann.
MORPHING Presentation By: SWARUP DEEPIKA JAGMOHAN Date: 22 OCT 2002 Course: COMPUTER GRAPHICS.
CSCE 441: Computer Graphics Image Warping/Morphing Jinxiang Chai.
College of Computer and Information Science, Northeastern UniversityOctober 5, CS G140 Graduate Computer Graphics Prof. Harriet Fell Spring 2006.
CS 551/651 Advanced Computer Graphics Warping and Morphing Spring 2002.
Image Warping / Morphing
Geometric Operations and Morphing.
Portraiture Morphing Presented by Fung, Chau-ha Jenice.
Image Warping and Morphing cs195g: Computational Photography James Hays, Brown, Spring 2010 © Alexey Tikhonov.
Advanced Multimedia Warping & Morphing Tamara Berg.
CS559: Computer Graphics Lecture 8: Warping, Morphing, 3D Transformation Li Zhang Spring 2010 Most slides borrowed from Yungyu ChuangYungyu Chuang.
CS 376 Introduction to Computer Graphics 04 / 25 / 2007 Instructor: Michael Eckmann.
1 Computer Science 631 Multimedia Systems Prof. Ramin Zabih Computer Science Department CORNELL UNIVERSITY.
Image Morphing Computational Photography Derek Hoiem, University of Illinois 9/29/15 Many slides from Alyosha Efros.
Image warping Li Zhang CS559
Krivljenje slike - warping. Princip 2D krivljenja Demo.
Multimedia Programming 10: Image Morphing
CS559: Computer Graphics Lecture 9: 3D Transformation and Projection Li Zhang Spring 2010 Most slides borrowed from Yungyu ChuangYungyu Chuang.
College of Computer and Information Science, Northeastern UniversityFebruary 27, CS U540 Computer Graphics Prof. Harriet Fell Spring 2009 Lectures.
CS559: Computer Graphics Lecture 7: Image Warping and Panorama Li Zhang Spring 2008 Most slides borrowed from Yungyu ChuangYungyu Chuang.
1 ST 6 WEEKS Place Value, Addition, Subtraction numbers that are close in value to the actual numbers, and which make it easy to do mental math SW3.
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
Advanced Computer Graphics
Image warping/morphing
Computational Photography Derek Hoiem, University of Illinois
Advanced Computer Animation Techniques
Computational Photography Derek Hoiem, University of Illinois
Image warping/morphing
CS5310 Graduate Computer Graphics
Feature-Based Warping
Morphing WU PO-HUNG.
Feature-Based Warping
Computer Graphics: Image Warping/Morphing
Image Morphing using mesh warp and feature based warp
Presentation transcript:

College of Computer and Information Science, Northeastern UniversityMarch 8, CS U540 Computer Graphics Prof. Harriet Fell Spring 2007 Lecture 34 – April 4, 2007

College of Computer and Information Science, Northeastern UniversityMarch 8, Today’s Topics Morphing Two Towers > Disk 4 > Visual Effects > Weka Digital

College of Computer and Information Science, Northeastern UniversityMarch 8, Morphing History Morphing is turning one image into another through a seamless transition. Early films used cross-fading picture of one actor or object to another. In 1985, "Cry" by Fodley and Crème, parts of an image fade gradually to make a smother transition."Cry" by Fodley and Crème Early-1990s computer techniques distorted one image as it faded into another.  Mark corresponding points and vectors on the "before" and "after" images used in the morph.  E.g. key points on the faces, such as the countour of the nose or location of an eye  Michael Jackson’s “Black or White” Michael Jackson’s “Black or White” »

College of Computer and Information Science, Northeastern UniversityMarch 8, Morphing History 1992 Gryphon Software's “Morph” became available for Apple Macintosh. For high-end use, “Elastic Reality” (based on Morph Plus) became the de facto system of choice for films and earned two Academy Awards in 1996 for Scientific and Technical Achievement. Today many programs can automatically morph images that correspond closely enough with relatively little instruction from the user. Now morphing is used to do cross-fading.

College of Computer and Information Science, Northeastern UniversityMarch 8, Harriet George Harriet…

College of Computer and Information Science, Northeastern UniversityMarch 8, Feature Based Image Metamorphosis Feature Based Image Metamorphosis Thaddeus Beier and Shawn Neely 1992 The morph process consists  warping two images so that they have the same "shape"  cross dissolving the resulting images cross-dissolving is simple warping an image is hard

College of Computer and Information Science, Northeastern UniversityMarch 8, Harriet & Mandrill Harriet 276x293Mandrill 256x256

College of Computer and Information Science, Northeastern UniversityMarch 8, Warping an Image There are two ways to warp an image:  forward mapping - scan through source image pixel by pixel, and copy them to the appropriate place in the destination image. some pixels in the destination might not get painted, and would have to be interpolated.  reverse mapping - go through the destination image pixel by pixel, and sample the correct pixel(s) from the source image. every pixel in the destination image gets set to something appropriate.

College of Computer and Information Science, Northeastern UniversityMarch 8, Forward Mapping Source Image HSHS WSWS Destination Image HDHD WDWD (x, y) (0, 0)

College of Computer and Information Science, Northeastern UniversityMarch 8, Forward Mapping Harriet  Mandrill

College of Computer and Information Science, Northeastern UniversityMarch 8, Forward Mapping Mandrill  Harriet

College of Computer and Information Science, Northeastern UniversityMarch 8, Inverse Mapping Source Image HSHS WSWS Destination Image HDHD WDWD (x, y) (0, 0)

College of Computer and Information Science, Northeastern UniversityMarch 8, Inverse Mapping Mandrill  Harriet

College of Computer and Information Science, Northeastern UniversityMarch 8, Inverse Mapping Harriet  Mandrill

College of Computer and Information Science, Northeastern UniversityMarch 8, (harrietINV + mandrill)/2

College of Computer and Information Science, Northeastern UniversityMarch 8, Matching Points

College of Computer and Information Science, Northeastern UniversityMarch 8, Matching Ponts Rectangular Transforms

College of Computer and Information Science, Northeastern UniversityMarch 8, Halfway Blend Image1 Image2 (1-t)Image1 + (t)Image2 T =.5

College of Computer and Information Science, Northeastern UniversityMarch 8, Caricatures Extreme Blends

College of Computer and Information Science, Northeastern UniversityMarch 8, Harriet & Mandrill Matching Eyes Harriet 276x293Mandrill 256x256 Match the endpoints of a line in the source with the endpoints of a line in the destination. SP SQ DPDQ

College of Computer and Information Science, Northeastern UniversityMarch 8, Line Pair Map The line pair map takes the source image to an image the same size as the destinations and take the line segment in the source to the line segment in the destination. DP DQ u v X=(x,y) SP SQ u v X=(x,y )

College of Computer and Information Science, Northeastern UniversityMarch 8, Finding u and v u is the proportion of the distance from DP to DQ. v is the distance to travel in the perpendicular direction. DP DQ u v X=(x,y)

College of Computer and Information Science, Northeastern UniversityMarch 8, linePairMap.m header % linePairMap.m % Scale image Source to one size DW, DH with line pair mapping function Dest = forwardMap(Source, DW, DH, SP, SQ, DP, DQ); % Source is the source image % DW is the destination width % DH is the destination height % SP, SQ are endpoints of a line segment in the Source [y, x] % DP, DQ are endpoints of a line segment in the Dest [y, x]

College of Computer and Information Science, Northeastern UniversityMarch 8, linePairMap.m body Dest = zeros(DH, DW,3); % rows x columns x RGB SW = length(Source(1,:,1)); % source width SH = length(Source(:,1,1)); % source height for y= 1:DH for x = 1:DW u = ([x,y]-DP)*(DQ-DP)'/((DQ-DP)*(DQ-DP)'); v = ([x,y]-DP)*perp(DQ-DP)'/norm(DQ-DP); SourcePoint = SP+u*(SQ-SP) + v*perp(SQ-SP)/norm(SQ-SP); SourcePoint = max([1,1],min([SW,SH], SourcePoint)); Dest(y,x,:)=Source(round(SourcePoint(2)),round(SourcePoint(1)),:); end;

College of Computer and Information Science, Northeastern UniversityMarch 8, linePairMap.m extras % display the image figure, image(Dest/255,'CDataMapping','scaled'); axis equal; title('line pair map'); xlim([1,DW]); ylim([1,DH]); function Vperp = perp(V) Vperp = [V(2), - V(1)];

College of Computer and Information Science, Northeastern UniversityMarch 8, Line Pair Map

College of Computer and Information Science, Northeastern UniversityMarch 8, Line Pair Blend

College of Computer and Information Science, Northeastern UniversityMarch 8, Line Pair Map 2

College of Computer and Information Science, Northeastern UniversityMarch 8, Line Pair Blend 2

College of Computer and Information Science, Northeastern UniversityMarch 8, Weighted Blends

College of Computer and Information Science, Northeastern UniversityMarch 8, Multiple Line Pairs Find Xi' for the ith pair of lines. Di = Xi' – X Use a weighted average of the Di. Weight is determined by the distance from X to the line. length = length of the line dist is the distance from the pixel to the line a, b, and p are used to change the relative effect of the lines. Add average displacement to X to determine X‘.

College of Computer and Information Science, Northeastern UniversityMarch 8, Let’s Morph FantaMorph