Digital Image Processing Week IV

Slides:



Advertisements
Similar presentations
Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
Advertisements

Spatial Filtering (Chapter 3)
CS 4487/9587 Algorithms for Image Analysis
E.G.M. PetrakisFiltering1 Linear Systems Many image processing (filtering) operations are modeled as a linear system Linear System δ(x,y) h(x,y)
Lecture 4 Linear Filters and Convolution
Image Filtering CS485/685 Computer Vision Prof. George Bebis.
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.
3-D Computer Vision – Ioannis Stamos 3-D Computer Vision CSc Image Processing I/Filtering.
CS443: Digital Imaging and Multimedia Filters Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University Spring 2008 Ahmed Elgammal Dept.
1 Image filtering Images by Pawan SinhaPawan Sinha.
1 Images and Transformations Images by Pawan SinhaPawan Sinha.
1 Image filtering Hybrid Images, Oliva et al.,
Most slides from Steve Seitz
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean Hall 5409 T-R 10:30am – 11:50am.
Chapter 3 (cont).  In this section several basic concepts are introduced underlying the use of spatial filters for image processing.  Mainly spatial.
CS 376b Introduction to Computer Vision 02 / 26 / 2008 Instructor: Michael Eckmann.
Presentation Image Filters
Spatial Filtering: Basics
Digital Image Processing
HCI/ComS 575X: Computational Perception Instructor: Alexander Stoytchev
Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
Lecture 03 Area Based Image Processing Lecture 03 Area Based Image Processing Mata kuliah: T Computer Vision Tahun: 2010.
Image processing Fourth lecture Image Restoration Image Restoration: Image restoration methods are used to improve the appearance of an image.
Digital Image Processing Lecture 10: Image Restoration March 28, 2005 Prof. Charlene Tsai.
Chapter 5: Neighborhood Processing
CS 556 – Computer Vision Image Basics & Review. What is an Image? Image: a representation, resemblance, or likeness An image is a signal: a function carrying.
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
Digital Image Processing Lecture 10: Image Restoration
Spatial Filtering.
Ch5 Image Restoration CS446 Instructor: Nada ALZaben.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations.
Image Subtraction Mask mode radiography h(x,y) is the mask.
Intelligent Vision Systems ENT 496 Image Filtering and Enhancement Hema C.R. Lecture 4.
CSE 6367 Computer Vision Image Operations and Filtering “You cannot teach a man anything, you can only help him find it within himself.” ― Galileo GalileiGalileo.
Linear filtering. Motivation: Image denoising How can we reduce noise in a photograph?
CSE 185 Introduction to Computer Vision Image Filtering: Spatial Domain.
Lecture 1: Images and image filtering CS4670/5670: Intro to Computer Vision Noah Snavely Hybrid Images, Oliva et al.,
Filters– Chapter 6. Filter Difference between a Filter and a Point Operation is that a Filter utilizes a neighborhood of pixels from the input image to.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Image Enhancement in the Spatial Domain.
HCI/ComS 575X: Computational Perception Instructor: Alexander Stoytchev
Miguel Tavares Coimbra
Image Subtraction Mask mode radiography h(x,y) is the mask.
Basic Principles Photogrammetry V: Image Convolution & Moving Window:
Fundamentals of Spatial Filtering:
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Digital Image Processing Lecture 10: Image Restoration
Image Pre-Processing in the Spatial and Frequent Domain
ECE 692 – Advanced Topics in Computer Vision
Filtering – Part I Gokberk Cinbis Department of Computer Engineering
Digital Image Processing
Image Analysis Image Restoration.
- photometric aspects of image formation gray level images
Histogram Histogram is a graph that shows frequency of anything. Histograms usually have bars that represent frequency of occuring of data. Histogram has.
Fundamentals of Spatial Filtering
Image filtering Images by Pawan Sinha.
HCI / CprE / ComS 575: Computational Perception
Image filtering Images by Pawan Sinha.
Image Processing Today’s readings For Monday
Image filtering Images by Pawan Sinha.
Basic Image Processing
Most slides from Steve Seitz
Image filtering Images by Pawan Sinha.
Department of Computer Engineering
Lecture 2: Image filtering
Lecture 1: Images and image filtering
Intensity Transformation
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
Most slides from Steve Seitz
Lecture 7 Spatial filtering.
Presentation transcript:

Digital Image Processing Week IV Thurdsak LEAUHATONG

