Filters. Materials from Prof. Klaus Mueller

Similar documents
Aliasing and Antialiasing. What is Aliasing? What is Aliasing? What is Aliasing?

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

Sampling and Pyramids

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

Prof. Feng Liu. Fall /04/2018

ECE 484 Digital Image Processing Lec 09 - Image Resampling

Last Lecture. photomatix.com

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

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

Last Lecture. photomatix.com

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

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

Vision Review: Image Processing. Course web page:

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

Image Processing (EA C443)

Antialiasing and Related Issues

Image Interpolation. Image Processing

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

image Scanner, digital camera, media, brushes,

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

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

Sampling and Reconstruction

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

Antialiasing & Compositing

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

Sampling and reconstruction. CS 4620 Lecture 13

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

Image and Video Processing

Sampling and reconstruction

Sampling Rate = Resolution Quantization Level = Color Depth = Bit Depth = Number of Colors

Sampling and Reconstruction. Today: Color Theory. Color Theory COMP575

Sampling and Reconstruction of Analog Signals

8.2 IMAGE PROCESSING VERSUS IMAGE ANALYSIS Image processing: The collection of routines and

Images and Filters. EE/CSE 576 Linda Shapiro

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

Sampling and reconstruction

Image Filtering and Gaussian Pyramids

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

Multimedia Systems Giorgio Leonardi A.A Lectures 14-16: Raster images processing and filters

Midterm is on Thursday!

