Overview. Neighborhood Filters. Dithering

Similar documents
Last Lecture. photomatix.com

Last Lecture. photomatix.com

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

Image Filtering and Gaussian Pyramids

Images and Filters. EE/CSE 576 Linda Shapiro

Sampling and Reconstruction

Image Processing. Adrien Treuille

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

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

Motivation: Image denoising. How can we reduce noise in a photograph?

Prof. Feng Liu. Winter /10/2019

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

Motivation: Image denoising. How can we reduce noise in a photograph?

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

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

Practical Image and Video Processing Using MATLAB

Filtering in the spatial domain (Spatial Filtering)

Image filtering, image operations. Jana Kosecka

CSCI 1290: Comp Photo

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

Digital Image Processing

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

Image Filtering. Median Filtering

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

Image preprocessing in spatial domain

Image Enhancement using Histogram Equalization and Spatial Filtering

Prof. Vidya Manian Dept. of Electrical and Comptuer Engineering

ECE 484 Digital Image Processing Lec 09 - Image Resampling

Image Processing. Adam Finkelstein Princeton University COS 426, Spring 2019

IMAGE PROCESSING: AREA OPERATIONS (FILTERING)

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

Midterm Review. Image Processing CSE 166 Lecture 10

EE482: Digital Signal Processing Applications

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

Digital Image Processing. Lecture 5 (Enhancement) Bu-Ali Sina University Computer Engineering Dep. Fall 2009

Midterm is on Thursday!

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

Fourier analysis of images

Image Enhancement. DD2423 Image Analysis and Computer Vision. Computational Vision and Active Perception School of Computer Science and Communication

IMAGE ENHANCEMENT IN SPATIAL DOMAIN

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

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

Image Processing COS 426

>>> from numpy import random as r >>> I = r.rand(256,256);

Image Enhancement in spatial domain. Digital Image Processing GW Chapter 3 from Section (pag 110) Part 2: Filtering in spatial domain

Chapter 6. [6]Preprocessing

Digital Image Processing

Image Processing Computer Graphics I Lecture 20. Display Color Models Filters Dithering Image Compression

More image filtering , , Computational Photography Fall 2017, Lecture 4

CSE 564: Scientific Visualization

Filters. Materials from Prof. Klaus Mueller

Templates and Image Pyramids

Digital Image Processing

Templates and Image Pyramids

TIRF, geometric operators

An Adaptive Kernel-Growing Median Filter for High Noise Images. Jacob Laurel. Birmingham, AL, USA. Birmingham, AL, USA

Computer Graphics Fundamentals

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

Image Processing for feature extraction

Fixing the Gaussian Blur : the Bilateral Filter

An Efficient Noise Removing Technique Using Mdbut Filter in Images

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

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

Motion illusion, rotating snakes

Achim J. Lilienthal Mobile Robotics and Olfaction Lab, AASS, Örebro University

PRACTICAL IMAGE AND VIDEO PROCESSING USING MATLAB

LAB MANUAL SUBJECT: IMAGE PROCESSING BE (COMPUTER) SEM VII

>>> from numpy import random as r >>> I = r.rand(256,256);

Vision Review: Image Processing. Course web page:

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

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

Sensors and Sensing Cameras and Camera Calibration

10. Noise modeling and digital image filtering

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

Image Filtering Josef Pelikán & Alexander Wilkie CGG MFF UK Praha

CIS581: Computer Vision and Computational Photography Homework: Cameras and Convolution Due: Sept. 14, 2017 at 3:00 pm

THE EFFECT OF IMPLEMENTING OF NONLINEAR FILTERS FOR ENHANCING MEDICAL IMAGES USING MATLAB

CAP 5415 Computer Vision. Marshall Tappen Fall Lecture 1

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

Sampling and Reconstruction

Image Processing by Bilateral Filtering Method

Lecture 3: Linear Filters

02/02/10. Image Filtering. Computer Vision CS 543 / ECE 549 University of Illinois. Derek Hoiem

Image Interpolation. Image Processing

Tonemapping and bilateral filtering

Image Enhancement contd. An example of low pass filters is:

Image Enhancement II: Neighborhood Operations

Understanding Matrices to Perform Basic Image Processing on Digital Images

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

CPSC 340: Machine Learning and Data Mining. Convolutional Neural Networks Fall 2018

ACM Fast Image Convolutions. by: Wojciech Jarosz

CS/ECE 545 (Digital Image Processing) Midterm Review

Prof. Feng Liu. Spring /12/2017

Sampling and Pyramids

Lec 05 - Linear Filtering & Edge Detection

Thinking in Frequency

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

DIGITAL IMAGE DE-NOISING FILTERS A COMPREHENSIVE STUDY

