Image Blending and Compositing NASA

Size: px
Start display at page:

Download "Image Blending and Compositing NASA"

Transcription

1 Image Blending and Compositing NASA CS194: Image Manipulation & Computational Photography Alexei Efros, UC Berkeley, Fall 2016

2 Image Compositing

3 Compositing Procedure 1. Extract Sprites (e.g using Intelligent Scissors in Photoshop) 2. Blend them into the composite (in the right order) Composite by David Dewey

4 Alpha Blending / Feathering I blend = αi left + (1-α)I right =

5 Pyramid Blending

6 Gradient Domain vs. Frequency Domain In Pyramid Blending, we decomposed our images into several frequency bands, and transferred them separately But boundaries appear across multiple bands But what about representation based on derivatives (gradients) of the image?: Represents local change (across all frequences) No need for low-res image captures everything (up to a constant) Blending/Editing in Gradient Domain: Differentiate Copy / Blend / edit / whatever Reintegrate

7 Gradients vs. Pixels

8 Gilchrist Illusion (c.f. Exploratorium)

9

10 White?

11 White?

12 White?

13

14 Drawing in Gradient Domain James McCann & Nancy Pollard Real-Time Gradient-Domain Painting, SIGGRAPH 2009 (paper came out of this class!)

15 Gradient Domain blending (1D) Two signals bright dark Regular blending Blending derivatives

16 Gradient hole-filling (1D) target source

17 target source It is impossible to faithfully preserve the gradients

18 Gradient Domain Blending (2D) Trickier in 2D: Take partial derivatives dx and dy (the gradient field) Fiddle around with them (copy, blend, smooth, feather, etc) Reintegrate But now integral(dx) might not equal integral(dy) Find the most agreeable solution Equivalent to solving Poisson equation Can be done using least-squares (\ in Matlab)

19 Example Gradient Visualization Source: Evan Wallace

20 + Specify object region Source: Evan Wallace

21 Poisson Blending Algorithm A good blend should preserve gradients of source region without changing the background Treat pixels as variables to be solved Minimize squared difference between gradients of foreground region and gradients of target region Keep background pixels constant Perez et al. 2003

22 Examples Gradient domain processing 1 source image background image target image v 1 v v 2 v

23 Gradient-domain editing Creation of image = least squares problem in terms of: 1) pixel intensities; 2) differences of pixel intensities vˆ vˆ = arg min = v arg min v i ( T a v b ) ( ) 2 Av i b i 2 Least Squares Line Fit in 2 Dimensions Use Matlab least-squares solvers for numerically stable solution with sparse A

24 Perez et al., 2003

25 Slide by Mr. Hays target source mask no blending gradient domain blending

26 Slide by Mr. Hays What s the difference? - = gradient domain blending no blending

27 Perez et al, 2003 Limitations: editing Can t do contrast reversal (gray on black -> gray on white) Colored backgrounds bleed through Images need to be very well aligned

28 Gradient Domain as Image Representation See GradientShop paper as good example:

29 Can be used to exert high-level control over images

30 Can be used to exert high-level control over images gradients low level image-features

31 Can be used to exert high-level control over images gradients low level image-features pixel gradient +100

32 Can be used to exert high-level control over images gradients low level image-features gradients give rise to high level image-features pixel gradient +100

33 Can be used to exert high-level control over images gradients low level image-features gradients give rise to high level image-features pixel gradient

34 Can be used to exert high-level control over images gradients low level image-features gradients give rise to high level image-features pixel gradient image edge image edge

35 Can be used to exert high-level control over images gradients low level image-features gradients give rise to high level image-features manipulate local gradients to manipulate global image interpretation pixel gradient

36 Can be used to exert high-level control over images gradients low level image-features gradients give rise to high level image-features manipulate local gradients to manipulate global image interpretation pixel gradient

37 Can be used to exert high-level control over images gradients low level image-features gradients give rise to high level image-features manipulate local gradients to manipulate global image interpretation pixel gradient

38 Can be used to exert high-level control over images gradients low level image-features gradients give rise to high level image-features manipulate local gradients to manipulate global image interpretation pixel gradient

39 Can be used to exert high-level control over images gradients low level image-features gradients give rise to high level image-features manipulate local gradients to manipulate global image interpretation pixel gradient

40 Can be used to exert high-level control over images

41 Optimization framework Pravin Bhat et al

42 Optimization framework Input unfiltered image u

43 Optimization framework Input unfiltered image u Output filtered image f

44 Optimization framework Input unfiltered image u Output filtered image f Specify desired pixel-differences (g x, g y ) min (f x g x ) 2 + (f y g y ) 2 f Energy function

45 Optimization framework Input unfiltered image u Output filtered image f Specify desired pixel-differences (g x, g y ) Specify desired pixel-values d min (f x g x ) 2 + (f y g y ) 2 + (f d) 2 f Energy function

46 Optimization framework Input unfiltered image u Output filtered image f Specify desired pixel-differences (g x, g y ) Specify desired pixel-values d Specify constraints weights (w x, w y, w d ) min w x (f x g x ) 2 + w y (f y g y ) 2 + w d (f d) 2 f Energy function

47

48

49

50 Pseudo image relighting change scene illumination in post-production example input

51 Pseudo image relighting change scene illumination in post-production example manual relight

52 Pseudo image relighting change scene illumination in post-production example input

53 Pseudo image relighting change scene illumination in post-production example GradientShop relight

54 Pseudo image relighting change scene illumination in post-production example GradientShop relight

55 Pseudo image relighting change scene illumination in post-production example GradientShop relight

