Recall: Gaussian smoothing/sampling G 1/4 G 1/8 Gaussian 1/2 Solution: filter the image, then subsample Filter size should double for each ½ size reduction.

Slides:



Advertisements
Similar presentations
CSCE 643 Computer Vision: Template Matching, Image Pyramids and Denoising Jinxiang Chai.
Advertisements

Image Blending and Compositing : Computational Photography Alexei Efros, CMU, Fall 2010 © NASA.
Blending and Compositing Computational Photography Connelly Barnes Many slides from James Hays, Alexei Efros.
Multiscale Analysis of Images Gilad Lerman Math 5467 (stealing slides from Gonzalez & Woods, and Efros)
Ted Adelson’s checkerboard illusion. Motion illusion, rotating snakes.
Slides from Alexei Efros
CS 691 Computational Photography
Pyramids and Texture. Scaled representations Big bars and little bars are both interesting Spots and hands vs. stripes and hairs Inefficient to detect.
Recap from Monday Frequency domain analytical tool computational shortcut compression tool.
Computational Photography CSE 590 Tamara Berg Filtering & Pyramids.
Recap from Monday Fourier transform analytical tool computational shortcut.
Blending and Compositing Computational Photography Derek Hoiem, University of Illinois 09/23/14.
Blending and Compositing : Rendering and Image Processing Alexei Efros.
Image Filtering, Part 2: Resampling Today’s readings Forsyth & Ponce, chapters Forsyth & Ponce –
CSCE 641 Computer Graphics: Image Sampling and Reconstruction Jinxiang Chai.
Sampling and Pyramids : Rendering and Image Processing Alexei Efros …with lots of slides from Steve Seitz.
Edges and Scale Today’s reading Cipolla & Gee on edge detection (available online)Cipolla & Gee on edge detection Szeliski – From Sandlot ScienceSandlot.
Image transformations, Part 2 Prof. Noah Snavely CS1114
CSCE 641 Computer Graphics: Image Sampling and Reconstruction Jinxiang Chai.
Image Pyramids and Blending
Image Sampling Moire patterns
TEXTURE SYNTHESIS PEI YEAN LEE. What is texture? Images containing repeating patterns Local & stationary.
Lecture 4: Image Resampling CS4670: Computer Vision Noah Snavely.
Texture Reading: Chapter 9 (skip 9.4) Key issue: How do we represent texture? Topics: –Texture segmentation –Texture-based matching –Texture synthesis.
Lecture 3: Image Resampling CS4670: Computer Vision Noah Snavely Nearest-neighbor interpolation Input image 3x upsample hq3x interpolation (ZSNES)
Image Features, Hough Transform Image Pyramid CSE399b, Spring 06 Computer Vision Lecture 10
2D Fourier Theory for Image Analysis Mani Thomas CISC 489/689.
Image Compositing and Blending : Computational Photography Alexei Efros, CMU, Fall 2007 © NASA.
Image Pyramids and Blending : Computational Photography Alexei Efros, CMU, Fall 2005 © Kenneth Kwan.
4 – Image Pyramids. Admin stuff Change of office hours on Wed 4 th April – Mon 31 st March pm (right after class) Change of time/date of last.
Image Stitching II Ali Farhadi CSE 455
Slides from Alexei Efros, Steve Marschner Filters & fourier theory.
Image Sampling Moire patterns -
Image Pyramids and Blending
Recap from Friday Pinhole camera model Perspective projections Lenses and their flaws Focus Depth of field Focal length and field of view.
Image Representation Gaussian pyramids Laplacian Pyramids
Announcements Class web site – Handouts –class info –lab access/accounts –survey Readings.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5409 T-R 10:30am – 11:50am.
The Frequency Domain Somewhere in Cinque Terre, May 2005 Many slides borrowed from Steve Seitz CS194: Image Manipulation & Computational Photography Alexei.
Image Resampling CS4670: Computer Vision Noah Snavely.
Image Resampling CS4670: Computer Vision Noah Snavely.
Image Processing Xuejin Chen Ref:
Lecture 4: Image Resampling and Reconstruction CS4670: Computer Vision Kavita Bala.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm.
Image Stitching II Linda Shapiro CSE 455. RANSAC for Homography Initial Matched Points.
Computer vision. Applications and Algorithms in CV Tutorial 3: Multi scale signal representation Pyramids DFT - Discrete Fourier transform.
Projects Project 1a due this Friday Project 1b will go out on Friday to be done in pairs start looking for a partner now.
Hebrew University Image Processing Exercise Class 8 Panoramas – Stitching and Blending Min-Cut Stitching Many slides from Alexei Efros.
Image Stitching II Linda Shapiro EE/CSE 576.
Image Resampling & Interpolation
Image Blending : Computational Photography
CS 4501: Introduction to Computer Vision Sparse Feature Detectors: Harris Corner, Difference of Gaussian Connelly Barnes Slides from Jason Lawrence, Fei.
Image Sampling Moire patterns
Image Sampling Moire patterns
Jeremy Bolton, PhD Assistant Teaching Professor
Multiscale Analysis of Images
Image Stitching II Linda Shapiro EE/CSE 576.
Image Stitching II Linda Shapiro CSE 455.
More Image Manipulation
Samuel Cheng Slide credits: Noah Snavely
Image Processing Today’s readings For Monday
Filtering Part 2: Image Sampling
Image Sampling Moire patterns
Oh, no, wait, sorry, I meant, welcome to the implementation of 20th-century science fiction literature, or a small part of it, where we will learn about.
Image Resampling & Interpolation
Resampling.
Image Stitching II Linda Shapiro EE/CSE 576.
Samuel Cheng Slide credits: Noah Snavely
Photometric Processing
Presentation transcript:

