Image Enhancement in the Spatial Domain.

Slides:



Advertisements
Similar presentations
Spatial Filtering (Chapter 3)
Advertisements

Image Processing Lecture 4
CS & CS Multimedia Processing Lecture 2. Intensity Transformation and Spatial Filtering Spring 2009.
Spatial Filtering.
Local Enhancement Histogram processing methods are global processing, in the sense that pixels are modified by a transformation function based on the gray-level.
Chapter 3 Image Enhancement in the Spatial Domain.
Lecture 6 Sharpening Filters
Digital Image Processing
ECE 472/572 - Digital Image Processing
Image Enhancement in the Spatial Domain II Jen-Chang Liu, 2006.
Image Enhancement in the Spatial Domain
Digital Image Processing
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
Digital Image Processing
Chapter 3: Image Enhancement in the Spatial Domain
ECE 472/572 - Digital Image Processing Lecture 5 - Image Enhancement - Frequency Domain Filters 09/13/11.
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.
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.
Digital Image Processing Chapter 4: Image Enhancement in the Frequency Domain.
Digital Image Processing
1 Vladimir Botchko Lecture 4. Image Enhancement Lappeenranta University of Technology (Finland)
Image Analysis Preprocessing Arithmetic and Logic Operations Spatial Filters Image Quantization.
Lecture 2. Intensity Transformation and Spatial Filtering
Chapter 3 Image Enhancement in the Spatial Domain.
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.
Chap2 Image enhancement (Spatial domain)
Introduction to Image Processing Grass Sky Tree ? ? Review.
Presentation Image Filters
Spatial Filtering: Basics
Medical Image Analysis Image Enhancement Figures come from the textbook: Medical Image Analysis, by Atam P. Dhawan, IEEE Press, 2003.
Digital Image Processing Image Enhancement Part IV.
Chapter 3 Image Enhancement in the Spatial Domain.
EE663 Image Processing Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Intensity Transformations or Translation in Spatial Domain.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods  Process an image so that the result will be more suitable.
Spatial Filtering.
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 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.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Lecture Reading  3.1 Background  3.2 Some Basic Gray Level Transformations Some Basic Gray Level Transformations  Image Negatives  Log.
EE 7730 Image Enhancement. Bahadir K. Gunturk2 Image Enhancement The objective of image enhancement is to process an image so that the result is more.
Digital Image Processing Image Enhancement in Spatial Domain
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter.
Image Enhancement by Spatial Domain Filtering
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
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
IMAGE ENHANCEMENT TECHNIQUES
ECE 692 – Advanced Topics in Computer Vision
Image Enhancement.
Digital Image Processing
Fundamentals of Image Processing A Seminar on By Alok K. Watve
CIS 350 – 3 Image ENHANCEMENT SPATIAL DOMAIN
Image Enhancement in the Spatial Domain
Lecture 3 (2.5.07) Image Enhancement in Spatial Domain
Geometric and Point Transforms
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Linear Operations Using Masks
CIS 4350 Image ENHANCEMENT SPATIAL DOMAIN
Introduction to Mathematical tools in used in DIP
Image Enhancement in the Spatial Domain
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Presentation transcript:

Image Enhancement in the Spatial Domain

Image Enhancement in the Spatial Domain The spatial domain: The image plane For a digital image is a Cartesian coordinate system of discrete rows and columns. At the intersection of each row and column is a pixel. Each pixel has a value, which we will call intensity. The frequency domain : A (2-dimensional) discrete Fourier transform of the spatial domain We will discuss it in chapter 4. Enhancement : To “improve” the usefulness of an image by using some transformation on the image. Often the improvement is to help make the image “better” looking, such as increasing the intensity or contrast.

Background A mathematical representation of spatial domain enhancement: where f(x, y): the input image g(x, y): the processed image T: an operator on f, defined over some neighborhood of (x, y)

Gray-level Transformation

Some Basic Gray Level Transformations

Image Negatives Let the range of gray level be [0, L-1], then

Log Transformations where c : constant

Power-Law Transformation where c, : positive constants

Power-Law Transformation Example 2: Gamma Correction

Piecewise-Linear Transformation Functions Case 1: Contrast Stretching

Piecewise-Linear Transformation Functions Case 2:Gray-level Slicing An image Result of using the transformation in (a)

Piecewise-Linear Transformation Functions Case 3:Bit-plane Slicing It can highlight the contribution made to total image appearance by specific bits. Each pixel in an image represented by 8 bits. Image is composed of eight 1-bit planes, ranging from bit-plane 0 for the least significant bit to bit plane 7 for the most significant bit.