restoration-interpolation from the Thematic Mapper (size of the original

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

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

Sampling and Reconstruction

Midterm Examination CS 534: Computational Photography

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

Performance Evaluation of Edge Detection Techniques for Square Pixel and Hexagon Pixel images

CoE4TN4 Image Processing. Chapter 4 Filtering in the Frequency Domain

CS448f: Image Processing For Photography and Vision. Fast Filtering Continued

Image Processing for feature extraction

Jennifer Eunice.R. Department of Electronics and communication Dr.SivanthiAditanar College of Engineering Tiruchendur, India

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

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

LAB 2: Sampling & aliasing; quantization & false contouring

Dr. J. J.Magdum College. ABSTRACT- Keywords- 1. INTRODUCTION-

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

Remote Sensing in an

Spatial Analyst is an extension in ArcGIS specially designed for working with raster data.

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

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

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

Lecture Schedule: Week Date Lecture Title

Templates and Image Pyramids

IMAGE PROCESSING: AREA OPERATIONS (FILTERING)

Comparative Study of Different Wavelet Based Interpolation Techniques

Templates and Image Pyramids

A survey of Super resolution Techniques

Vision, Color, and Illusions. Vision: How we see

Understanding Matrices to Perform Basic Image Processing on Digital Images

CSCI 1290: Comp Photo

DISCRETE FOURIER TRANSFORM AND FILTER DESIGN

Optimized Image Scaling Processor using VLSI

Motion illusion, rotating snakes

CS 111: Programing Assignment 2

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

Double resolution from a set of aliased images

Prof. Feng Liu. Winter /10/2019

multiframe visual-inertial blur estimation and removal for unmodified smartphones

Genuine Fractals 4.1 Evaluation Guide

Table of contents. Vision industrielle 2002/2003. Local and semi-local smoothing. Linear noise filtering: example. Convolution: introduction

Lecture 2 Digital Image Fundamentals. Lin ZHANG, PhD School of Software Engineering Tongji University Fall 2016

Practical Image and Video Processing Using MATLAB

Lecture 2: Digital Image Fundamentals -- Sampling & Quantization

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

IMAGE PROCESSING Vedat Tavşanoğlu

MULTIMEDIA SYSTEMS

Module 3 : Sampling and Reconstruction Problem Set 3

The Necessary Resolution to Zoom and Crop Hardcopy Images

Photoshop Domain 2: Identifying Design Elements When Preparing Images

Prof. Vidya Manian Dept. of Electrical and Comptuer Engineering

Fourier analysis of images

ADAPTIVE ADDER-BASED STEPWISE LINEAR INTERPOLATION

in association with Getting to Grips with Printing

1.Discuss the frequency domain techniques of image enhancement in detail.

Observer Performance of Reduced X-Ray Images on Liquid Crystal Displays

PHOTO 11: INTRODUCTION TO DIGITAL IMAGING

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

Image Processing COS 426

Resolution Enhancement of Satellite Image Using DT-CWT and EPS

Digital Image Processing

Transcription:

Filters Materials from Prof. Klaus Mueller

Think More about Pixels What exactly a pixel is in an image or on the screen? Solid square? This cannot be implemented A dot? Yes, but size matters

Pixel Dots Monitor or printer plots pixel as particular dots with particular size The dot can be looked as an Gaussian distributed splat on screen or paper The Gaussian dots overlap and blend with neighbors Finally, smooth images visualized on screen or papers

Sampling Process

Low Pass Filtering: Fourier Domain In Fourier domain, use a box filter to cut-off the signal in frequency domain Cut-off frequency defines an frequency band Frequency filter: multiplication between box filter and Fourier-transformed original signal

Convolution vs Multiplication Multiplication in Fourier domain can be implemented by convolution in spatial domain Mathematically, convolution multiplication

Low Pass Filtering: Spatial Domain The convolution process

Popular Filters

Spatial Filters Filter Size determines computational cost Filter shape in Fourier domain determines the aliasing prevention quality: box is not good Sinc seems ideal in Fourier domain, but not good in spatial domain Consider both quality and speed: linear is the most popular

Filters For high quality, use cubic Box, linear, cubic, Gaussian filters are all separable in 2D, 3D or higher dimensions

Filter + Sample We can combine sample and filter together

Filter-base Sampling At sample position, use low pass filter Then integrate the filtered results as sample values Usually, Gaussian kernel is used Digital camera integrate the image with Gaussian kernel around each sampling point

Filter-based Reconstruction Place filter at each discrete sampling position Scale the filter by the sample value Integrate scaled filter results to reconstruct continuous function Display devices actually show each sample as a Gaussian shaped spot Blend with neighbors for smooth results

Resampling Scale, rotation and other operations may require sampling on positions off the regular grid Re-sample the continuous signal at positions not included in your origin sampling Need to reconstruct then resample

Enlarge an Image Resample frequency is larger than the original sampling rate When you enlarge an image Why?

Shrink an Image Resample frequency is smaller than the original sampling rate When you shrink an image Why? Thus, aliasing may happen

How to Improve In visualization, blurring is preferable than aliasing Blurring is more friendly to human visual system Thus, we can use low pass filter during reconstruction and perform resampling thereafter

Another Alternative? Smooth after subsampling?

Discussion Anti-aliasing before resampling! Let s study the filter used for reconstruction We assumed perfect box filter in Fourier domain This is practically impossible, since it corresponds to infinite sinc function in spatial domain Then?

Practical Filters In real life, we use non-ideal, but practical filters in spatial domain Box Bilinear, trilinear Gaussian Aliasing cannot be removed totally, but we are only looking for visually acceptable results

Practical Filters In addition, this may introduce aliasing even when enlarge an image

Practical Resampling

How to Implement Back trace from new sampling position to the corresponding position on the original image Integrate in the original image around this position with filter h1,2 This is called interpolation

Interpolation Filters Interpolation with with box filter (nearest neighbor) Interpolation with bilinear filter can give a better quality Interpolation with cubic filter can give great quality, but too costly

Example

Interpolation New sample position falls in between origin samples For interpolation, we need to estimate values at superimposed position to the center of interpolation kernel Multiply these values with kernel

Nearest Neighbor Kernel

Bilinear Kernel

Bilinear Interpolation 2D case:

Trilinear Interpolation General 3D case Can be decomposed into 7 linear interpolations

(B=1,C=0) Cubic Kernel

Discussion Nearest is the fastest with SHARP edges Cubic filter gives smooth results but with slow computation Linear filter is most popular in volume rendering