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

Similar documents
Filters. Materials from Prof. Klaus Mueller

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

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

Antialiasing and Related Issues

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

Sampling and reconstruction

Sampling and reconstruction. CS 4620 Lecture 13

ELEC Dr Reji Mathew Electrical Engineering UNSW

Sampling and Reconstruction

Sampling and reconstruction

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

Module 3 : Sampling and Reconstruction Problem Set 3

SAMPLING THEORY. Representing continuous signals with discrete numbers

Sampling and Signal Processing

Sampling and Reconstruction of Analog Signals

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

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

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

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

Sampling and Pyramids

Wavelet Transform. From C. Valens article, A Really Friendly Guide to Wavelets, 1999

Module 3: Video Sampling Lecture 18: Filtering operations in Camera and display devices. The Lecture Contains: Effect of Temporal Aperture:

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

2) How fast can we implement these in a system

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

Enhanced Sample Rate Mode Measurement Precision

The Intuitions of Signal Processing (for Motion Editing)

ECE 484 Digital Image Processing Lec 09 - Image Resampling

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

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

Midterm is on Thursday!

FFT analysis in practice

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

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

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

YEDITEPE UNIVERSITY ENGINEERING FACULTY COMMUNICATION SYSTEMS LABORATORY EE 354 COMMUNICATION SYSTEMS

ACM Fast Image Convolutions. by: Wojciech Jarosz

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

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

Lab 4 Fourier Series and the Gibbs Phenomenon

Objective Evaluation of Edge Blur and Ringing Artefacts: Application to JPEG and JPEG 2000 Image Codecs

Final Exam Practice Questions for Music 421, with Solutions

Frequency Domain Enhancement

Sampling, interpolation and decimation issues

Low wavenumber reflectors

ME scope Application Note 01 The FFT, Leakage, and Windowing

Fourier Transform Pairs

LOOKING AT DATA SIGNALS

Aliasing in Fourier Analysis

Final Exam Solutions June 7, 2004

Digital Processing of Continuous-Time Signals

Final Exam Solutions June 14, 2006

Digital Processing of

Introduction to Wavelets. For sensor data processing

Exercise Problems: Information Theory and Coding

CT111 Introduction to Communication Systems Lecture 9: Digital Communications

EE5713 : Advanced Digital Communications

Sampling and Reconstruction

Design of FIR Filters