Recall: Gaussian smoothing/sampling G 1/4 G 1/8 Gaussian 1/2 Solution: filter the image, then subsample Filter size should double for each ½ size reduction.

Subsampling with Gaussian smoothing G 1/4G 1/8Gaussian 1/2

Image Pyramids Known as a Gaussian Pyramid [Burt and Adelson, 1983] In computer graphics, a mip map [Williams, 1983] A precursor to wavelet transform

Motivations

Boundaries occur at different scales

Texture: consists of multiple size scales Synthesis Learn the statistics of texture to recognize it Synthesize texture based on learned model Original

Example: Image Blending

A bar in the big images is a hair on the zebra’s nose; in smaller images, a stripe; in the smallest, the animal’s nose Figure from David Forsyth

Gaussian pyramid construction filter mask Repeat Filter Subsample Until minimum resolution reached can specify desired number of levels (e.g., 3-level pyramid) The whole pyramid is only 4/3 the size of the original image!

What does blurring take away? (recall) original

What does blurring take away? (recall) smoothed (5x5 Gaussian)

Boundaries! smoothed – original

Band-pass filtering Laplacian Pyramid (subband images) Created from Gaussian pyramid by subtraction Gaussian Pyramid

Computer Vision - A Modern Approach Set: Pyramids and Texture Slides by D.A. Forsyth Gaussian Pyramid

Computer Vision - A Modern Approach Set: Pyramids and Texture Slides by D.A. Forsyth Laplacian Pyramid

Laplacian Pyramid Gaussian Pyramid

Applications Compression Set “most” coefficients in Laplacian pyramid to zero Hide secret messages in images (eg, to check youtube plagiarism) Image Restoration Image Blending

Application: Pyramid Blending Left pyramidRight pyramidblend

Image Blending Juxtaposition: too abrupt

Feathering = Encoding transparency I(x,y) = (  R,  G,  B,  ) I blend =  left I left +  right I right I left I right  left  right

Affect of Window Size 0 1 left right 0 1 Blending window too big (compared to typical detail size)  transparency, “ghosts”

Affect of Window Size Blending window too small (compared to typical detail size)  transition too abrupt

Problem and solution Problem: Usually details of many different sizes! No single size of blending window works. Solution Laplacian Pyramid separate images into levels. Each level has details of single size range.  Blend corresponding levels for the two images using windows sized to match level

Good Window Size 0 1 “Optimal” Window: smooth but not ghosted Burt and Adelson (83): Choose by pyramids…

Pyramid Blending

Pyramid Blending (Color)

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 (black white corresponding images) 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

laplacian level 4 laplacian level 2 laplacian level 0 left pyramidright pyramidblended pyramid

Blending Regions

Constructing the Laplacian Pyramid Worked out in class. To be posted later.