Neighborhood Processing Linear vs non-linear operation Neighborhood processing Define center point (x,y) Perform operations involving only pixels in the neighborhood Result of operation is response to process at that point Moving the pixel results in a new neighborhood Repeat process for every point in the image Spatial Filtering (Neighborhood Processing) Linear Spatial Filtering (Spatial Convolution, Correlation) Nonlinear Spatial Filtering

Linear Spatial Filtering Linear operation Multiply each pixel in the neighborhood by the corresponding coefficient and sum the results to get the response for each point (x,y) If neighborhood is m x n , then mn coefficients are required Coefficients are arranged in a matrix, called Filter Filter mask Kernel Template Mask sizes are typically odd sizes (3x3, 5x5, etc.) Larger the mask, greater the compute time

1-Dimensional Convolution Impulse Function, Signal Sampling Let (t) be a unit square function whose width is a. Impulse function d(t) is the unit square whose is zero. A function x(t) can be considered as a sequence of the impulse functions,

1-Dimensional Convolution Linear Time Invariant System and Convolution The impulse response of a system is the output signal when inputting the impulse function to the system. The time-invariant system is a system whose transformation does not depend on time.

1-Dimensional Convolution Linear Time Invariant System and Convolution Linear Transformation Properties T(x) = y, T(x1) = y1, T(x2) = y2 1. T(ax) = ay 2. T(a1x1 + a2x2) = a1y1 + a2y2 The output of the linear time-variant system is called convolution.

1-Dimensional Convolution Algorithm 3 Steps of computing the convolution 1. Flip the impulse response 2. Shift the impulse response 3. Compute the output

1-Dimensional Convolution Example Impulse Response sometime is called mask. In order to convolve at the start and end of x[k], zeros are padded.

2-Dimensional Convolution Example

Low Pass Filter Smoothing Linear Filter The output of the smoothing filter is the average of the pixels contained in the neighborhood of the filter mask (local mean). These filters are called average filter or box filter. The average filter is one of the low pass filter.

Low Pass Filter Smoothing Linear Filter In filter mask, some coefficients are more important than others. For example, such as the center coefficient. The weighted average filter is an average filter that the pixels are multiplied by different coefficients. The general implementation of the weighted average filter is given by follows.

Low Pass Filter Gaussian Filter The optimal smoothing filter for images should be localized in both the spatial and frequency domains. (D. Marr and E. Hildreth, “Theory of edge detection,” Proc. R. Soc. London B, vol. 207, no. 1167, pp. 187-217, Feb. 29, 1980.) The Gaussian filter is the only one smoothing filter which satisfies the above constraint.

Order Statistic (Nonlinear) Filters Salt and Pepper Noises Salt and pepper Noises are a form of noise typically seen on images. It represents itself as randomly occurring white (salt) and black (pepper) pixels. The salt and pepper noise cannot be removed by the linear filters such as average or Gaussian filter. Salt and Pepper noise Image Remove by using average filter Remove by using Gaussian filter

Order Statistic (Nonlinear) Filters Problems of Removing the Salt and Pepper Noises The intensities of the salt and pepper noise are the minimum and maximum intensities of the local histogram. In order to remove the noises, the output intensities must not be the minimum or maximum intensities. However, the noises cannot be removed by the local mean (average filter).

Order Statistic (Nonlinear) Filters Median Filter Local mean = (3+7+2+8+5+0+3+9+1)/9 = 4.22 Ascending sort the local intensities. 0 1 2 3 3 5 7 8 9 Local median = 3

Order Statistic (Nonlinear) Filters Median Filter Algorithm Local mean = (3+7+2+8+5+0+3+9+1)/9 = 4.22 Ascending sort the local intensities. 0 1 2 3 3 5 7 8 9 Local median = 3

Sorting Algorithm Bubble Sort { 5 1 4 2 8 } First Run { 5 1 4 2 8 } Swap(5, 1) { 1 5 4 2 8 } Swap(5, 4) { 1 4 5 2 8 } Swap(5, 2) { 1 4 2 5 8 } Not Swap(5, 8) Second Run { 1 4 2 5 8 } Not Swap(1, 4) { 1 4 2 5 8 } Swap(4, 2) { 1 2 4 5 8 } Not Swap(4, 5) { 1 2 4 5 8 } Not Swap(5, 8) Third Run { 1 2 4 5 8 } Not Swap(1, 2) { 1 2 4 5 8 } Not Swap(2, 4) { 1 2 4 5 8 } Not Swap(4, 5) { 1 2 4 5 8 } Not Swap(5, 8) Stop Run