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

Similar documents
Image Filtering and Gaussian Pyramids

Sampling and Reconstruction

Sampling and Reconstruction

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

Sampling and Reconstruction

Sampling and reconstruction. CS 4620 Lecture 13

Sampling and reconstruction

Texture mapping from 0 to infinity

Sampling and reconstruction

ECE 484 Digital Image Processing Lec 09 - Image Resampling

Last Lecture. photomatix.com

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

Last Lecture. photomatix.com

Templates and Image Pyramids

Templates and Image Pyramids

Thinking in Frequency

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

The Scientist and Engineer's Guide to Digital Signal Processing By Steven W. Smith, Ph.D.

EE299 Midterm Winter 2007 Solutions

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

University of Maryland College Park. Digital Signal Processing: ENEE425. Fall Project#2: Image Compression. Ronak Shah & Franklin L Nouketcha

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

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

Sampling and Reconstruction of Analog Signals

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

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

International Journal of Digital Application & Contemporary research Website: (Volume 1, Issue 7, February 2013)

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

Digital Media. Lecture 4: Bitmapped images: Compression & Convolution Georgia Gwinnett College School of Science and Technology Dr.

Sampling and Signal Processing

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

Fourier analysis of images

Assistant Lecturer Sama S. Samaan

IMAGE PROCESSING: AREA OPERATIONS (FILTERING)

Images and Filters. EE/CSE 576 Linda Shapiro

CSCI 1290: Comp Photo

Module 3 : Sampling and Reconstruction Problem Set 3

Filters. Materials from Prof. Klaus Mueller

Overview. Neighborhood Filters. Dithering

Digital Image Processing. Image Enhancement: Filtering in the Frequency Domain

Sampling and Pyramids

Compression. Encryption. Decryption. Decompression. Presentation of Information to client site

Hybrid Coding (JPEG) Image Color Transform Preparation

Audio Signal Compression using DCT and LPC Techniques

Ch. 3: Image Compression Multimedia Systems

Image Interpolation. Image Processing

AN ERROR LIMITED AREA EFFICIENT TRUNCATED MULTIPLIER FOR IMAGE COMPRESSION

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

2.1. General Purpose Run Length Encoding Relative Encoding Tokanization or Pattern Substitution

Filter Banks I. Prof. Dr. Gerald Schuller. Fraunhofer IDMT & Ilmenau University of Technology Ilmenau, Germany. Fraunhofer IDMT

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

Lecture Schedule: Week Date Lecture Title

CMPT 318: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

Infocommunication. Sampling, Quantization. - Bálint TÓTH, BME TMIT -

Continuous vs. Discrete signals. Sampling. Analog to Digital Conversion. CMPT 368: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

Steganography & Steganalysis of Images. Mr C Rafferty Msc Comms Sys Theory 2005

Signals and Systems. Lecture 13 Wednesday 6 th December 2017 DR TANIA STATHAKI

Computer Vision, Lecture 3

Fourier transforms, SIM

ECE 2111 Signals and Systems Spring 2012, UMD Experiment 9: Sampling

Introduction to Wavelets Michael Phipps Vallary Bhopatkar

Figure 1: Block diagram of Digital signal processing

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

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

MULTIMEDIA SYSTEMS

LIST 04 Submission Date: 04/05/2017; Cut-off: 14/05/2017. Part 1 Theory. Figure 1: horizontal profile of the R, G and B components.

Fourier and Wavelets

Module 6 STILL IMAGE COMPRESSION STANDARDS

ELEC Dr Reji Mathew Electrical Engineering UNSW

SAMPLING THEORY. Representing continuous signals with discrete numbers

2: Audio Basics. Audio Basics. Mark Handley

Figures from Embedded System Design: A Unified Hardware/Software Introduction, Frank Vahid and Tony Givargis, New York, John Wiley, 2002

Sampling and Reconstruction

Determination of the MTF of JPEG Compression Using the ISO Spatial Frequency Response Plug-in.

Sistemas de Aquisição de Dados. Mestrado Integrado em Eng. Física Tecnológica 2015/16 Aula 3-29 de Setembro

USE OF FT IN IMAGE PROCESSING IMAGE PROCESSING (RRY025)

Transforms and Frequency Filtering

Speech Coding in the Frequency Domain

EE482: Digital Signal Processing Applications

MITOCW MITRES_6-007S11lec18_300k.mp4

Prof. Feng Liu. Fall /04/2018

Digital Signal Processing

Compression and Image Formats

A Novel Approach of Compressing Images and Assessment on Quality with Scaling Factor

APPLICATIONS OF DSP OBJECTIVES

Basic Signals and Systems

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

Introduction to Wavelets. For sensor data processing

DIGITAL SIGNAL PROCESSING CCC-INAOE AUTUMN 2015

Digital Image Processing COSC 6380/4393

The Sampling Theorem:

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

Design IV. E232 Spring 07

Appendix B. Design Implementation Description For The Digital Frequency Demodulator

Chapter 9 Image Compression Standards

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

Digital Video and Audio Processing. Winter term 2002/ 2003 Computer-based exercises

In The Name of Almighty. Lec. 2: Sampling

IMAGE PROCESSING FOR EVERYONE

Advanced Digital Signal Processing Part 2: Digital Processing of Continuous-Time Signals

Transcription:

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

Recall: Fourier Pairs (from Szeliski)

Fourier Transform Sampling Pairs FT of an impulse train is an impulse train

Sampling and Aliasing

Sampling and Reconstruction

Sampled representations How to store and compute with continuous functions? Common scheme for representation: samples S. Marschner

Reconstruction Making samples back into a continuous function for output (need realizable method) for analysis or processing (need mathematical method) Amounts to guessing what the function did in between S. Marschner

