Image Blending NASA : Computational Photography Alexei Efros, CMU, Fall 2008

Similar documents
Admin stuff. 4 Image Pyramids. Spatial Domain. Projects. Fourier domain 2/26/2008. Fourier as a change of basis

Linear Filtering Part II

Max Flow. Lecture 4. Optimization on graphs. C25 Optimization Hilary 2013 A. Zisserman. Max-flow & min-cut. The augmented path algorithm

A Multiresolution Spline With Application to Image Mosaics

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

Digital image processing

A Learning Based Method for Super-Resolution of Low Resolution Images

jorge s. marques image processing

Effective Gradient Domain Object Editing on Mobile Devices

Build Panoramas on Android Phones

Simultaneous Gamma Correction and Registration in the Frequency Domain

Mean-Shift Tracking with Random Sampling

Feature Tracking and Optical Flow

Final Year Project Progress Report. Frequency-Domain Adaptive Filtering. Myles Friel. Supervisor: Dr.Edward Jones

Assessment. Presenter: Yupu Zhang, Guoliang Jin, Tuo Wang Computer Vision 2008 Fall

MASKS & CHANNELS WORKING WITH MASKS AND CHANNELS

Calculation of Minimum Distances. Minimum Distance to Means. Σi i = 1

Image Gradients. Given a discrete image Á Òµ, consider the smoothed continuous image ܵ defined by

Blind Deconvolution of Barcodes via Dictionary Analysis and Wiener Filter of Barcode Subsections

Part-Based Recognition

Face detection is a process of localizing and extracting the face region from the

Graph Based Processing of Big Images

Enhanced LIC Pencil Filter

Dual Methods for Total Variation-Based Image Restoration

Digital Image Processing

Klaus Goelker. GIMP 2.8 for Photographers. Image Editing with Open Source Software. rocky

ACE: After Effects CC

Computational Foundations of Cognitive Science

What Makes a Great Picture?

EECS 556 Image Processing W 09. Interpolation. Interpolation techniques B splines

AN INTRODUCTION TO NUMERICAL METHODS AND ANALYSIS

Aliasing, Image Sampling and Reconstruction

How High a Degree is High Enough for High Order Finite Elements?

LABEL PROPAGATION ON GRAPHS. SEMI-SUPERVISED LEARNING. ----Changsheng Liu

SUPER RESOLUTION FROM MULTIPLE LOW RESOLUTION IMAGES

REAL TIME TRAFFIC LIGHT CONTROL USING IMAGE PROCESSING

3. Interpolation. Closing the Gaps of Discretization... Beyond Polynomials

TerraColor White Paper

Motion-Aware Gradient Domain Video Composition

DIGITAL IMAGE PROCESSING AND ANALYSIS

COMPARISON OF OBJECT BASED AND PIXEL BASED CLASSIFICATION OF HIGH RESOLUTION SATELLITE IMAGES USING ARTIFICIAL NEURAL NETWORKS

Numerical Methods For Image Restoration

A Prototype For Eye-Gaze Corrected

Lectures 6&7: Image Enhancement

BCC Multi Stripe Wipe

This document is downloaded from DR-NTU, Nanyang Technological University Library, Singapore.

An Iterative Image Registration Technique with an Application to Stereo Vision

High Dynamic Range Video Using Split Aperture Camera

Iterative Solvers for Linear Systems

Canny Edge Detection

7.1 Tagline Usage. Tagline Usage

Noise Reduction in Video Images Using Coring on QMF Pyramids by. Arthur J. Kalb

ECE 468 / CS 519 Digital Image Processing. Introduction

Clustering and mapper

The Role of Size Normalization on the Recognition Rate of Handwritten Numerals

Test for I-DEAS FEATURES APPLICATIONS A TRANSIENT POST-PROCESSING SOFTWARE FOR FIXED SAMPLE ORDER TRACKING

Graphic Design. Background: The part of an artwork that appears to be farthest from the viewer, or in the distance of the scene.

Potential of face area data for predicting sharpness of natural images

Multi-Zone Adjustment

Convolution. 1D Formula: 2D Formula: Example on the web:

Segmentation and Automatic Descreening of Scanned Documents

Measuring Line Edge Roughness: Fluctuations in Uncertainty

Introduction to Medical Imaging. Lecture 11: Cone-Beam CT Theory. Introduction. Available cone-beam reconstruction methods: Our discussion:

Binary Image Reconstruction

Theory and Methods of Lightfield Photography SIGGRAPH 2009

Performance Verification of Super-Resolution Image Reconstruction

Fast Matting Using Large Kernel Matting Laplacian Matrices

Largest Fixed-Aspect, Axis-Aligned Rectangle

High Quality Image Magnification using Cross-Scale Self-Similarity

Research on medical image fusion based on improved redundant complex wavelet transform

Integration. Topic: Trapezoidal Rule. Major: General Engineering. Author: Autar Kaw, Charlie Barker.


JPEG Image Compression by Using DCT

TRISH & CHRIS MEYER AMSTERDAM BOSTON HEIDELBERG LONDON NEW YORK OXFORD PARIS SAN DIEGO SAN FRANCISCO SINGAPORE SYDNEY TOKYO

Microeconomic Theory: Basic Math Concepts

WINDAQ Data Acquisition and Playback Software

