Computational Photography

Similar documents
Prof. Feng Liu. Spring /22/2017. With slides by S. Chenney, Y.Y. Chuang, F. Durand, and J. Sun.

Matting & Compositing

Matting & Compositing

CS6640 Computational Photography. 15. Matting and compositing Steve Marschner

To Do. Advanced Computer Graphics. Image Compositing. Digital Image Compositing. Outline. Blue Screen Matting

Image Matting Based On Weighted Color and Texture Sample Selection

Soft Segmentation of Foreground : Kernel Density Estimation and Geodesic Distances

Fast Image Matting with Good Quality

Matting and Compositing. Digital Visual Effects, Spring 2006 Yung-Yu Chuang 2006/5/10

MRF Matting on Complex Images

Image Representations, Colors, & Morphing. Stephen J. Guy Comp 575

COMPUTATIONAL PHOTOGRAPHY. Chapter 10

CS354 Computer Graphics Computational Photography. Qixing Huang April 23 th 2018

Today s lecture is about alpha compositing the process of using the transparency value, alpha, to combine two images together.

Fast and High-Quality Image Blending on Mobile Phones

Combining Sketch and Tone for Pencil Drawing Production. Cewu Lu, Li Xu, Jiaya Jia, The Chinese University of Hong Kong

Improved Global-sampling Matting Using Sequential Pair-selection Strategy

Recent Advances in Sampling-based Alpha Matting

background confusion map alpha mask. image

CS4405. Caption Examples. Video Formats With Alpha Channel I may have missed a couple, so let me know in the comments.

Texts and Resources: Assessments: Freefoto.com Group Photo Projects

A Learning-Based Approach to Reduce JPEG Artifacts in Image Matting

Computational Illumination Frédo Durand MIT - EECS

Digital and Computational Photography

Computational Photography

Computational Photography

Chapter 7- Lighting & Cameras

REMOVING NOISE. H16 Mantra User Guide

Restoration of Motion Blurred Document Images

Miscellaneous Topics Part 1

Flash Photography Enhancement via Intrinsic Relighting

Antialiasing & Compositing

Figure 9.10 This shows the File Scripts menu, where there is now a new script item called Delete All Empty layers.

Fixing the Gaussian Blur : the Bilateral Filter

Protocols. Graphical programming for Icy. a.k.a. programming, for the rest of us

Comp Computational Photography Spatially Varying White Balance. Megha Pandey. Sept. 16, 2008

Everything you ever wanted to know about Layer Styles with Adobe Photoshop CS3 - CS5

Problem Set 3. Assigned: March 9, 2006 Due: March 23, (Optional) Multiple-Exposure HDR Images

Neuron Bundle 12: Digital Film Tools

Deblurring. Basics, Problem definition and variants

BCC Make Alpha Key Filter

An Approach for Reconstructed Color Image Segmentation using Edge Detection and Threshold Methods

Photoshop Notes and Application Study Packet

How to Create Fake Shadows

Image Matting with KL-Divergence Based Sparse Sampling

Adobe Photoshop CS5 Layers and Masks

The factors that influence the visual quality by using image matting technology in films and TV series and how these factors work in Chinese TV series

Logo Contest Pic. A Foray into Photoshop. Contributed by: Eric Rasmussen a.k.a. Sylvanite

Central Photography [INSTAGRAM EFFECTS]

TV Aquarium. Create a new document. 8.5 x 11, 300 dpi. Save as TV Aquarium Your Name. Create TV shape. Use Pen

Video Registration: Key Challenges. Richard Szeliski Microsoft Research

Transparency and blending modes

Impact Factor (SJIF): International Journal of Advance Research in Engineering, Science & Technology

David Stichweh Art 151 Beginning Photography Summer, 2009 M. W. 5:30-8:00

CS 89.15/189.5, Fall 2015 ASPECTS OF DIGITAL PHOTOGRAPHY COMPUTATIONAL. Image Processing Basics. Wojciech Jarosz