AN EFFICIENT IMAGE ENHANCEMENT ALGORITHM FOR SONAR DATA

Performance Evaluation of Different Depth From Defocus (DFD) Techniques

Transcription:

Image Processing

Overview Images Pixel Filters Neighborhood Filters Dithering

Image as a Function We can think of an image as a function, f, f: R 2 R f (x, y) gives the intensity at position (x, y) Realistically, we expect the image only to be defined over a rectangle, with a finite range: f: [a,b]x[c,d] [0,1] A color image is just three functions pasted together. We can write this as a vectorvalued function: r( x, y) f ( x, y) g( x, y) b ( x, y)

Image as a Function

Image Processing Define a new image g in terms of an existing image f We can transform either the domain or the range of f Range transformation: What kinds of operations can this perform?

Image Processing Some operations preserve the range but change the domain of f : What kinds of operations can this perform? Still other operations operate on both the domain and the range of f.

Point Operations

Point Processing Original Darken Lower Contrast Nonlinear Lower Contrast Invert Lighten Raise Contrast Nonlinear Raise Contrast

Point Processing Original Darken Lower Contrast Nonlinear Lower Contrast x x - 128 x / 2 ((x / 255.0) ^ 0.33) * 255.0 Invert Lighten Raise Contrast Nonlinear Raise Contrast 255 - x x + 128 x * 2 ((x / 255.0) ^2) * 255.0

Gamma correction Monitors have a intensity to voltage response curve which is roughly a 2.5 power function Send v actually display a pixel which has intensity equal to v 2.5 = 1.0; f(v) = v = 2.5; f(v) = v 1/2.5 = v 0.4

Neighborhood Operations

Convolution 0.2 0.1-1.0 0.3 0.0 0.9 0.1 0.3-1.0

Properties of Convolution Commutative Associative a b b a Cascade system a b c a b c f h1 h2 g f h1 h 2 g f h2 h 1 g

Convolution Convolution is linear and shift invariant g x f h x d g f h f h h x kernel h

Convolution - Example f g f g Eric Weinstein s Math World

Convolution - Example a 1 x b 1 x -1 1-1 1 c a b c x 1-2 -1 1 2

Point Spread Function scene Optical System image Ideally, the optical system should be a Dirac delta function. However, optical systems are never ideal. x point source Optical System PSF x point spread function Point spread function of Human Eyes

Point Spread Function normal vision myopia hyperopia astigmatism Images by Richmond Eye Ass

Original Image

Blurred Image

http://www.michaelbach.de/ot/cog_blureffects Gaussian Smoothing by Charles Allen Gillbert by Harmon & Julesz

Gaussian Smoothing http://www.michaelbach.de/ot/cog_blureffects

Original Image

Sharpened Image

Sharpened Image

Original Image

Noise

Blurred Noise

Median Filter Smoothing is averaging (a) Blurs edges (b) Sensitive to outliers (a) (b) Median filtering Sort N 2 1 values around the pixel Select middle value (median) sort median Non-linear (Cannot be implemented with convolution)

Median Filter Can this be described as a convolution?

Original Image

Example: Noise Reduction Image with noise Median filter (5x5)

Salt and pepper noise Gaussian noise 3x3 5x5 7x7

Example: Noise Reduction Original image Image with noise Median filter (5x5)

Original Image

X-Edge Detection

Y-Edge Detection

General Edge Detection Can this be described as a convolution?

Image Processing Some operations preserve the range but change the domain of f : What kinds of operations can this perform? Still other operations operate on both the domain and the range of f.

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

Image Sub-Sampling 1/8 1/4 Throw away every other row and column to create a 1/2 size image - called image sub-sampling

Image Sub-Sampling 1/2 1/4 (2x zoom) 1/8 (4x zoom)

Good and Bad Sampling Good sampling: Sample often or, Sample wisely Bad sampling: see aliasing in action!

Aliasing

Alias: n., an assumed name Input signal: Picket fence receding into the distance will produce aliasing Matlab output: WHY? x = 0:.05:5; imagesc(sin((2.^x).*x)) Alias! Not enough samples

Really bad in video

Sub-Sampling with Gaussian Pre-Filtering G 1/4 G 1/8 Gaussian 1/2 Solution: filter the image, then subsample Filter size should double for each ½ size reduction. Why?

Sub-Sampling with Gaussian Pre-Filtering Gaussian 1/2 G 1/4 G 1/8

Compare with... 1/2 1/4 (2x zoom) 1/8 (4x zoom)

From Rick Matthews website, images by Dave Etchells Canon D60 (w/ anti-alias filter) Sigma SD9 (w/o anti-alias filter)

Figure from David Forsyth

Original Image

Warped Image

Warped Image + = orig vector field warped how?

Advection (just like a fluid)