TRIGONOMETRY FOR ANIMATION

ANALYZER BASICS WHAT IS AN FFT SPECTRUM ANALYZER? 2-1

Representing Geography

Advanced Image Management using the Mosaic Dataset

Planetary Imaging Workshop Larry Owens

Detecting Digital Forgeries Using Bispectral Analysis

Sampling Theorem Notes. Recall: That a time sampled signal is like taking a snap shot or picture of signal periodically.

1 Completeness of a Set of Eigenfunctions. Lecturer: Naoki Saito Scribe: Alexander Sheynis/Allen Xue. May 3, The Neumann Boundary Condition

Sachin Patel HOD I.T Department PCST, Indore, India. Parth Bhatt I.T Department, PCST, Indore, India. Ankit Shah CSE Department, KITE, Jaipur, India

Memory Allocation Technique for Segregated Free List Based on Genetic Algorithm

Time Domain and Frequency Domain Techniques For Multi Shaker Time Waveform Replication

Environmental Remote Sensing GEOG 2021

Introduction to Imagery and Raster Data in ArcGIS

Digital Image Requirements for New Online US Visa Application

Creating the Ultimate Image: Introduction

ACE: After Effects CS6

Scanners and How to Use Them

Template-based Eye and Mouth Detection for 3D Video Conferencing

High Dynamic Range Imaging

Efficient Belief Propagation for Early Vision

Composite Video Separation Techniques

Open icon. The Select Layer To Add dialog opens. Click here to display

CHAPTER 6 TEXTURE ANIMATION

Transcription:

Image Blending NASA 15-463: Computational Photography Alexei Efros, CMU, Fall 2008

Image Compositing

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

Need blending

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

Setting alpha: simple averaging Alpha =.5 in overlap region

Setting alpha: center seam Distance Transform bwdist Alpha = logical(dtrans1>dtrans2)

Setting alpha: blurred seam Distance transform Alpha = blurred

Setting alpha: center weighting Distance transform Alpha = dtrans1 / (dtrans1+dtrans2) Ghost!

Affect of Window Size 1 left 1 0 right 0

Affect of Window Size 1 1 0 0

Good Window Size 1 0 Optimal Window: smooth but not ghosted

What is the Optimal Window? To avoid seams window = size of largest prominent feature To avoid ghosting window <= 2*size of smallest prominent feature Natural to cast this in the Fourier domain largest frequency <= 2*size of smallest frequency image frequency content should occupy one octave (power of two) FFT

What if the Frequency Spread is Wide FFT Idea (Burt and Adelson) Compute F left = FFT(I left ), F right = FFT(I right ) Decompose Fourier image into octaves (bands) F left = F 1 left + F 2 left + Feather corresponding octaves F i left with F i right Can compute inverse FFT and feather in spatial domain Sum feathered octave images in frequency domain Better implemented in spatial domain

Octaves in the Spatial Domain Lowpass Images Bandpass Images

Pyramid Blending 1 0 1 0 1 0 Left pyramid blend Right pyramid

Pyramid Blending

laplacian level 4 laplacian level 2 laplacian level 0 left pyramid right pyramid blended pyramid

Laplacian Pyramid: Blending General Approach: 1. Build Laplacian pyramids LA and LB from images A and B 2. Build a Gaussian pyramid GR from selected region R 3. Form a combined pyramid LS from LA and LB using nodes of GR as weights: LS(i,j) = GR(I,j,)*LA(I,j) + (1-GR(I,j))*LB(I,j) 4. Collapse the LS pyramid to get the final blended image

Blending Regions

Horror Photo david dmartin (Boston College)

Results from this class (fall 2005) Chris Cameron

Season Blending (St. Petersburg)

Season Blending (St. Petersburg)

Simplification: Two-band Blending Brown & Lowe, 2003 Only use two bands: high freq. and low freq. Blends low freq. smoothly Blend high freq. with no smoothing: use binary alpha

High frequency (λ < 2 pixels) 2-band Blending Low frequency (λ > 2 pixels)

Linear Blending

2-band Blending

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

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

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

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

Graph cuts (simple example à la Boykov&Jolly, ICCV 01) hard constraint n-links t a cut s hard constraint Minimum cost cut can be computed in polynomial time (max-flow/min-cut algorithms)

Kwatra et al, 2003 Actually, for this example, DP will work just as well

Lazy Snapping Interactive segmentation using graphcuts

Gradient Domain In Pyramid Blending, we decomposed our image into 2 nd derivatives (Laplacian) and a low-res image Let us now look at 1 st derivatives (gradients): No need for low-res image Idea: captures everything (up to a constant) Differentiate Blend Reintegrate

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

Gradient Domain Blending (2D) Trickier in 2D: Take partial derivatives dx and dy (the gradient field) Fidle around with them (smooth, blend, feather, etc) Reintegrate But now integral(dx) might not equal integral(dy) Find the most agreeable solution Equivalent to solving Poisson equation Can use FFT, deconvolution, multigrid solvers, etc.

Perez et al., 2003

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

Painting in Gradient Domain! (McCann) Code available! See Jim s talk this Friday: James McCann Real-Time Gradient-Domain Painting, 12:00 p.m., 5409 Wean Hall

Putting it all together Compositing images Have a clever blending function Feathering Center-weighted 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)