Photoshop Tutorial. Millbrae Camera Club 2008 August 21

5 Masks and Channels

CS 465 Prelim 1. Tuesday 4 October hours. Problem 1: Image formats (18 pts)

Ian Barber Photography

Using Adobe Photoshop

Photoshop CS2. Step by Step Instructions Using Layers. Adobe. About Layers:

Chapter 7- Lighting & Cameras

EMITT Academy. 11 th Grade

Exploring Defocus Matting

22B / NONDESTRUCTIVE EDITING - QUICK MASKS 1

9/13/2017. Alpha Channels

People In Spaces A Workshop on using Photoshop to introduce Entourage Elements into existing work.

create a cast shadow How to create a shadow behind your masked subject so it integrates with a new, custom background.

Photoshop: Save for Web and Devices

THE TIOPS4 DOCUMENTATION FILES

Veil & Transparency Masking Tutorial

All Creative Suite Design documents are saved in the same way. Click the Save or Save As (if saving for the first time) command on the File menu to

I have an image of a flower that is entirely in focus. I would like to blur the background to make the flower stand out.

SUGAR fx. LightPack 3 User Manual

Creative Cut-Outs. 1Go to File>New>Blank File to create a new document and enter. Projects EXTRAS: GET MORE ONLINE!

Images and Display. Computer Graphics Fabio Pellacini and Steve Marschner

Reveal the mystery of the mask

Basic Digital Dark Room

Photography Merit Badge

Advanced Photography. Topic 3 - Photoshop Filters. Learning Outcomes

Students will be able to create movement through the use of line or implied line and repetition.

BCC 3 Way Color Grade. Parameter descriptions:

Automatic Selection of Brackets for HDR Image Creation

Image stitching. Image stitching. Video summarization. Applications of image stitching. Stitching = alignment + blending. geometrical registration

2. Color spaces Introduction The RGB color space

More image filtering , , Computational Photography Fall 2017, Lecture 4

Table of Contents. Page

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

Coded Exposure Deblurring: Optimized Codes for PSF Estimation and Invertibility

6.A44 Computational Photography

XXXX - ILLUSTRATING FROM SKETCHES IN PHOTOSHOP 1 N/08/08

2. Color spaces Introduction The RGB color space

Working with the BCC Gaussian Blur Filter

FriendBlend Jeff Han (CS231M), Kevin Chen (EE 368), David Zeng (EE 368)

Photoshop 01. Introduction to Computer Graphics UIC / AA/ AD / AD 205 / F05/ Sauter.../documents/photoshop_01.pdf

Automatic Content-aware Non-Photorealistic Rendering of Images

Computational Photography Introduction

2Click the Symbol XX

Bemidji Schools Course Map Visual Arts K-12 Scope and Sequence: Intro to Photoshop

ASPECT RATIO. Aspect ratio is the relationship of the width of a picture or sensor in relation to the height.

Transcription:

Computational Photography Si Lu Spring 2018 http://web.cecs.pdx.edu/~lusi/cs510/cs510_computati onal_photography.htm 05/15/2018 With slides by S. Chenney, Y.Y. Chuang, F. Durand, and J. Sun.

Last Time o Image segmentation 2

Today o Matting Input user specified trimap matte foreground colors a new composite Reprint from Wang and Cohen 2007 3

Problem of segmentation o Each pixel is assigned a binary label Foreground or Background o Cannot generate natural boundaries for semitransparent objects

Problem of segmentation Input Reprint from Sun et al. 2004 Photoshop segmentation result

Segmentation and Matting o Segmentation Binary labeling, 0 or 1 o Matting A continuous value between [0, 1] 6

Background: Compositing o Compositing combines components from two or more images to make a new image Special effects are easier to control when done in isolation Even many all live-action sequences are more safely shot in different layers Credit: S. Chenney 7

Example: Perfect Storm Credit: S. Chenney 8