1D Example: Audio low frequencies high

Sampling in digital audio Recording: sound to analog to samples to disc Playback: disc to samples to analog to sound again S. Marschner

Sampling and Reconstruction Simple example: a sign wave S. Marschner

Undersampling What if we missed things between the samples? S. Marschner

Undersampling Simple example: undersampling a sine wave unsurprising result: information is lost S. Marschner

Undersampling Simple example: undersampling a sine wave unsurprising result: information is lost surprising result: indistinguishable from lower frequency S. Marschner

Undersampling Simple example: undersampling a sine wave Low frequency also was always indistinguishable from higher frequencies S. Marschner

Undersampling Aliasing: signals traveling in disguise as other frequencies S. Marschner

Aliasing in video S. Seitz

Aliasing in images

What s happening? Input signal: Plot as image: x = 0:.05:5; imagesc(sin((2.^x).*x)) Alias! Not enough samples

Antialiasing Sample more often Join the Mega-Pixel craze of the photo industry But this can t go on forever Make the signal less wiggly Get rid of some high frequencies Will loose information But it s better than aliasing

Preventing aliasing Introduce lowpass filters: remove high frequencies leaving only safe, low frequencies to be reconstructed S. Marschner

(Anti)Aliasing in the Frequency Domain

Impulse Train Define a comb function (impulse train) in 1D as follows where M is an integer c o m b [ x ] [ x k M ] M 1 k c o m b [ x ] 2 x B.K. Gunturk

FT of Impulse Train in 1D 1 c o m b ( x ) 1 2 c o m b 1 2 1 2 2 ( u ) 2 Remember: x Scaling f a x 1 2 1 u F a a u B.K. Gunturk

Impulse Train in 2D (bed of nails) c o m b ( x, y ) x k M, y ln M, N k l

FT of Impulse Train in 2D (bed of nails) Fourier Transform of an impulse train is also an impulse train: x k M, y ln k l k 1 k l u, v M N M N l c o m b ( x, y ) M, N As the comb samples get further apart, the spectrum samples get closer together! c o m b 1 1, M N ( u, v ) B.K. Gunturk

FT Impulse Train in 1D 1 c o m b ( x ) 1 2 c o m b 1 2 1 2 2 ( u ) 2 Remember: x Scaling f a x 1 2 1 u F a a u B.K. Gunturk

Sampling low frequency signal

B.K. Gunturk f(x) F(u) comb M (x) M Multiply (sample): f x comb M (x) x x x comb 1 (u) M 1 M Convolve: F u comb 1 (u) M u u u

B.K. Gunturk f(x) F(u) x f x comb M (x) u F u comb 1 (u) M x M 1 M u No problem if the maximum frequency of the signal is small enough

B.K. Gunturk Sampling low frequency signal f x comb M (x) F u comb 1 (u) M M x W 1 M 1 2 M u If there is no overlap, W < 1 2M, the original signal can be recovered from its samples by low-pass filtering.

Sampling high frequency signal f(x) F(u) x W W u < f x comb M x > F u comb 1 (u) M Overlap: The high frequency energy is folded over into low frequency. It is aliasing as lower frequency energy. And you cannot fix it once it has happened. 1 M u

Sampling high frequency signal f(x) F(u) f ( x ) * h ( x ) x W W u u Antialiasing filter Anti-aliasing filter [ f ( x ) * h ( x )] c o m b M ( x ) Apply low pass u 1 M B.K. Gunturk

Sampling high frequency signal Without anti-aliasing filter: f ( x ) c o m b ( x ) M W u With anti-aliasing filter: 1 M [ f ( x ) * h ( x )] c o m b M ( x ) u 1 M B.K. Gunturk

Aliasing in Images

Image half-sizing Suppose this image is too big to fit on the screen. How can we reduce it e.g. generate a half-sized version? S. Seitz

Image sub-sampling Throw away every other row and column to create a 1/2 size image - called image subsampling 1/4 1/8 1/2 S. Seitz

Image sub-sampling 1/2 1/4 (2x zoom) 1/8 (4x zoom) Aliasing! What do we do? S. Seitz

Gaussian (lowpass) pre-filtering Solution: filter the image, then subsample G 1/4 G 1/8 Gaussian 1/2 S. Seitz

Subsampling with Gaussian pre-filtering Gaussian 1/2 G 1/4 G 1/8 S. Seitz

Compare with... Original G 1/8 (4x zoom) Subsample 1/8 (4x zoom) S. Seitz

Campbell-Robson contrast sensitivity curve The higher the frequency the less sensitive human visual system is

Lossy Image Compression (JPEG) Block-based Discrete Cosine Transform (DCT) on 8x8

Using DCT in JPEG The first coefficient B(0,0) is the DC component, the average intensity The top-left coeffs represent low frequencies, the bottom right high frequencies

Image compression using DCT DCT enables image compression by concentrating most image information in the low frequencies Quantization Table 3 5 7 9 11 13 15 17 5 7 9 11 13 15 17 19 7 9 11 13 15 17 19 21 9 11 13 15 17 19 21 23 11 13 15 17 19 21 23 25 13 15 17 19 21 23 25 27 15 17 19 21 23 25 27 29 17 19 21 23 25 27 29 31

Image compression using DCT Lose unimportant image info (high frequencies) by cutting B(u,v) at bottom right The decoder computes the inverse DCT IDCT Quantization Table 3 5 7 9 11 13 15 17 5 7 9 11 13 15 17 19 7 9 11 13 15 17 19 21 9 11 13 15 17 19 21 23 11 13 15 17 19 21 23 25 13 15 17 19 21 23 25 27 15 17 19 21 23 25 27 29 17 19 21 23 25 27 29 31

JPEG compression comparison 89k 12k