Image Pre-Processing Image pre-processing (předzpracování obrazu) –transformations of the input image leading to noise reduction, image improvement or.

Slides:



Advertisements
Similar presentations
Spatial Filtering (Chapter 3)
Advertisements

Topic 6 - Image Filtering - I DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Image Processing Lecture 4
CS & CS Multimedia Processing Lecture 2. Intensity Transformation and Spatial Filtering Spring 2009.
Image Filtering. Outline Outline Concept of image filter  Focus on spatial image filter Various types of image filter  Smoothing, noise reductions 
Chapter 3 Image Enhancement in the Spatial Domain.
Image processing (spatial &frequency domain) Image processing (spatial &frequency domain) College of Science Computer Science Department
© by Yu Hen Hu 1 ECE533 Digital Image Processing Image Enhancement in Frequency Domain.
CS 4487/9587 Algorithms for Image Analysis
EE4H, M.Sc Computer Vision Dr. Mike Spann
Digital Image Processing
Digital image processing Chapter 6. Image enhancement IMAGE ENHANCEMENT Introduction Image enhancement algorithms & techniques Point-wise operations Contrast.
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
Chapter 3: Image Enhancement in the Spatial Domain
Image Enhancement To process an image so that the result is more suitable than the original image for a specific application. Spatial domain methods and.
6/9/2015Digital Image Processing1. 2 Example Histogram.
Image Filtering CS485/685 Computer Vision Prof. George Bebis.
Image processing. Image operations Operations on an image –Linear filtering –Non-linear filtering –Transformations –Noise removal –Segmentation.
Machine Vision and Dig. Image Analysis 1 Prof. Heikki Kälviäinen CT50A6100 Lectures 6&7: Image Enhancement Professor Heikki Kälviäinen Machine Vision and.
2007Theo Schouten1 Enhancements Techniques for editing an image such that it is more suitable for a specific application than the original image. Spatial.
MSU CSE 803 Stockman Fall 2009 Vectors [and more on masks] Vector space theory applies directly to several image processing/representation problems.
Digital Image Processing
7. Neighbourhood operations A single pixel considered in isolation conveys information on the intensity and colour at a single location in an image, but.
1 MSU CSE 803 Fall 2014 Vectors [and more on masks] Vector space theory applies directly to several image processing/representation problems.
Lecture 2. Intensity Transformation and Spatial Filtering
Chapter 3 Image Enhancement in the Spatial Domain.
Basic Image Processing January 26, 30 and February 1.
ECE 472/572 - Digital Image Processing Lecture 4 - Image Enhancement - Spatial Filter 09/06/11.
Chapter 3 (cont).  In this section several basic concepts are introduced underlying the use of spatial filters for image processing.  Mainly spatial.
Chapter 2. Image Analysis. Image Analysis Domains Frequency Domain Spatial Domain.
Presentation Image Filters
Spatial-based Enhancements Lecture 3 prepared by R. Lathrop 10/99 updated 10/03 ERDAS Field Guide 6th Ed. Ch 5: ;
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
Spatial Filtering: Basics
Effective Computation of Linear Filters The following properties are used to shorten the computation time f  g = g  f, f  (g  h) = (f  g)  h, f 
Chapter 3 Image Enhancement in the Spatial Domain.
Filtering and Enhancing Images. Major operations 1. Matching an image neighborhood with a pattern or mask 2. Convolution (FIR filtering)
Chapter 5: Neighborhood Processing
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
Image Enhancement ارتقاء تصویر Enhancement Spatial Domain Frequency Domain.
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.
COMP322/S2000/L171 Robot Vision System Major Phases in Robot Vision Systems: A. Data (image) acquisition –Illumination, i.e. lighting consideration –Lenses,
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.
Digital Image Processing EEE415 Lecture 3
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.
Non-linear Filters Non-linear filter (nelineární filtr) –spatial non-linear operator that produces the output image array g(x,y) from the input image array.
İmage enhancement Prepare image for further processing steps for specific applications.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities May 2, 2005 Prof. Charlene Tsai.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Digital Image Processing Image Enhancement in Spatial Domain
Digital Image Processing Lecture - 6 Autumn 2009.
Image Enhancement by Spatial Domain Filtering
Non-linear filtering Example: Median filter Replaces pixel value by median value over neighborhood Generates no new gray levels.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Image Enhancement in the Spatial Domain.
Miguel Tavares Coimbra
Image Subtraction Mask mode radiography h(x,y) is the mask.
Fundamentals of Spatial Filtering:
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Image Pre-Processing in the Spatial and Frequent Domain
ECE 692 – Advanced Topics in Computer Vision
Image Processing - in short
Fundamentals of Spatial Filtering
Lecture 3 (2.5.07) Image Enhancement in Spatial Domain
Digital Image Processing Week IV
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
Image Enhancement in the Spatial Domain
Presentation transcript:

