Sampling and Pyramids

Similar documents
Image Scaling. This image is too big to fit on the screen. How can we reduce it? How to generate a halfsized

Image Filtering and Gaussian Pyramids

Announcements. Image Processing. What s an image? Images as functions. Image processing. What s a digital image?

Image Sampling. Moire patterns. - Source: F. Durand

CS6670: Computer Vision Noah Snavely. Administrivia. Administrivia. Reading. Last time: Convolution. Last time: Cross correlation 9/8/2009

Sampling and Reconstruction

Image Pyramids. Sanja Fidler CSC420: Intro to Image Understanding 1 / 35

Image Interpolation. Image Processing

Next Classes. Spatial frequency Fourier transform and frequency domain. Reminder: Textbook. Frequency view of filtering Hybrid images Sampling

Filters. Materials from Prof. Klaus Mueller

Last Lecture. photomatix.com

Last Lecture. photomatix.com

06: Thinking in Frequencies. CS 5840: Computer Vision Instructor: Jonathan Ventura

Images and Filters. EE/CSE 576 Linda Shapiro

CSCI 1290: Comp Photo

Aliasing and Antialiasing. What is Aliasing? What is Aliasing? What is Aliasing?

ECE 484 Digital Image Processing Lec 09 - Image Resampling

Templates and Image Pyramids

Templates and Image Pyramids

Matlab (see Homework 1: Intro to Matlab) Linear Filters (Reading: 7.1, ) Correlation. Convolution. Linear Filtering (warm-up slide) R ij

Thinking in Frequency

Thinking in Frequency

Computer Graphics (Fall 2011) Outline. CS 184 Guest Lecture: Sampling and Reconstruction Ravi Ramamoorthi

Antialiasing & Compositing

Antialiasing and Related Issues

Texture mapping from 0 to infinity

Fourier analysis of images

CS4495/6495 Introduction to Computer Vision. 2C-L3 Aliasing

Sampling and Reconstruction

Image features: Histograms, Aliasing, Filters, Orientation and HOG. D.A. Forsyth

CS 775: Advanced Computer Graphics. Lecture 12 : Antialiasing

Vision Review: Image Processing. Course web page:

Sampling and Reconstruction

Frequencies and Color

CSC 320 H1S CSC320 Exam Study Guide (Last updated: April 2, 2015) Winter 2015

Sampling and reconstruction. CS 4620 Lecture 13

Sampling and reconstruction

Image Forgery. Forgery Detection Using Wavelets

!"!#"#$% Lecture 2: Media Creation. Some materials taken from Prof. Yao Wang s slides RECAP

Fourier Transform. Any signal can be expressed as a linear combination of a bunch of sine gratings of different frequency Amplitude Phase

Sampling and reconstruction

קורס גרפיקה ממוחשבת 2008 סמסטר ב' Image Processing 1 חלק מהשקפים מעובדים משקפים של פרדו דוראנד, טומס פנקהאוסר ודניאל כהן-אור

Image and Video Processing

Midterm Examination CS 534: Computational Photography

Analysis of the Interpolation Error Between Multiresolution Images

Motion illusion, rotating snakes

Capturing Light in man and machine

Image Processing. What is an image? קורס גרפיקה ממוחשבת 2008 סמסטר ב' Converting to digital form. Sampling and Reconstruction.

Application of Wavelet Transform on Multiresolution Image Mosaicing

image Scanner, digital camera, media, brushes,

PRACTICAL IMAGE AND VIDEO PROCESSING USING MATLAB

Sampling of Continuous-Time Signals. Reference chapter 4 in Oppenheim and Schafer.

Image Processing. Image Processing. What is an Image? Image Resolution. Overview. Sources of Error. Filtering Blur Detect edges

Image Processing (EA C443)

Capturing Light in man and machine. Some figures from Steve Seitz, Steve Palmer, Paul Debevec, and Gonzalez et al.

Digital Image Processing 3/e

CoE4TN4 Image Processing. Chapter 4 Filtering in the Frequency Domain

ECE 484 Digital Image Processing Lec 10 - Image Restoration I

June 30 th, 2008 Lesson notes taken from professor Hongmei Zhu class.

Prof. Feng Liu. Winter /10/2019

Sampling and pixels. CS 178, Spring Marc Levoy Computer Science Department Stanford University. Begun 4/23, finished 4/25.

CS534 Introduction to Computer Vision. Linear Filters. Ahmed Elgammal Dept. of Computer Science Rutgers University

Panoramic Image Mosaics

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

Sampling and Reconstruction

Reading Instructions Chapters for this lecture. Computer Assisted Image Analysis Lecture 2 Point Processing. Image Processing

CoE4TN4 Image Processing. Chapter 3: Intensity Transformation and Spatial Filtering

Convolution Pyramids. Zeev Farbman, Raanan Fattal and Dani Lischinski SIGGRAPH Asia Conference (2011) Julian Steil. Prof. Dr.

Fourier Transforms in Radio Astronomy

Image Resizing. Reminder no class next Tuesday, but your problem set is due. 9/19/08 Comp 665 Image Resizing 1

Sampling Theory. CS5625 Lecture Steve Marschner. Cornell CS5625 Spring 2016 Lecture 7

Eulerian Video Magnification Baby Monitor. Nik Cimino

IMAGE ENHANCEMENT IN SPATIAL DOMAIN

Image Restoration and Super- Resolution