Piecewise-Linear Transformation Functions Bit-plane Slicing: A Fractal Image

Piecewise-Linear Transformation Functions Bit-plane Slicing: A Fractal Image 7 6 5 4 3 2 1

Enhancement Using Arithmetic/Logic Operations Two images of the same size can be combined using operations of addition, subtraction, multiplication, division, logical AND, OR, XOR and NOT. Such operations are done on pairs of their corresponding pixels. Often only one of the images is a real picture while the other is a machine generated mask. The mask often is a binary image consisting only of pixel values 0 and 1. Example: Figure 3.27

Enhancement Using Arithmetic/Logic Operations AND OR

Image Subtraction Example 1

Image Subtraction Example 2 When subtracting two images, negative pixel values can result. So, if you want to display the result it may be necessary to readjust the dynamic range by scaling.

A noisy image g(x,y) can be defined by Image Averaging When taking pictures in reduced lighting (i.e., low illumination), image noise becomes apparent. A noisy image g(x,y) can be defined by where f (x, y): an original image : the addition of noise One simple way to reduce this granular noise is to take several identical pictures and average them, thus smoothing out the randomness.

Noise Reduction by Image Averaging Example: Adding Gaussian Noise Figure 3.30 (a): An image of Galaxy Pair NGC3314. Figure 3.30 (b): Image corrupted by additive Gaussian noise with zero mean and a standard deviation of 64 gray levels. Figure 3.30 (c)-(f): Results of averaging K=8,16,64, and 128 noisy images.

Noise Reduction by Image Averaging Example: Adding Gaussian Noise Figure 3.31 (a): From top to bottom: Difference images between Fig. 3.30 (a) and the four images in Figs. 3.30 (c) through (f), respectively. Figure 3.31 (b): Corresponding histogram.

Basics of Spatial Filtering In spatial filtering (vs. frequency domain filtering), the output image is computed directly by simple calculations on the pixels of the input image. Spatial filtering can be either linear or non-linear. For each output pixel, some neighborhood of input pixels is used in the computation. In general, linear filtering of an image f of size MXN with a filter mask of size mxn is given by where a=(m-1)/2 and b=(n-1)/2 This concept called convolution. Filter masks are sometimes called convolution masks or convolution kernels.

Basics of Spatial Filtering

Basics of Spatial Filtering Nonlinear spatial filtering usually uses a neighborhood too, but some other mathematical operations are use. These can include conditional operations (if …, then…), statistical (sorting pixel values in the neighborhood), etc. Because the neighborhood includes pixels on all sides of the center pixel, some special procedure must be used along the top, bottom, left and right sides of the image so that the processing does not try to use pixels that do not exist.

Smoothing Spatial Filters Smoothing linear filters Averaging filters (Lowpass filters in Chapter 4)) Box filter Weighted average filter Box filter Weighted average

Smoothing Spatial Filters The general implementation for filtering an MXN image with a weighted averaging filter of size mxn is given by where a=(m-1)/2 and b=(n-1)/2

Smoothing Spatial Filters Image smoothing with masks of various sizes

Smoothing Spatial Filters Another Example

Order-Statistic Filters Median filter: to reduce impulse noise (salt-and-pepper noise)

Sharpening Spatial Filters Sharpening filters are based on computing spatial derivatives of an image. The first-order derivative of a one-dimensional function f(x) is The second-order derivative of a one-dimensional function f(x) is

Use of Second Derivatives for Enhancement The Laplacian Development of the Laplacian method The two dimensional Laplacian operator for continuous functions: The Laplacian is a linear operator.

Use of Second Derivatives for Enhancement The Laplacian

Use of Second Derivatives for Enhancement The Laplacian To sharpen an image, the Laplacian of the image is subtracted from the original image. Example: Figure 3.40

Use of Second Derivatives for Enhancement The Laplacian: Simplifications The g(x,y) mask Not only

Use of First Derivatives for Enhancement The Gradient Development of the Gradient method The gradient of function f at coordinates (x,y) is defined as the two-dimensional column vector: The magnitude of this vector is given by

Use of First Derivatives for Enhancement The Gradient Roberts cross-gradient operators Sobel operators

Use of First Derivatives for Enhancement The Gradient: Using Sobel Operators

Combining Spatial Enhancement Methods

Combining Spatial Enhancement Methods