Mattes o o o o A matte is an image that shows which parts of another image are foreground objects Term dates from film editing and cartoon production How would I use a matte to insert an object into a background? How are mattes usually generated for television? Credit: S. Chenney 9

Alpha o Basic idea: Encode opacity information in the image o Add an extra channel, the alpha channel, to each image For each pixel, store R, G, B and Alpha alpha = 1 implies full opacity at a pixel alpha = 0 implies completely clear pixels alpha in (0,1) implies semi-transparency o There are many interpretations of alpha Is there anything in the image at that point (web graphics) Transparency (real-time OpenGL) o Images are now in RGBA format, and typically 32 bits per pixel (8 bits for alpha) Credit: S. Chenney 10

Working with Mattes o Compositing: insert an object into a background Call the image of the object the source Put the background into the destination For all the source pixels, if the matte is white, copy the pixel, otherwise leave it unchanged o Matting: generate mattes: Use smart selection tools in Photoshop or similar o They outline the object and convert the outline to a matte Blue Screen: Photograph/film the object in front of a blue background, then consider all the blue pixels in the image to be the background Advanced matting techniques Credit: S. Chenney 11

Over Compositing F B foreground color alpha matte background plate C B Credit: Y.Y. Chuang composite F =0 C C αf (1 α) B

Oscar Award, 1996 Smith Duff Catmull Porter Credit: Y.Y. Chuang

Matting problem o Inverse problem: Assume an image is the over composite of a foreground and a background o Given an image color C, find F, B and so that C= F+(1-)B B? C? F? Credit: F. Durand

Matting ambiguity o C= F+(1-)B o How many unknowns, how many equations? B? C? F? Credit: F. Durand

Matting ambiguity o C= F+(1-)B o 7 unknowns: and triplets for F and B o 3 equations, one per color channel C Credit: F. Durand

Matting ambiguity o C= F+(1-)B o 7 unknowns: and triplets for F and B o 3 equations, one per color channel o With known background (e.g. blue/green screen): 4 unknowns, 3 equations B C F Credit: F. Durand

Questions? Credit: F. Durand From Cinefex

Multiple backgrounds matting {, Fr, Fg, Fb } Credit: J. Sun

Traditional blue screen matting o Invented by Petro Vlahos (Technical Academy Award 1995) o Recently formalized by Smith & Blinn o Initially for film, then video, then digital Assume that the foreground has no blue From Cinefex Credit: F. Durand

Blue/Green screen matting issues o Color limitation Annoying for blue-eyed people o Blue/Green spilling The background illuminates the foreground, blue/green at silhouettes Modify blue/green channel, e.g. set to min (b, a 2 g) o Shadows How to extract shadows cast on background Credit: F. Durand

Blue/Green screen matting issues Credit: F. Durand From the Art & Science of Digital Compositing

Questions? Credit: F. Durand

Advanced matting techniques o Bayesian matting o Poisson matting Jian Sun, Jiaya Jia, Chi-Keung Tang, and Heung- Yeung Shum, SIGGRAPH 2004 o Robust matting o Soft Scissors o 24

Natural image matting o Solving complex, F, B given a single natural image and a user input trimap I F B r r F B g g F B b b Credit: J. Sun

Gradient Manipulation: Poisson Matting g div(g) g 2 2 x 2 2 y div(g) g x x g y y Credit: J. Sun

Poisson Equation Given the destination matte gradient v, the optimization problem becomes: min 2 * v with div(g) s. t. * Credit: J. Sun

Global Poisson Matting I F ( 1) B I ( F B) F (1 ) B I ( F B) I F B Credit: J. Sun 28

I F B I div( ) s.t. F B 1 0 x x F B Credit: J. Sun

Variational interpretation * I * arg min f s.t F B 2 I div( ) s.t. F B I F B Credit: J. Sun

Global Poisson matting result http://www.cse.cuhk.edu.hk/~leojia/all_project_webpages/poisson%20matting/poissonmatting.mov Credit: J. Sun

Next Time o Video stabilization 32