+ a(t) exp( 2πif t)dt (1.1) In order to go back to the independent variable t, we define the inverse transform as: + A(f) exp(2πif t)df (1.

Lecture 3 Review of Signals and Systems: Part 2. EE4900/EE6720 Digital Communications

Wavelet Transform. From C. Valens article, A Really Friendly Guide to Wavelets, 1999

Chapter-2 SAMPLING PROCESS

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

Communication Engineering Prof. Surendra Prasad Department of Electrical Engineering Indian Institute of Technology, Delhi

Wavelets and wavelet convolution and brain music. Dr. Frederike Petzschner Translational Neuromodeling Unit

Filters. Motivating Example. Tracking a fly, oh my! Moving Weighted Average Filter. General Picture

Data Acquisition Systems. Signal DAQ System The Answer?

TOPAZ Vivacity V1.3. User s Guide. Topaz Labs LLC. Copyright 2005 Topaz Labs LLC. All rights reserved.

Postprocessing of nonuniform MRI

! Where are we on course map? ! What we did in lab last week. " How it relates to this week. ! Sampling/Quantization Review

Digital Image Processing

Harmonic Analysis. Purpose of Time Series Analysis. What Does Each Harmonic Mean? Part 3: Time Series I

Lecture Schedule: Week Date Lecture Title

Edge Preserving Image Coding For High Resolution Image Representation

Post-processing data with Matlab

Lecture 7 Frequency Modulation

Laboratory Assignment 5 Amplitude Modulation

Digital Signal Processing for Audio Applications

Determining MTF with a Slant Edge Target ABSTRACT AND INTRODUCTION

Digital-to-Analog Converter (DAC) Output Response

Performance Analysis of FIR Digital Filter Design Technique and Implementation

IMAGE PROCESSING: AREA OPERATIONS (FILTERING)

Image Interpolation. Image Processing

2D Discrete Fourier Transform

MITOCW MITRES_6-007S11lec18_300k.mp4

PROBLEM SET 6. Note: This version is preliminary in that it does not yet have instructions for uploading the MATLAB problems.

EEL 6562 Image Processing and Computer Vision Image Restoration

VU Signal and Image Processing. Torsten Möller + Hrvoje Bogunović + Raphael Sahann

SUPER RESOLUTION INTRODUCTION

Recall. Sampling. Why discrete time? Why discrete time? Many signals are continuous-time signals Light Object wave CCD

Digital Image Processing. Digital Image Fundamentals II 12 th June, 2017

Direct Digital Synthesis Primer

PIECEWISE SMOOTH SIGNAL DENOISING VIA PRINCIPAL CURVE PROJECTIONS

Deconvolution , , Computational Photography Fall 2017, Lecture 17

Orthonormal bases and tilings of the time-frequency plane for music processing Juan M. Vuletich *

Coming to Grips with the Frequency Domain

Solutions to Information Theory Exercise Problems 5 8

Filtering Images in the Spatial Domain Chapter 3b G&W. Ross Whitaker (modified by Guido Gerig) School of Computing University of Utah

EE3723 : Digital Communications

Transcription:

Image Resizing Narbonic Shaenon Garrity http://www.narbonic.com Reminder no class next Tuesday, but your problem set is due. 9/19/08 Comp 665 Image Resizing 1

Magnifica/on = Reconstruc/on Conceptually (forward mapping) Up sample (needs not be an integer mulfple) Convolve with reconstrucfon filter Wasteful (lots of zeros) In PracFce (inverse mapping) Iterate over all pixels in the output range Accumulate reconstrucfon kernel contribufons at each pixel (finite extents help here) 9/19/08 Comp 665 Image Resizing 2

Illustra/on of Forward Mapping Foreach output pixel compute and accumulate contribufons due to just the relevant inputs Only helpful for reconstrucfon kernels with limited extents 9/19/08 Comp 665 Image Resizing 3

Box Filter Reconstruc/on Enlarges Pixels 9/19/08 Comp 665 Image Resizing 4

Linear Interpola/on Recall that a tent filter provided piecewise linear (planar in 2D) reconstrucfons Extent 2 pixels 9/19/08 Comp 665 Image Resizing 5

Sinc Reconstruc/on The ringing of the Ideal reconstrucfon filter dominates in magnificafon Extent infinite 9/19/08 Comp 665 Image Resizing 6

Gaussian Gaussian ReconstrucFon provides smoothness at the cost of exposing the pixel grid Extent infinite 9/19/08 Comp 665 Image Resizing 7

Tuned Gaussian If we are willing to further compromise on passing through the samples we can improve on Gaussian reconstrucfon, but this comes at the cost of increased blur and, even so, the pixel grid is sfll evident Extent infinite 9/19/08 Comp 665 Image Resizing 8

Raised Cosine A raised cosine reconstrucfon is both smooth and passes through the samples, but it sfll retains some high frequencies (pixelafon) arffacts Extent 2 pixels 9/19/08 Comp 665 Image Resizing 9

Piecewise Cubic Like a raised cosine, piecewise cubic reconstrucfons are smooth and pass through the given sample values. In fact, they are hard to disfnguish, but the cubic is slightly easier to compute. Extent 2 pixels 9/19/08 Comp 665 Image Resizing 10

Mitchell Netravali Cubics B = ⅓, C = ⅓ Other piecewise cubic filters tradeoff pixel grid arffacts with blur. This preferred version also approximates rather than interpolates sample values Extent 4 pixels 9/19/08 Comp 665 Image Resizing 11

Another Mitchell Netravali Filter B = 0, C = ½ This variant is less blurry, and interpolates (passes through) the samples, but the pixel arffacts are more apparent. Some people prefer its greater sharpness. Extent 4 pixels 9/19/08 Comp 665 Image Resizing 12

Example 9/19/08 Comp 665 Image Resizing 13

Side by Side Comparison These examples show a range of reconstrucfon arffacts. Note the differences in blur, evidence of the pixel grid, and afenuafon (approximafon) of samples Piecewise Linear Raised Cosine Mitchell-Netravali B=⅓, C= ⅓ 9/19/08 Comp 665 Image Resizing 14

Side by Side Comparison ReconstrucFon filter preference is also frequently content dependent Piecewise Linear Raised Cosine Mitchell-Netravali B=⅓, C= ⅓ 9/19/08 Comp 665 Image Resizing 15

Minifica/on = Filter & Sample Flip side: Reducing the size of an image We ve discussed sampling = MinificaFon is merely sampling followed by down sampling or decimafon (retaining only the sampled values) 9/19/08 Comp 665 Image Resizing 16

Sampling in the Fourier Domain Recall modulafon dual is convolufon = * = 9/19/08 Comp 665 Image Resizing 17

Pre Aliasing Problem Overlapping copies of spectrum make it impossible to recover a single original Thus, we can never fully recover the original Moreover, high frequencies from nearby copies add to the center one, introducing arffacts These arffacts, which look like blockiness or stair steps are called Aliasing What images can we can exactly reconstruct? 9/19/08 Comp 665 Image Resizing 18

Nyquist Sampling Criterion If a funcfon contains no frequencies higher than ω cycles over its input domain, it is completely determined by samples spaced 1/(2ω) apart. If the bandwidth of a signal is limited to ½ the sample frequency then its spectrums can not overlap and it can, in theory, be recovered without loss (assumes ideal reconstrucfon) But real world signals are not so well behaved, but we can filter them prior to sampling to minimize arffacts 9/19/08 Comp 665 Image Resizing 19

Prefiltering AnFaliasing requires filtering prior to sampling = 9/19/08 Comp 665 Image Resizing 20

Sample Filtered Image Recall modulafon dual is convolufon = * = 9/19/08 Comp 665 Image Resizing 21

PuMng it all together An image that is properly prefiltered also leads to befer reconstrucfons 9/19/08 Comp 665 Image Resizing 22

PuMng it all together And the choice of reconstrucfon filter is less crucial 9/19/08 Comp 665 Image Resizing 23

Prefiltering Compromises In theory, prefiltering, sampling, and reconstrucfon can be accomplished without signal loss, degradafon or arffacts. In pracfce, it is hard Ideal prefilters have infinite extent in the spafal domain Gibbs phenomenon suggests ringing at disconfnuifes (including image boundaries) Ideal reconstrucfon filters are also linear in extent SubopFmal filters tend to be either excessively blurry, or expose the underlying pixel structure 9/19/08 Comp 665 Image Resizing 24