Image Processing. Overview ImagesPixel Filters Neighborhood Filters Dithering.

Slides:



Advertisements
Similar presentations
CSCE 643 Computer Vision: Template Matching, Image Pyramids and Denoising Jinxiang Chai.
Advertisements

Spatial Filtering (Chapter 3)
Ted Adelson’s checkerboard illusion. Motion illusion, rotating snakes.
CS 4487/9587 Algorithms for Image Analysis
Computational Photography CSE 590 Tamara Berg Filtering & Pyramids.
1 Image filtering Hybrid Images, Oliva et al.,
Image Filtering, Part 2: Resampling Today’s readings Forsyth & Ponce, chapters Forsyth & Ponce –
Convolution, Edge Detection, Sampling : Computational Photography Alexei Efros, CMU, Fall 2006 Some slides from Steve Seitz.
Edges and Scale Today’s reading Cipolla & Gee on edge detection (available online)Cipolla & Gee on edge detection Szeliski – From Sandlot ScienceSandlot.
Image transformations, Part 2 Prof. Noah Snavely CS1114
Image Sampling Moire patterns
MSU CSE 803 Stockman Linear Operations Using Masks Masks are patterns used to define the weights used in averaging the neighbors of a pixel to compute.
Lecture 3: Edge detection, continued
1 Image Filtering Readings: Ch 5: 5.4, 5.5, 5.6,5.7.3, 5.8 (This lecture does not follow the book.) Images by Pawan SinhaPawan Sinha formal terminology.
Linear filtering. Overview: Linear filtering Linear filters Definition and properties Examples Gaussian smoothing Separability Applications Denoising.
CSCE 641 Computer Graphics: Fourier Transform Jinxiang Chai.
3-D Computer Vision – Ioannis Stamos 3-D Computer Vision CSc Image Processing I/Filtering.
Lecture 4: Image Resampling CS4670: Computer Vision Noah Snavely.
1 Image filtering Images by Pawan SinhaPawan Sinha.
CPSC 641 Computer Graphics: Fourier Transform Jinxiang Chai.
1 Images and Transformations Images by Pawan SinhaPawan Sinha.
Computational Photography: Fourier Transform Jinxiang Chai.
1 Image filtering Hybrid Images, Oliva et al.,
Slides from Alexei Efros, Steve Marschner Filters & fourier theory.
MSU CSE 803 Linear Operations Using Masks Masks are patterns used to define the weights used in averaging the neighbors of a pixel to compute some result.
Linear Filtering About modifying pixels based on neighborhood. Local methods simplest. Linear means linear combination of neighbors. Linear methods simplest.
Image Sampling Moire patterns -
Fourier Analysis : Rendering and Image Processing Alexei Efros.
Most slides from Steve Seitz
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean Hall 5409 T-R 10:30am – 11:50am.
Image Sampling CSE 455 Ali Farhadi Many slides from Steve Seitz and Larry Zitnick.
CSCE 441: Computer Graphics Image Filtering Jinxiang Chai.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5409 T-R 10:30am – 11:50am.
Image Resampling CS4670: Computer Vision Noah Snavely.
Lecture 3: Edge detection CS4670/5670: Computer Vision Kavita Bala From Sandlot ScienceSandlot Science.
CS654: Digital Image Analysis
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 15/16 – TP7 Spatial Filters Miguel Tavares Coimbra.
Visual Computing Computer Vision 2 INFO410 & INFO350 S2 2015
CS 691B Computational Photography
Projects Project 1a due this Friday Project 1b will go out on Friday to be done in pairs start looking for a partner now.
Last Lecture photomatix.com. Today Image Processing: from basic concepts to latest techniques Filtering Edge detection Re-sampling and aliasing Image.
Grauman Today: Image Filters Smooth/Sharpen Images... Find edges... Find waldo…
Non-linear filtering Example: Median filter Replaces pixel value by median value over neighborhood Generates no new gray levels.
Miguel Tavares Coimbra
Image Resampling & Interpolation
Many slides from Steve Seitz and Larry Zitnick
Image Sampling Moire patterns
Image transformations
Image Sampling Moire patterns
More Image Manipulation
Image filtering Images by Pawan Sinha.
CSCE 643 Computer Vision: Thinking in Frequency
Image Processing Today’s readings For Monday
Filtering Part 2: Image Sampling
Linear filtering.
Image Sampling Moire patterns
Basic Image Processing
Digital Image Processing Week IV
Most slides from Steve Seitz
Non-local Means Filtering
Image filtering
Image filtering
Linear Operations Using Masks
Spatial filtering 3x3 kernel Definition Transformation or set of
Image Resampling & Interpolation
Resampling.
Intensity Transformation
Most slides from Steve Seitz
Presentation transcript:

Image Processing

Overview ImagesPixel 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 “ vector- valued ” function:

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?

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 Processing

Point Operations

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

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

Gamma correction Γ = 1.0; f(v) = v Γ = 2.5; f(v) = v 1/2.5 = v 0.4 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

Neighborhood Operations

Convolution

Properties of Convolution Commutative Associative Cascade system

Convolution LSIS is doing convolution; convolution is linear and shift invariant kernel h

Convolution - Example Eric Weinstein’s Math World

Convolution - Example

Point Spread Function Optical System sceneimage Ideally, the optical system should be a Dirac delta function. Optical System point sourcepoint spread function However, optical systems are never ideal. Point spread function of Human Eyes

Point Spread Function normal visionmyopiahyperopia Images by Richmond Eye Associates astigmatism

Original Image

Shifted Image

Original Image

Blurred Image

Gaussian Smoothing by Charles Allen Gillbert by Harmon & Julesz

Gaussian Smoothing

Original Image

Sharpened Image

Original Image

Noise

Blurred Noise

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

Median Filter Can this be described as a convolution?

Original Image

Example: Noise Reduction Image with noiseMedian filter (5x5)

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

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

Original Image

X-Edge Detection

Y-Edge Detection

General Edge Detection Can this be described as a convolution?

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 Processing

Aliasing

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

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

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

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

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

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?

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

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

Aliasing

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

Figure from David Forsyth

Original Image

Warped Image

=+ origvector fieldwarped how?

Advection (just like a fluid)