56 Pseudo image relighting change scene illumination in post-production example GradientShop relight

57 Pseudo image relighting u o f

58 Pseudo image relighting Energy function min w x (f x g x ) 2 + f w y (f y g y ) 2 + w d (f d) 2 u o f

59 Pseudo image relighting Energy function min w x (f x g x ) 2 + f w y (f y g y ) 2 + w d (f d) 2 Definition: d = u u o f

60 Pseudo image relighting Energy function min w x (f x g x ) 2 + f w y (f y g y ) 2 + w d (f d) 2 Definition: d = u g x (p) = u x (p) * (1 + a(p)) a(p) = max(0, - u(p).o(p)) u o f

61 Pseudo image relighting Energy function min w x (f x g x ) 2 + f w y (f y g y ) 2 + w d (f d) 2 Definition: d = u g x (p) = u x (p) * (1 + a(p)) a(p) = max(0, - u(p).o(p)) u o f

62 Sparse data interpolation Interpolate scattered data over images/video

63 Sparse data interpolation Interpolate scattered data over images/video Example app: Colorization* input output *Levin et al. SIGRAPH 2004

64 Sparse data interpolation u user data f

65 Sparse data interpolation Energy function min w x (f x g x ) 2 + f w y (f y g y ) 2 + w d (f d) 2 u user data f

66 Sparse data interpolation Energy function min w x (f x g x ) 2 + f w y (f y g y ) 2 + w d (f d) 2 Definition: d = user_data u user data f

67 Sparse data interpolation Energy function min w x (f x g x ) 2 + f w y (f y g y ) 2 + w d (f d) 2 Definition: d = user_data if user_data(p) defined w d (p) = 1 else w d (p) = 0 u user data f

68 Sparse data interpolation Energy function min w x (f x g x ) 2 + f w y (f y g y ) 2 + w d (f d) 2 Definition: d = user_data if user_data(p) defined w d (p) = 1 else w d (p) = 0 g x (p) = 0; g y (p) = 0 u user data f

69 Sparse data interpolation Energy function min w x (f x g x ) 2 + f w y (f y g y ) 2 + w d (f d) 2 Definition: d = user_data if user_data(p) defined w d (p) = 1 else w d (p) = 0 g x (p) = 0; g y (p) = 0 w x (p) = 1/(1 + c* u x (p) ) w y (p) = 1/(1 + c* u y (p) ) u f user data

70 Don t blend, CUT! Moving objects become ghosts So far we only tried to blend between two images. What about finding an optimal seam?

71 Davis, 1998 Segment the mosaic Single source image per segment Avoid artifacts along boundries Dijkstra s algorithm

72 Minimal error boundary overlapping blocks vertical boundary 2 _ = overlap error min. error boundary

73 Seam Carving

74 Seam Carving Basic Idea: remove unimportant pixels from the image Unimportant = pixels with less energy Intuition for gradient-based energy: Preserve strong contours Human vision more sensitive to edges so try remove content from smoother areas Simple, enough for producing some nice results See their paper for more measures they have used Michael Rubinstein MIT CSAIL mrub@mit.edu

75 Finding the Seam? Michael Rubinstein MIT CSAIL

76 The Optimal Seam E( I) = I + I x y s * = arg min S E( s) Michael Rubinstein MIT CSAIL mrub@mit.edu

77 Dynamic Programming Invariant property: M(i,j) = minimal cost of a seam going through (i,j) (satisfying the seam properties) Michael Rubinstein MIT CSAIL mrub@mit.edu

78 Dynamic Programming ( M( i 1, j 1), M( i 1, j), M( i 1, 1) ) M( i, j) = E( i, j) + min j Michael Rubinstein MIT CSAIL mrub@mit.edu

79 Dynamic Programming ( M( i 1, j 1), M( i 1, j), M( i 1, 1) ) M( i, j) = E( i, j) + min j Michael Rubinstein MIT CSAIL mrub@mit.edu

80 Dynamic Programming ( M( i 1, j 1), M( i 1, j), M( i 1, 1) ) M( i, j) = E( i, j) + min j Michael Rubinstein MIT CSAIL mrub@mit.edu

81 Searching for Minimum Backtrack (can store choices along the path, but do not have to) Michael Rubinstein MIT CSAIL mrub@mit.edu

82 Backtracking the Seam Michael Rubinstein MIT CSAIL mrub@mit.edu

83 Backtracking the Seam Michael Rubinstein MIT CSAIL mrub@mit.edu

84 Backtracking the Seam Michael Rubinstein MIT CSAIL mrub@mit.edu

85 Graphcuts What if we want similar cut-where-thingsagree idea, but for closed regions? Dynamic programming can t handle loops

86 Graph cuts a more general solution hard constraint n-links t a cut s hard constraint Minimum cost cut can be computed in polynomial time (max-flow/min-cut algorithms)

87 e.g. Lazy Snapping Interactive segmentation using graphcuts Also see the original Boykov&Jolly, ICCV 01, GrabCut, etc, etc,etc.

88 Putting it all together Compositing images Have a clever blending function Feathering blend different frequencies differently Gradient based blending Choose the right pixels from each image Dynamic programming optimal seams Graph-cuts Now, let s put it all together: Interactive Digital Photomontage, 2004 (video)

89

Recap from Monday. Frequency domain analytical tool computational shortcut compression tool