Image Pre-Processing Image pre-processing (předzpracování obrazu) –transformations of the input image leading to noise reduction, image improvement or preparation of the image for subsequent image analysis Image pre-processing operations –Spatial domain Point transforms Linear filters Non-linear filters –Frequency domain Filters in frequency domain

Point Transforms Point transform (bodová transformace) –a pixel by pixel transformation of the image array in spatial domain Position-dependent point transform g(x,y) =  ( f(x,y), x, y)  :    –Compensation for uneven illumination –Compensation for uneven dark charge of CCD pixels Position-independent point transform g(x,y) =  ( f(x,y))  :  –Change of image brightness:  (x) = x + k –Change of image contrast:  (x) = any function of x, for example:  (x) = k x,  (x) = k x n,  (x) = k log(x),  (x) = k exp(x)

Position-independent Point Transforms Look-up table (LUT) –Usually  (x) is pre-computed, the table of its values is called look-up- table (LUT). The LUT is 1D array of values. The size of this array is determined by the bit depth of the image (256 values for 8-bit image, 4096 values for 12-bit image, etc.). Intensity histogram –The best way to choose  (x) is to look at the intensity histogram of the given image. Intensity histogram is a 2D plot where x-axis represents intensity (e.g for 8-bit image) and y-axis represents the number of pixels in the image having the corresponding intensity.

Position-independent Point Transforms Example of the influence of point transform (contrast change) on the intensity histogram for  (x) = 4 x

Other Intensity Histogram Examples Under- and over-exposed image (pod- a pře-exponovaný obraz)

Filters Filter (filtr) –a position-independent operator that transforms the image Filter in spatial domain (filtr v prostorové doméně) –spatial operator that produces the output image array g(x,y) from the input image array f(x,y) Filter in frequency domain (filtr ve frekvenční doméně) –frequency operator that produces the output image spectrum  (x,y) from the input image spectrum  (x,y) Low-pass filter (nízkofrekvenční filtr) –a filter that keeps low frequencies and suppresses the high ones High-pass filter (vysokofrekvenční filtr) –a filter that keeps high frequencies and suppresses the low ones

Linear Filters Linear filter (lineární filtr) –spatial linear operator that produces the output image array g(x,y) from the input image array f(x,y) in the following way: g(x 0,y 0 ) is obtained by a linear combination of pixels of the input image array f(x,y) within a neighbourhood of pixel (x 0,y 0 ). n=m=1: 3x3 neighbourhood n=m=2: 5x5 neighbourhood n=m=3: 7x7 neighbourhood

Linear Filters Convolution kernel (konvoluční jádro) –The function h(a,b) is called convolution kernel. –The function h(a,b) is usually symmetric: h(a,b) = h(-a,b) = h(a,-b) = h(-a,-b). –The values of the function h(a,b) usually depend on radius: –The function h(a,b) is specified as a matrix H. –If n=m then the matrix H is square. g(x,y) = F(x,y) * H F(x,y) – matrix of neighbours of pixel (x,y) H – convolution kernel * – scalar matrix multiplication (defined in the same way as scalar vector multiplication)

Linear Filters Principle of linear filtering using a 3x3 convolution kernel –The intensity value at position (m,n) is replaced by the sum of nine numbers, where each number is obtained by multiplication of the number in matrix with the intensity value „behind“ this number. –This process (nine multiplications plus eight additions) must be performed for each position in the image, i.e. all values of m and n.

Linear Filters Problem with linear image filtering –Image convolution can be realised by scanning the convolution mask line by line over the image. At the shaded pixels the intensity value has already been replaced by the convolution sum. Thus the intensity values at the shaded pixels falling within the filter mask need to be stored in an extra buffer!

Smoothing Linear Filters Smoothing (vyhlazování) –elimination of high frequencies –usually performed using averaging (either weighted or non-weighted) Example: Smoothing using average 3x3 filters non-weighted weighted weighted

Smoothing Linear Filters Gaussian filter (Gaussův filtr) –the best smoothing filter

Smoothing Linear Filters Example of Gaussian filtering with different values of  Original  = 1  = 2  = 4

Edge Detection Linear Filters Edge detection (detekce hran) –usually performed using linear filters simulating 1 st or 2 nd derivative –can be used for edge enhancement or object boundaries reconstruction Sobel filter –approximates the first derivative of the image –the basic kernels are (1,-1) or (1,0,-1) –mostly 3x3 kernel is used with the sum of coefficients equal to 0 –results for several 3x3 kernels can be averaged –there are 8 possibilities of the following type: –often used after Gaussian filter (so called derivative of Gaussian – DroG)

Edge Detection Linear Filters Laplacian filter –approximates the second derivative of the image –the basic kernel is (1,-2,1) –mostly 3x3 kernel is used with the sum of coefficients equal to 0 –two basic types of 3x3 kernel are used, others are possible: –often used after Gaussian filter (so called Laplacian of Gaussian – LoG = Mexican hat filter)