Lecture 03 Area Based Image Processing Lecture 03 Area Based Image Processing Mata kuliah: T0283 - Computer Vision Tahun: 2010.

Slides:



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

Spatial Filtering (Chapter 3)
Motion illusion, rotating snakes. Slide credit Fei Fei Li.
E.G.M. PetrakisFiltering1 Linear Systems Many image processing (filtering) operations are modeled as a linear system Linear System δ(x,y) h(x,y)
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
Lecture 4 Linear Filters and Convolution
Image Filtering CS485/685 Computer Vision Prof. George Bebis.
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.
Computer Vision Introduction to Image formats, reading and writing images, and image environments Image filtering.
Lecture 1: Images and image filtering
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.
1 Image filtering Images by Pawan SinhaPawan Sinha.
Matlab Tutorial Continued Files, functions and images.
Image Analysis Preprocessing Arithmetic and Logic Operations Spatial Filters Image Quantization.
Linear filtering.
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.
Most slides from Steve Seitz
Chapter 3 (cont).  In this section several basic concepts are introduced underlying the use of spatial filters for image processing.  Mainly spatial.
Filtering Course web page: vision.cis.udel.edu/cv March 5, 2003  Lecture 9.
CS 376b Introduction to Computer Vision 02 / 26 / 2008 Instructor: Michael Eckmann.
Presentation Image Filters
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
Computer Vision – Enhancement(Part II) Hanyang University Jong-Il Park.
Spatial Filtering: Basics
Digital Image Processing Image Enhancement Part IV.
HCI/ComS 575X: Computational Perception Instructor: Alexander Stoytchev
Linear Filtering – Part I Selim Aksoy Department of Computer Engineering Bilkent University
EE663 Image Processing Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Image Processing Edge detection Filtering: Noise suppresion.
Chapter 5: Neighborhood Processing
Linear filtering. Motivation: Noise reduction Given a camera and a still scene, how can you reduce noise? Take lots of images and average them! What’s.
Lecture 5 Mask/Filter Transformation 1.The concept of mask/filters 2.Mathematical model of filtering Correlation, convolution 3.Smoother filters 4.Filter.
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
Spatial Filtering.
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.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Intelligent Vision Systems ENT 496 Image Filtering and Enhancement Hema C.R. Lecture 4.
Sejong Univ. CH3. Area Processes Convolutions Blurring Sharpening Averaging vs. Median Filtering.
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.
Image enhancement Last update Heejune Ahn, SeoulTech.
Lecture 04 Edge Detection Lecture 04 Edge Detection Mata kuliah: T Computer Vision Tahun: 2010.
Linear filtering. Motivation: Image denoising How can we reduce noise in a photograph?
Digital Filters. What are they?  Local operation (neighborhood operation in GIS terminology) by mask, window, or kernel (different words for the same.
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
CSE 185 Introduction to Computer Vision Image Filtering: Spatial Domain.
Grauman Today: Image Filters Smooth/Sharpen Images... Find edges... Find waldo…
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.
HCI/ComS 575X: Computational Perception Instructor: Alexander Stoytchev
Miguel Tavares Coimbra
Fundamentals of Spatial Filtering:
ECE 692 – Advanced Topics in Computer Vision
Filtering – Part I Gokberk Cinbis Department of Computer Engineering
Digital Image Processing
9th Lecture - Image Filters
Image filtering Images by Pawan Sinha.
Motion illusion, rotating snakes
Spatial operations and transformations
Basic Image Processing
Digital Image Processing Week IV
Department of Computer Engineering
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
Lecture 7 Spatial filtering.
Digital Filters.
Spatial operations and transformations
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Presentation transcript:

Lecture 03 Area Based Image Processing Lecture 03 Area Based Image Processing Mata kuliah: T Computer Vision Tahun: 2010

January 20, 2010T Computer Vision3 Learning Objectives After carefullylistening this lecture, students will be able to do the following : After carefully listening this lecture, students will be able to do the following : understand spatial information based image operation such as area-based processing understand spatial information based image operation such as area-based processing demonstrate how area-based image processing is performed (i.e. convolution-based image processing) demonstrate how area-based image processing is performed (i.e. convolution-based image processing)

January 20, 2010T Computer Vision4 What is a Mask ? A mask is a small matrix whose values are called weights Each mask has an origin, which is usually one of its positions The origin of symmetric masks are usually their center pixel position For non-symmetric masks, any pixel location may be chosen as the origin (depending on the intended use)

January 20, 2010T Computer Vision5 Linear filtering is filtering in which the value of an output pixel is a linear combination of the values of the pixels in the input pixel's neighborhood. Linear filtering of an image is accomplished through an operation called convolution. Convolution is a neighborhood operation in which each output pixel is the weighted sum of neighboring input pixels. The matrix of weights is called the convolution kernel, also known as the filter. Applying Masks to Images : Linear Filtering

January 20, 2010T Computer Vision6 Applying Masks to Images : Linear Filtering

January 20, 2010T Computer Vision7 Rotate the convolution kernel 180 degrees about its center element. Slide the center element of the convolution kernel so that it lies on top of the (2,4) element of A. Multiply each weight in the rotated convolution kernel by the pixel of A underneath. Sum the individual products from step 3. Hence the (2,4) output pixel is 1*2 + 8*9 + 15*4 + 7*7 + 14*5 + 16*3 + 13*6 + 20*1 + 22*8 = 575 Computing the (2,4) Output of Convolution

January 20, 2010T Computer Vision8 Computing the (2,4) Output of Convolution Image pixel values Center of Kernel Values of rotated Kernel

January 20, 2010T Computer Vision9 Slide the center element of the correlation kernel so that it lies on top of the (2,4) element of A. Multiply each weight in the rotated correlation kernel by the pixel of A underneath. Sum the individual products from step 2. Hence the (2,4) output pixel is 1*8 + 8*1 + 15*6 + 7*3 + 14*5 + 16*7+ 13*4 + 20*9 + 22*2 = 585 1*8 + 8*1 + 15*6 + 7*3 + 14*5 + 16*7+ 13*4 + 20*9 + 22*2 = 585 Computing the (2,4) Output of Correlation

January 20, 2010T Computer Vision Image pixel values Center of Kernel Values of Correlation Kernel Computing the (2,4) Output of Correlation

January 20, 2010T Computer Vision11 Dealing with Image Borders Only convolve with interior Shrinks image Zero-padding Results in spurious gradients Border replication

January 20, 2010T Computer Vision12 Filtering Example How to treat image borders : Zero Padding Rotate

January 20, 2010T Computer Vision Step 1

January 20, 2010T Computer Vision14 Step 2

January 20, 2010T Computer Vision Step 3

January 20, 2010T Computer Vision Step 4

January 20, 2010T Computer Vision Step 5

January 20, 2010T Computer Vision18 Final Result I’I’I

January 20, 2010T Computer Vision19 Smoothing (Low Pass Filtering) Useful for noise reduction and image blurring It removes the finer details of an image Averaging or Mean (Box) Filter The elements of the mask must be positive The size of the mask determines the degree of smoothing x 3 box filter kernel

January 20, 2010T Computer Vision20 Gaussian Filter (LPF) The weights are sampled from a Gaussian function which fall off to zero at the mask’s edges x 5,  = 1

January 20, 2010T Computer Vision21 Gaussian Filter (cont’d) Gaussian smoothing can be implemented efficiently, thanks to the fact that the kernel is separable

January 20, 2010T Computer Vision22 To convolve an image I with a n x n Gaussian mask G with  =  G Build a 1-D Gaussian mask g, of width n, with  g  =  G Convolve each column of I with g, yielding a ne image I c Convolve each row of I c with g The value of  determines degree of smoothing Gaussian Filter (cont’d)

January 20, 2010T Computer Vision23 Gaussian Filter (examples)  = 1  = 3 7 x 7 kernel Original imageBox filter

January 20, 2010T Computer Vision24 Median Filter (non-linear) Effective for removing “salt & pepper” noise (random occurences of black & white pixels) Replace each pixel value by the median of the gray-levels in the neighborhood of the pixels sort median

January 20, 2010T Computer Vision25 Median Filter (non-linear)

January 20, 2010T Computer Vision26 Median Filter (non-linear)

January 20, 2010T Computer Vision27 Sharpening (High Pass Filtering) It is used to emphasize the fine details of an image Points of high contrast can be detected by computing intensity differences in local image regions The weights of the mask are both positive and negative When the mask is over an area of constant or slowly varying gray level, the result of convolution will be close to zero When gray level is varying rapidly within the neighborhood, the result of convolution will be a large number Typically, such points form the border between different objects or scene parts (i.e., sharpening is a precursor step to edge detection

January 20, 2010T Computer Vision28 Sharpening (cont’d)