Recap from Monday. Frequency domain analytical tool computational shortcut compression tool Recap from Monday Frequency domain analytical tool computational shortcut compression tool Fourier Transform in 2d in Matlab, check out: imagesc(log(abs(fftshift(fft2(im))))); Image Blending (Szeliski

More information

Targil 10 : Why Mosaic? Why is this a challenge? Exposure differences Scene illumination Miss-registration Moving objects

Targil 10 : Why Mosaic? Why is this a challenge? Exposure differences Scene illumination Miss-registration Moving objects Why Mosaic? Are you getting the whole picture? Compact Camera FOV = 5 x 35 Targil : Panoramas - Stitching and Blending Some slides from Alexei Efros 2 Slide from Brown & Lowe Why Mosaic? Are you getting

More information

Image Compositing and Blending

Image Compositing and Blending Computational Photography and Capture: Image Compositing and Blending Gabriel Brostow & Tim Weyrich TA: Frederic Besse Vignetting 3 Figure from http://www.vanwalree.com/optics/vignetting.html Radial Distortion

More information

Image Composition. COS 526 Princeton University

Image Composition. COS 526 Princeton University Image Composition COS 526 Princeton University Modeled after lecture by Alexei Efros. Slides by Efros, Durand, Freeman, Hays, Fergus, Lazebnik, Agarwala, Shamir, and Perez. Image Composition Jurassic Park

More information

Blending and Compositing

Blending and Compositing 09/26/17 Blending and Compositing Computational Photography Derek Hoiem, University of Illinois hybridimage.m pyramids.m Project 1: issues Basic tips Display/save Laplacian images using mat2gray or imagesc

More information

Photometric Processing

Photometric Processing Photometric Processing 1 Histogram Probability distribution of the different grays in an image 2 Contrast Enhancement Limited gray levels are used Hence, low contrast Enhance contrast 3 Histogram Stretching

More information

CSCI 1290: Comp Photo

CSCI 1290: Comp Photo CSCI 1290: Comp Photo Fall 2018 @ Brown University James Tompkin Many slides thanks to James Hays old CS 129 course, along with all of its acknowledgements. Smartphone news Qualcomm Snapdragon 675 just

More information

Seam-Carving. Michael Rubinstein MIT. and Content-driven Retargeting of Images (and Video) Some slides borrowed from Ariel Shamir and Shai Avidan

Seam-Carving. Michael Rubinstein MIT. and Content-driven Retargeting of Images (and Video) Some slides borrowed from Ariel Shamir and Shai Avidan Seam-Carving and Content-driven Retargeting of Images (and Video) Michael Rubinstein MIT Some slides borrowed from Ariel Shamir and Shai Avidan Display Devices Content Retargeting PC iphone Page Layout

More information

Panoramic Image Stitching

Panoramic Image Stitching Mcgill University Panoramic Image Stitching by Kai Wang Pengbo Li A report submitted in fulfillment for the COMP 558 Final project in the Faculty of Computer Science April 2013 Mcgill University Abstract

More information

Recap. DoF Constraint Solver. translation. affine. homography. 3D rotation

Recap. DoF Constraint Solver. translation. affine. homography. 3D rotation Image Blending Recap DoF Constraint Solver translation affine homography 3D rotation Recap DoF Constraint Solver translation 2 affine homography 3D rotation Recap DoF Constraint Solver translation 2 affine

More information

CS448f: Image Processing For Photography and Vision. Graph Cuts

CS448f: Image Processing For Photography and Vision. Graph Cuts CS448f: Image Processing For Photography and Vision Graph Cuts Seam Carving Video Make images smaller by removing seams Seam = connected path of pixels from top to bottom or left edge to right edge Don

More information

Photoshop Quickselect & Interactive Digital Photomontage

Photoshop Quickselect & Interactive Digital Photomontage Photoshop Quickselect & Interactive Digital Photomontage By Joseph Tighe 1 Photoshop Quickselect Based on the graph cut technology discussed Boykov-Kolmogorov What might happen when we use a color model?

More information

Color Me Right Seamless Image Compositing

Color Me Right Seamless Image Compositing Color Me Right Seamless Image Compositing Dong Guo and Terence Sim School of Computing National University of Singapore Singapore, 117417 Abstract. This paper introduces an approach of creating an image

More information

Introduction to Computer Graphics. Image Processing (1) June 8, 2017 Kenshi Takayama

Introduction to Computer Graphics. Image Processing (1) June 8, 2017 Kenshi Takayama Introduction to Computer Graphics Image Processing (1) June 8, 2017 Kenshi Takayama Today s topics Edge-aware image processing Gradient-domain image processing 2 Image smoothing using Gaussian Filter Smoothness

More information

Mosaics. Today s Readings

Mosaics. Today s Readings Mosaics VR Seattle: http://www.vrseattle.com/ Full screen panoramas (cubic): http://www.panoramas.dk/ Mars: http://www.panoramas.dk/fullscreen3/f2_mars97.html Today s Readings Szeliski and Shum paper (sections

More information

Announcements. Mosaics. Image Mosaics. How to do it? Basic Procedure Take a sequence of images from the same position =

Announcements. Mosaics. Image Mosaics. How to do it? Basic Procedure Take a sequence of images from the same position = Announcements Project 2 out today panorama signup help session at end of class Today mosaic recap blending Mosaics Full screen panoramas (cubic): http://www.panoramas.dk/ Mars: http://www.panoramas.dk/fullscreen3/f2_mars97.html

More information

Automatic Generation of An Infinite Panorama

Automatic Generation of An Infinite Panorama Automatic Generation of An Infinite Panorama Lisa H. Chan Alexei A. Efros Carnegie Mellon University Original Image Scene Matches Output Image Figure 1: Given an input image, scene matching from a large

More information

Prof. Feng Liu. Spring /17/2017. With slides by F. Durand, Y.Y. Chuang, R. Raskar, and C.

Prof. Feng Liu. Spring /17/2017. With slides by F. Durand, Y.Y. Chuang, R. Raskar, and C. Prof. Feng Liu Spring 2017 http://www.cs.pdx.edu/~fliu/courses/cs510/ 05/17/2017 With slides by F. Durand, Y.Y. Chuang, R. Raskar, and C. Rother Last Time Image segmentation Normalized cut and segmentation

More information

Introduction to Image Processing and Computer Vision. -- Panoramas and Blending --

Introduction to Image Processing and Computer Vision. -- Panoramas and Blending -- Introduction to Image Processing and Computer Vision -- Panoramas and Blending -- Winter 2013/14 Ivo Ihrke Panoramas Mosaics and Panoramas - Outline - Perspective Panoramas - Hardware-Based - Software-Based

More information

Use of Shape Deformation to Seamlessly Stitch Historical Document Images

Use of Shape Deformation to Seamlessly Stitch Historical Document Images Use of Shape Deformation to Seamlessly Stitch Historical Document Images Wei Liu Wei Fan Li Chen Jun Sun Satoshi Naoi In China, efforts are being made to preserve historical documents in the form of digital

More information

Object Removal Using Exemplar-Based Inpainting

Object Removal Using Exemplar-Based Inpainting CS766 Prof. Dyer Object Removal Using Exemplar-Based Inpainting Ye Hong University of Wisconsin-Madison Fall, 2004 Abstract Two commonly used approaches to fill the gaps after objects are removed from

More information

Image gradients and edges April 11 th, 2017

Image gradients and edges April 11 th, 2017 4//27 Image gradients and edges April th, 27 Yong Jae Lee UC Davis PS due this Friday Announcements Questions? 2 Last time Image formation Linear filters and convolution useful for Image smoothing, removing

More information

Image gradients and edges April 10 th, 2018

Image gradients and edges April 10 th, 2018 Image gradients and edges April th, 28 Yong Jae Lee UC Davis PS due this Friday Announcements Questions? 2 Last time Image formation Linear filters and convolution useful for Image smoothing, removing

More information

Fast Image Stitching and Editing for Panorama Painting on Mobile Phones

Fast Image Stitching and Editing for Panorama Painting on Mobile Phones Fast Image Stitching and Editing for Panorama Painting on Mobile Phones Yingen Xiong and Kari Pulli Nokia Research Center 955 Page Mill Road, Palo Alto, CA 94304, USA {yingen.xiong, kari.pulli}@nokia.com

More information

Image Fusion For Context Enhancement and Video Surrealism

Image Fusion For Context Enhancement and Video Surrealism DIP PROJECT REPORT Image Fusion For Context Enhancement and Video Surrealism By Jay Guru Panda (200802017) Shashank Sharma(200801069) Project Idea: Paper Published (same topic) in SIGGRAPH '05 ACM SIGGRAPH

More information

Texture. CS 419 Slides by Ali Farhadi

Texture. CS 419 Slides by Ali Farhadi Texture CS 419 Slides by Ali Farhadi What is a Texture? Texture Spectrum Steven Li, James Hays, Chenyu Wu, Vivek Kwatra, and Yanxi Liu, CVPR 06 Texture scandals!! Two crucial algorithmic points Nearest

More information

Edge Detection CSC 767

Edge Detection CSC 767 Edge Detection CSC 767 Edge detection Goal: Identify sudden changes (discontinuities) in an image Most semantic and shape information from the image can be encoded in the edges More compact than pixels

More information

Image gradients and edges

Image gradients and edges Image gradients and edges Thurs Sept 3 Prof. Kristen Grauman UT-Austin Last time Various models for image noise Linear filters and convolution useful for Image smoothing, remov ing noise Box filter Gaussian

More information

Introduction to Computer Vision. Week 3, Fall 2010 Instructor: Prof. Ko Nishino

Introduction to Computer Vision. Week 3, Fall 2010 Instructor: Prof. Ko Nishino Introduction to Computer Vision Week 3, Fall 2010 Instructor: Prof. Ko Nishino Last Week! Image Sensing " Our eyes: rods and cones " CCD, CMOS, Rolling Shutter " Sensing brightness and sensing color! Projective

More information

Fast Image Stitching and Editing for Panorama Painting on Mobile Phones

Fast Image Stitching and Editing for Panorama Painting on Mobile Phones in IEEE Workshop on Mobile Vision, in Conjunction with CVPR 2010 (IWMV2010), San Francisco, 2010, IEEE Computer Society Fast Image Stitching and Editing for Panorama Painting on Mobile Phones Yingen Xiong

More information

Edge detection. Winter in Kraków photographed by Marcin Ryczek

Edge detection. Winter in Kraków photographed by Marcin Ryczek Edge detection Winter in Kraków photographed by Marcin Ryczek Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the image

More information

Video Operations in the Gradient Domain. Abstract. these operations on video in the gradient domain. Our approach consists of 3D graph cut computation

Video Operations in the Gradient Domain. Abstract. these operations on video in the gradient domain. Our approach consists of 3D graph cut computation Video Operations in the Gradient Domain 1 Abstract Fusion of image sequences is a fundamental operation in numerous video applications and usually consists of segmentation, matting and compositing. We

More information

Computational Photography and Video: Intrinsic Images. Prof. Marc Pollefeys Dr. Gabriel Brostow

Computational Photography and Video: Intrinsic Images. Prof. Marc Pollefeys Dr. Gabriel Brostow Computational Photography and Video: Intrinsic Images Prof. Marc Pollefeys Dr. Gabriel Brostow Last Week Schedule Computational Photography and Video Exercises 18 Feb Introduction to Computational Photography

More information

Computational Photography and Capture: (Re)Coloring. Gabriel Brostow & Tim Weyrich TA: Frederic Besse

Computational Photography and Capture: (Re)Coloring. Gabriel Brostow & Tim Weyrich TA: Frederic Besse Computational Photography and Capture: (Re)Coloring Gabriel Brostow & Tim Weyrich TA: Frederic Besse Week Date Topic Hours 1 12-Jan Introduction to Computational Photography and Capture 1 1 14-Jan Intro

More information

Image gradients and edges

Image gradients and edges Image gradients and edges April 7 th, 2015 Yong Jae Lee UC Davis Announcements PS0 due this Friday Questions? 2 Last time Image formation Linear filters and convolution useful for Image smoothing, removing

More information

Edge detection. Winter in Kraków photographed by Marcin Ryczek

Edge detection. Winter in Kraków photographed by Marcin Ryczek Edge detection Winter in Kraków photographed by Marcin Ryczek Edge detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, edges carry most of the semantic and shape information

More information

Image Warping and Morphing. Alexey Tikhonov

Image Warping and Morphing. Alexey Tikhonov Image Warping and Morphing Alexey Tikhonov CS194: Image Manipulation & Computational Photography Alexei Efros, UC Berkeley, Fall 2016 Women in Art video http://youtube.com/watch?v=nudion-_hxs Image Warping

More information

Image Stitching using Watersheds and Graph Cuts

Image Stitching using Watersheds and Graph Cuts Image Stitching using Watersheds and Graph Cuts Patrik Nyman Centre for Mathematical Sciences, Lund University, Sweden patnym@maths.lth.se 1. Introduction Image stitching is commonly used in many different

More information

Optimization. Intelligent Scissors (see also Snakes)

Optimization. Intelligent Scissors (see also Snakes) Optimization We can define a cost for possible solutions Number of solutions is large (eg., exponential) Efficient search is needed Global methods: cleverly find best solution without considering all.

More information

More Mosaic Madness. CS194: Image Manipulation & Computational Photography. Steve Seitz and Rick Szeliski. Jeffrey Martin (jeffrey-martin.

More Mosaic Madness. CS194: Image Manipulation & Computational Photography. Steve Seitz and Rick Szeliski. Jeffrey Martin (jeffrey-martin. More Mosaic Madness Jeffrey Martin (jeffrey-martin.com) CS194: Image Manipulation & Computational Photography with a lot of slides stolen from Alexei Efros, UC Berkeley, Fall 2018 Steve Seitz and Rick

More information

Assignment 4: Seamless Editing

Assignment 4: Seamless Editing Assignment 4: Seamless Editing - EE Affiliate I. INTRODUCTION This assignment discusses and eventually implements the techniques of seamless cloning as detailed in the research paper [1]. First, a summary

More information

Edges and Binary Images

Edges and Binary Images CS 699: Intro to Computer Vision Edges and Binary Images Prof. Adriana Kovashka University of Pittsburgh September 5, 205 Plan for today Edge detection Binary image analysis Homework Due on 9/22, :59pm

More information

Drag and Drop Pasting

Drag and Drop Pasting Drag and Drop Pasting Jiaya Jia, Jian Sun, Chi-Keung Tang, Heung-Yeung Shum The Chinese University of Hong Kong Microsoft Research Asia The Hong Kong University of Science and Technology Presented By Bhaskar

More information

Midterm Examination CS 534: Computational Photography

Midterm Examination CS 534: Computational Photography Midterm Examination CS 534: Computational Photography November 3, 2016 NAME: Problem Score Max Score 1 6 2 8 3 9 4 12 5 4 6 13 7 7 8 6 9 9 10 6 11 14 12 6 Total 100 1 of 8 1. [6] (a) [3] What camera setting(s)

More information

Lecture 6: Edge Detection

Lecture 6: Edge Detection #1 Lecture 6: Edge Detection Saad J Bedros sbedros@umn.edu Review From Last Lecture Options for Image Representation Introduced the concept of different representation or transformation Fourier Transform

More information

the gamedesigninitiative at cornell university Lecture 17 Color and Textures

the gamedesigninitiative at cornell university Lecture 17 Color and Textures Lecture 7 Color and Textures Take Away For Today Image color and composition What is RGB model for images? What does alpha represent? How does alpha composition work? Graphics primitives How do primitives

More information

Announcements. Mosaics. How to do it? Image Mosaics

Announcements. Mosaics. How to do it? Image Mosaics Announcements Mosaics Project artifact voting Project 2 out today (help session at end of class) http://www.destination36.com/start.htm http://www.vrseattle.com/html/vrview.php?cat_id=&vrs_id=vrs38 Today

More information

Edge and Texture. CS 554 Computer Vision Pinar Duygulu Bilkent University

Edge and Texture. CS 554 Computer Vision Pinar Duygulu Bilkent University Edge and Texture CS 554 Computer Vision Pinar Duygulu Bilkent University Filters for features Previously, thinking of filtering as a way to remove or reduce noise Now, consider how filters will allow us

More information

the gamedesigninitiative at cornell university Lecture 16 Color and Textures

the gamedesigninitiative at cornell university Lecture 16 Color and Textures Lecture 6 Color and Textures Take Away For Today Image color and composition What is RGB model for images? What does alpha represent? How does alpha composition work? Graphics primitives How do primitives

More information

Image Warping and Morphing. Alexey Tikhonov

Image Warping and Morphing. Alexey Tikhonov Image Warping and Morphing Alexey Tikhonov CS194: Image Manipulation & Computational Photography Alexei Efros, UC Berkeley, Fall 2017 Women in Art video http://youtube.com/watch?v=nudion-_hxs Image Warping

More information

Segmentation. Separate image into coherent regions

Segmentation. Separate image into coherent regions Segmentation II Segmentation Separate image into coherent regions Berkeley segmentation database: http://www.eecs.berkeley.edu/research/projects/cs/vision/grouping/segbench/ Slide by L. Lazebnik Interactive

More information

Today s lecture. Image Alignment and Stitching. Readings. Motion models

Today s lecture. Image Alignment and Stitching. Readings. Motion models Today s lecture Image Alignment and Stitching Computer Vision CSE576, Spring 2005 Richard Szeliski Image alignment and stitching motion models cylindrical and spherical warping point-based alignment global

More information

Digital Makeup Face Generation

Digital Makeup Face Generation Digital Makeup Face Generation Wut Yee Oo Mechanical Engineering Stanford University wutyee@stanford.edu Abstract Make up applications offer photoshop tools to get users inputs in generating a make up

More information

Gradient Domain Image Blending and Implementation on Mobile Devices

Gradient Domain Image Blending and Implementation on Mobile Devices in MobiCase 09: Proceedings of The First Annual International Conference on Mobile Computing, Applications, and Services. 2009, Springer Berlin / Heidelberg. Gradient Domain Image Blending and Implementation

More information

Today. Motivation. Motivation. Image gradient. Image gradient. Computational Photography

Today. Motivation. Motivation. Image gradient. Image gradient. Computational Photography Computational Photography Matthias Zwicker University of Bern Fall 009 Today Gradient domain image manipulation Introduction Gradient cut & paste Tone mapping Color-to-gray conversion Motivation Cut &

More information

Stitching and Blending

Stitching and Blending Stitching and Blending Kari Pulli VP Computational Imaging Light First project Build your own (basic) programs panorama HDR (really, exposure fusion) The key components register images so their features

More information

Fast Image Labeling for Creating High-Resolution Panoramic Images on Mobile Devices

Fast Image Labeling for Creating High-Resolution Panoramic Images on Mobile Devices Multimedia, IEEE International Symposium on, vol. 0, pp. 369 376, 2009. Fast Image Labeling for Creating High-Resolution Panoramic Images on Mobile Devices Yingen Xiong and Kari Pulli Nokia Research Center

More information

Review of Filtering. Filtering in frequency domain

Review of Filtering. Filtering in frequency domain Review of Filtering Filtering in frequency domain Can be faster than filtering in spatial domain (for large filters) Can help understand effect of filter Algorithm: 1. Convert image and filter to fft (fft2

More information

CS448f: Image Processing For Photography and Vision. Fast Filtering

CS448f: Image Processing For Photography and Vision. Fast Filtering CS448f: Image Processing For Photography and Vision Fast Filtering Problems in Computer Vision Computer Vision in One Slide 1) Extract some features from some images 2) Use these to formulate some (hopefully

More information

Matting, Transparency, and Illumination. Slides from Alexei Efros

Matting, Transparency, and Illumination. Slides from Alexei Efros New course focus Done with texture, patches, and shuffling image content. Focus on light, specifically light models derived from multiple photos of the same scene. Matting, Transparency, and Illumination

More information

EECS150 - Digital Design Lecture 14 FIFO 2 and SIFT. Recap and Outline

EECS150 - Digital Design Lecture 14 FIFO 2 and SIFT. Recap and Outline EECS150 - Digital Design Lecture 14 FIFO 2 and SIFT Oct. 15, 2013 Prof. Ronald Fearing Electrical Engineering and Computer Sciences University of California, Berkeley (slides courtesy of Prof. John Wawrzynek)

More information

Nonlinear Multiresolution Image Blending

Nonlinear Multiresolution Image Blending Nonlinear Multiresolution Image Blending Mark Grundland, Rahul Vohra, Gareth P. Williams and Neil A. Dodgson Computer Laboratory, University of Cambridge, United Kingdom October, 26 Abstract. We study

More information

Image warping and stitching

Image warping and stitching Image warping and stitching May 4 th, 2017 Yong Jae Lee UC Davis Last time Interactive segmentation Feature-based alignment 2D transformations Affine fit RANSAC 2 Alignment problem In alignment, we will

More information

IMAGE stitching is a common practice in the generation of

IMAGE stitching is a common practice in the generation of IEEE TRANSACTIONS ON IMAGE PROCESSING, VOL. 15, NO. 4, APRIL 2006 969 Seamless Image Stitching by Minimizing False Edges Assaf Zomet, Anat Levin, Shmuel Peleg, and Yair Weiss Abstract Various applications

More information

CS6670: Computer Vision

CS6670: Computer Vision CS6670: Computer Vision Noah Snavely Lecture 19: Graph Cuts source S sink T Readings Szeliski, Chapter 11.2 11.5 Stereo results with window search problems in areas of uniform texture Window-based matching

More information

Image Warping and Mosacing

Image Warping and Mosacing Image Warping and Mosacing 15-463: Rendering and Image Processing Alexei Efros with a lot of slides stolen from Steve Seitz and Rick Szeliski Today Mosacs Image Warping Homographies Programming Assignment

More information

EE795: Computer Vision and Intelligent Systems

EE795: Computer Vision and Intelligent Systems EE795: Computer Vision and Intelligent Systems Spring 2012 TTh 17:30-18:45 FDH 204 Lecture 14 130307 http://www.ee.unlv.edu/~b1morris/ecg795/ 2 Outline Review Stereo Dense Motion Estimation Translational

More information

Lecture #9: Image Resizing and Segmentation

Lecture #9: Image Resizing and Segmentation Lecture #9: Image Resizing and Segmentation Mason Swofford, Rachel Gardner, Yue Zhang, Shawn Fenerin Department of Computer Science Stanford University Stanford, CA 94305 {mswoff, rachel0, yzhang16, sfenerin}@cs.stanford.edu

More information

Admin. Data driven methods. Overview. Overview. Parametric model of image patches. Data driven (Non parametric) Approach 3/31/2008

Admin. Data driven methods. Overview. Overview. Parametric model of image patches. Data driven (Non parametric) Approach 3/31/2008 Admin Office hours straight after class today Data driven methods Assignment 3 out, due in 2 weeks Lecture 8 Projects.. Overview Overview Texture synthesis Quilting Image Analogies Super resolution Scene

More information

CS 2770: Computer Vision. Edges and Segments. Prof. Adriana Kovashka University of Pittsburgh February 21, 2017

CS 2770: Computer Vision. Edges and Segments. Prof. Adriana Kovashka University of Pittsburgh February 21, 2017 CS 2770: Computer Vision Edges and Segments Prof. Adriana Kovashka University of Pittsburgh February 21, 2017 Edges vs Segments Figure adapted from J. Hays Edges vs Segments Edges More low-level Don t

More information

Announcements. Image Segmentation. From images to objects. Extracting objects. Status reports next Thursday ~5min presentations in class

Announcements. Image Segmentation. From images to objects. Extracting objects. Status reports next Thursday ~5min presentations in class Image Segmentation Announcements Status reports next Thursday ~5min presentations in class Project voting From Sandlot Science Today s Readings Forsyth & Ponce, Chapter 1 (plus lots of optional references

More information

What is an edge? Paint. Depth discontinuity. Material change. Texture boundary

What is an edge? Paint. Depth discontinuity. Material change. Texture boundary EDGES AND TEXTURES The slides are from several sources through James Hays (Brown); Srinivasa Narasimhan (CMU); Silvio Savarese (U. of Michigan); Bill Freeman and Antonio Torralba (MIT), including their

More information

the gamedesigninitiative at cornell university Lecture 17 Color and Textures

the gamedesigninitiative at cornell university Lecture 17 Color and Textures Lecture 7 Color and Textures Take Away For Today Image color and composition What is RGB model for images? What does alpha represent? How does alpha composition work? Graphics primitives How do primitives

More information

CS4670: Computer Vision Noah Snavely

CS4670: Computer Vision Noah Snavely CS4670: Computer Vision Noah Snavely Lecture 2: Edge detection From Sandlot Science Announcements Project 1 released, due Friday, September 7 1 Edge detection Convert a 2D image into a set of curves Extracts

More information

Image warping and stitching

Image warping and stitching Image warping and stitching May 5 th, 2015 Yong Jae Lee UC Davis PS2 due next Friday Announcements 2 Last time Interactive segmentation Feature-based alignment 2D transformations Affine fit RANSAC 3 Alignment

More information

Opportunities of Scale

Opportunities of Scale Opportunities of Scale 11/07/17 Computational Photography Derek Hoiem, University of Illinois Most slides from Alyosha Efros Graphic from Antonio Torralba Today s class Opportunities of Scale: Data-driven

More information

Biomedical Image Analysis. Mathematical Morphology

Biomedical Image Analysis. Mathematical Morphology Biomedical Image Analysis Mathematical Morphology Contents: Foundation of Mathematical Morphology Structuring Elements Applications BMIA 15 V. Roth & P. Cattin 265 Foundations of Mathematical Morphology

More information

CS443: Digital Imaging and Multimedia Binary Image Analysis. Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University

CS443: Digital Imaging and Multimedia Binary Image Analysis. Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University CS443: Digital Imaging and Multimedia Binary Image Analysis Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University Outlines A Simple Machine Vision System Image segmentation by thresholding

More information

Linear Operations Using Masks

Linear Operations Using Masks Linear Operations Using Masks Masks are patterns used to define the weights used in averaging the neighbors of a pixel to compute some result at that pixel Expressing linear operations on neighborhoods

More information

Edges and Binary Image Analysis April 12 th, 2018

Edges and Binary Image Analysis April 12 th, 2018 4/2/208 Edges and Binary Image Analysis April 2 th, 208 Yong Jae Lee UC Davis Previously Filters allow local image neighborhood to influence our description and features Smoothing to reduce noise Derivatives

More information

CSE 252B: Computer Vision II

CSE 252B: Computer Vision II CSE 252B: Computer Vision II Lecturer: Serge Belongie Scribes: Jeremy Pollock and Neil Alldrin LECTURE 14 Robust Feature Matching 14.1. Introduction Last lecture we learned how to find interest points

More information

Advanced Computer Graphics

Advanced Computer Graphics G22.2274 001, Fall 2010 Advanced Computer Graphics Project details and tools 1 Projects Details of each project are on the website under Projects Please review all the projects and come see me if you would

More information

BSB663 Image Processing Pinar Duygulu. Slides are adapted from Selim Aksoy

BSB663 Image Processing Pinar Duygulu. Slides are adapted from Selim Aksoy BSB663 Image Processing Pinar Duygulu Slides are adapted from Selim Aksoy Image matching Image matching is a fundamental aspect of many problems in computer vision. Object or scene recognition Solving

More information

Does everyone have an override code?

Does everyone have an override code? Does everyone have an override code? Project 1 due Friday 9pm Review of Filtering Filtering in frequency domain Can be faster than filtering in spatial domain (for large filters) Can help understand effect

More information

CS 4495 Computer Vision Motion and Optic Flow

CS 4495 Computer Vision Motion and Optic Flow CS 4495 Computer Vision Aaron Bobick School of Interactive Computing Administrivia PS4 is out, due Sunday Oct 27 th. All relevant lectures posted Details about Problem Set: You may *not* use built in Harris

More information

Fast Poisson Blending using Multi-Splines

Fast Poisson Blending using Multi-Splines Fast Poisson Blending using Multi-Splines Richard Szeliski, Matt Uyttendaele, and Drew Steedly Microsoft Research April 2008 Technical Report MSR-TR-2008-58 We present a technique for fast Poisson blending

More information

Shift-Map Image Editing

Shift-Map Image Editing Shift-Map Image Editing Yael Pritch Eitam Kav-Venaki Shmuel Peleg School of Computer Science and Engineering The Hebrew University of Jerusalem 91904 Jerusalem, Israel Abstract Geometric rearrangement

More information

Image Processing. Bilkent University. CS554 Computer Vision Pinar Duygulu

Image Processing. Bilkent University. CS554 Computer Vision Pinar Duygulu Image Processing CS 554 Computer Vision Pinar Duygulu Bilkent University Today Image Formation Point and Blob Processing Binary Image Processing Readings: Gonzalez & Woods, Ch. 3 Slides are adapted from

More information

Segmentation and Grouping

Segmentation and Grouping CS 1699: Intro to Computer Vision Segmentation and Grouping Prof. Adriana Kovashka University of Pittsburgh September 24, 2015 Goals: Grouping in vision Gather features that belong together Obtain an intermediate

More information

Edge and corner detection

Edge and corner detection Edge and corner detection Prof. Stricker Doz. G. Bleser Computer Vision: Object and People Tracking Goals Where is the information in an image? How is an object characterized? How can I find measurements

More information

Soft Scissors : An Interactive Tool for Realtime High Quality Matting

Soft Scissors : An Interactive Tool for Realtime High Quality Matting Soft Scissors : An Interactive Tool for Realtime High Quality Matting Jue Wang University of Washington Maneesh Agrawala University of California, Berkeley Michael F. Cohen Microsoft Research Figure 1:

More information

CS4670: Computer Vision

CS4670: Computer Vision CS4670: Computer Vision Noah Snavely Lecture 34: Segmentation From Sandlot Science Announcements In-class exam this Friday, December 3 Review session in class on Wednesday Final projects: Slides due: Sunday,

More information

technique: seam carving Image and Video Processing Chapter 9

technique: seam carving Image and Video Processing Chapter 9 Chapter 9 Seam Carving for Images and Videos Distributed Algorithms for 2 Introduction Goals Enhance the visual content of images Adapted images should look natural Most relevant content should be clearly

More information

Tomorrow s Photoshop Effects

Tomorrow s Photoshop Effects Tomorrow s Photoshop Effects Johannes Borodajkewycz TU Wien Figure 1: Examples for two of the techniques presented in this paper: Interactive image completion with perspective correction is able to fill

More information

Fitting a transformation: Feature-based alignment April 30 th, Yong Jae Lee UC Davis

Fitting a transformation: Feature-based alignment April 30 th, Yong Jae Lee UC Davis Fitting a transformation: Feature-based alignment April 3 th, 25 Yong Jae Lee UC Davis Announcements PS2 out toda; due 5/5 Frida at :59 pm Color quantization with k-means Circle detection with the Hough

More information

This work is about a new method for generating diffusion curve style images. Although this topic is dealing with non-photorealistic rendering, as you

This work is about a new method for generating diffusion curve style images. Although this topic is dealing with non-photorealistic rendering, as you This work is about a new method for generating diffusion curve style images. Although this topic is dealing with non-photorealistic rendering, as you will see our underlying solution is based on two-dimensional

More information

Homographies and RANSAC

Homographies and RANSAC Homographies and RANSAC Computer vision 6.869 Bill Freeman and Antonio Torralba March 30, 2011 Homographies and RANSAC Homographies RANSAC Building panoramas Phototourism 2 Depth-based ambiguity of position

More information

CS4495 Fall 2014 Computer Vision Problem Set 5: Optic Flow

CS4495 Fall 2014 Computer Vision Problem Set 5: Optic Flow CS4495 Fall 2014 Computer Vision Problem Set 5: Optic Flow DUE: Wednesday November 12-11:55pm In class we discussed optic flow as the problem of computing a dense flow field where a flow field is a vector

More information

CS4670 / 5670: Computer Vision Noah Snavely

CS4670 / 5670: Computer Vision Noah Snavely { { 11/26/2013 CS4670 / 5670: Computer Vision Noah Snavely Graph-Based Image Segmentation Stereo as a minimization problem match cost Want each pixel to find a good match in the other image smoothness

More information

Motion Estimation and Optical Flow Tracking

Motion Estimation and Optical Flow Tracking Image Matching Image Retrieval Object Recognition Motion Estimation and Optical Flow Tracking Example: Mosiacing (Panorama) M. Brown and D. G. Lowe. Recognising Panoramas. ICCV 2003 Example 3D Reconstruction

More information