Image acquisition. Midterm Review. Digitization, line of image. Digitization, whole image. Geometric transformations. Interpolation 10/26/2016

Overview. Neighborhood Filters. Dithering

DIGITAL IMAGE PROCESSING

XXXX - ANTI-ALIASING AND RESAMPLING 1 N/08/08

Image Filtering. Reading Today s Lecture. Reading for Next Time. What would be the result? Some Questions from Last Lecture

Denoising and Effective Contrast Enhancement for Dynamic Range Mapping

Computer Vision Lecture 3

Digital Image Processing

Evoked Potentials (EPs)

Tonemapping and bilateral filtering

! Multi-Rate Filter Banks (con t) ! Data Converters. " Anti-aliasing " ADC. " Practical DAC. ! Noise Shaping

EE482: Digital Signal Processing Applications

Filtering in the spatial domain (Spatial Filtering)

McGraw-Hill Irwin DIGITAL SIGNAL PROCESSING. A Computer-Based Approach. Second Edition. Sanjit K. Mitra

Image Filtering in Spatial domain. Computer Vision Jia-Bin Huang, Virginia Tech

Prof. Feng Liu. Fall /04/2018

Subband coring for image noise reduction. Edward H. Adelson Internal Report, RCA David Sarnoff Research Center, Nov

Transforms and Frequency Filtering

Practical Image and Video Processing Using MATLAB

ESE 531: Digital Signal Processing

Multi-Resolution Estimation of Optical Flow on Vehicle Tracking under Unpredictable Environments

ELEC Dr Reji Mathew Electrical Engineering UNSW

Resolution Enhancement of Satellite Image Using DT-CWT and EPS

ON ALIASING EFFECTS IN THE CONTOURLET FILTER BANK. Truong T. Nguyen and Soontorn Oraintara

A.V.C. COLLEGE OF ENGINEERING DEPARTEMENT OF CSE CP7004- IMAGE PROCESSING AND ANALYSIS UNIT 1- QUESTION BANK

Design IV. E232 Spring 07

Transcription:

Sampling and Pyramids 15-463: Rendering and Image Processing Alexei Efros with lots of slides from Steve Seitz Today Sampling Nyquist Rate Antialiasing Gaussian and Laplacian Pyramids 1

Fourier transform pairs Sampling sampling pattern w 1/w sampled signal Spatial domain Frequency domain 2

Reconstruction w 1/w sinc function reconstructed signal Spatial domain Frequency domain What happens when the sampling rate is too low? 3

Nyquist Rate What s the minimum Sampling Rate 1/w to get rid of overlaps? w 1/w sinc function Spatial domain Frequency domain Sampling Rate 2 * max frequency in the image this is known as the Nyquist Rate Antialiasing What can be done? Sampling rate 2 * max frequency in the image 1. Raise sampling rate by oversampling Sample at k times the resolution continuous signal: easy discrete signal: need to interpolate 2. Lower the max frequency by prefiltering Smooth the signal enough Works on discrete signals 3. Improve sampling quality with better sampling Nyquist is best case! Stratified sampling (jittering) Importance sampling (salaries in Seattle) Relies on domain knowledge 4

Sampling Good sampling: Sample often or, Sample wisely Bad sampling: see aliasing in action! Gaussian pre-filtering G 1/8 G 1/4 Gaussian 1/2 Solution: filter the image, then subsample Filter size should double for each ½ size reduction. Why? 5

Subsampling with Gaussian pre-filtering Gaussian 1/2 G 1/4 G 1/8 Solution: filter the image, then subsample Filter size should double for each ½ size reduction. Why? How can we speed this up? Compare with... 1/2 1/4 (2x zoom) 1/8 (4x zoom) Why does this look so crufty? 6

Image resampling (interpolation) So far, we considered only power-of-two subsampling What about arbitrary scale reduction? How can we increase the size of the image? 1 2 3 4 5 Recall how a digital image is formed d = 1 in this example It is a discrete point-sampling of a continuous function If we could somehow reconstruct the original function, any new image could be generated, at any resolution and scale Image resampling So far, we considered only power-of-two subsampling What about arbitrary scale reduction? How can we increase the size of the image? 1 2 3 4 5 Recall how a digital image is formed d = 1 in this example It is a discrete point-sampling of a continuous function If we could somehow reconstruct the original function, any new image could be generated, at any resolution and scale 7

Image resampling So what to do if we don t know Answer: guess an approximation Can be done in a principled way: filtering 1 d = 1 in this example Image reconstruction Convert 1 2 2.5 3 4 5 to a continuous function Reconstruct by cross-correlation: Resampling filters What does the 2D version of this hat function look like? performs linear interpolation (tent function) performs bilinear interpolation Better filters give better resampled images Bicubic is common choice Why not use a Gaussian? What if we don t want whole f, but just one sample? 8

Bilinear interpolation Smapling at f(x,y): Image Pyramids Known as a Gaussian Pyramid [Burt and Adelson, 1983] In computer graphics, a mip map [Williams, 1983] A precursor to wavelet transform 9

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! 10

Laplacian Pyramid Gaussian Pyramid Laplacian Pyramid (subband images) Created from Gaussian pyramid by subtraction What are they good for? Improve Search Search over translations Like homework Classic coarse-to-fine stategy Search over scale Template matching E.g. find a face at different scales Precomputation Need to access image at different blur levels Useful for texture mapping at different resolutions (called mip-mapping) Image Processing Editing frequency bands separetly E.g. image blending next time! 11