Digital Image Processing. Lecture 5 (Enhancement) Bu-Ali Sina University Computer Engineering Dep. Fall 2009

Similar documents
Filtering in the spatial domain (Spatial Filtering)

Digital Image Processing. Digital Image Fundamentals II 12 th June, 2017

Image Enhancement using Histogram Equalization and Spatial Filtering

Practical Image and Video Processing Using MATLAB

Image Enhancement in spatial domain. Digital Image Processing GW Chapter 3 from Section (pag 110) Part 2: Filtering in spatial domain

Digital Image Processing

CoE4TN4 Image Processing. Chapter 3: Intensity Transformation and Spatial Filtering

Image Enhancement in the Spatial Domain Low and High Pass Filtering

1.Discuss the frequency domain techniques of image enhancement in detail.

Image Enhancement: Histogram Based Methods

CSE 564: Scientific Visualization

Motivation: Image denoising. How can we reduce noise in a photograph?

LAB MANUAL SUBJECT: IMAGE PROCESSING BE (COMPUTER) SEM VII

Digital Image Processing

TDI2131 Digital Image Processing

Achim J. Lilienthal Mobile Robotics and Olfaction Lab, AASS, Örebro University

Image Processing for feature extraction

2D Discrete Fourier Transform

Chapter 2 Image Enhancement in the Spatial Domain

Images and Filters. EE/CSE 576 Linda Shapiro

Robert Collins CSE486, Penn State. Lecture 3: Linear Operators

Digital Image Processing

Image Enhancement II: Neighborhood Operations

Motivation: Image denoising. How can we reduce noise in a photograph?

Lecture 3: Linear Filters

Table of contents. Vision industrielle 2002/2003. Local and semi-local smoothing. Linear noise filtering: example. Convolution: introduction

Midterm is on Thursday!

Prof. Vidya Manian Dept. of Electrical and Comptuer Engineering

IMAGE ENHANCEMENT IN SPATIAL DOMAIN

Numerical Derivatives See also T&V, Appendix A.2 Gradient = vector of partial derivatives of image I(x,y) = [di(x,y)/dx, di(x,y)/dy]

Non Linear Image Enhancement

Prof. Feng Liu. Winter /10/2019

CS 4501: Introduction to Computer Vision. Filtering and Edge Detection

CoE4TN4 Image Processing. Chapter 4 Filtering in the Frequency Domain

CS534 Introduction to Computer Vision. Linear Filters. Ahmed Elgammal Dept. of Computer Science Rutgers University

Fourier Transforms and the Frequency Domain

ELEC Dr Reji Mathew Electrical Engineering UNSW

IMAGE PROCESSING: AREA OPERATIONS (FILTERING)

Image Filtering. Reading Today s Lecture. Reading for Next Time. What would be the result? Some Questions from Last Lecture

Matlab (see Homework 1: Intro to Matlab) Linear Filters (Reading: 7.1, ) Correlation. Convolution. Linear Filtering (warm-up slide) R ij

Overview. Neighborhood Filters. Dithering

Filtering. Image Enhancement Spatial and Frequency Based

Digital Image Processing. Lecture # 4 Image Enhancement (Histogram)

Summary of Lecture 7

CAP 5415 Computer Vision. Marshall Tappen Fall Lecture 1

Image filtering, image operations. Jana Kosecka

Filtering Images in the Spatial Domain Chapter 3b G&W. Ross Whitaker (modified by Guido Gerig) School of Computing University of Utah

Image acquisition. Midterm Review. Digitization, line of image. Digitization, whole image. Geometric transformations. Interpolation 10/26/2016

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

Digital Image Fundamentals and Image Enhancement in the Spatial Domain

Chapter 6. [6]Preprocessing

Frequency Domain Enhancement

Part I Feature Extraction (1) Image Enhancement. CSc I6716 Spring Local, meaningful, detectable parts of the image.

Digital Image Processing

Image Filtering in Spatial domain. Computer Vision Jia-Bin Huang, Virginia Tech

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

CEE598 - Visual Sensing for Civil Infrastructure Eng. & Mgmt.

Image Processing. Adam Finkelstein Princeton University COS 426, Spring 2019

Spatial Domain Processing and Image Enhancement

Announcements. Image Processing. What s an image? Images as functions. Image processing. What s a digital image?

TDI2131 Digital Image Processing (Week 4) Tutorial 3

Color Transformations

Image restoration and color image processing

Computing for Engineers in Python

Digital Image Processing 3/e

CS/ECE 545 (Digital Image Processing) Midterm Review

Image De-noising Using Linear and Decision Based Median Filters

Image Filtering. Median Filtering

PARAMETRIC ANALYSIS OF IMAGE ENHANCEMENT TECHNIQUES

Lecture No Image Filtering (course: Computer Vision)

PRACTICAL IMAGE AND VIDEO PROCESSING USING MATLAB

What is image enhancement? Point operation

Introduction. Computer Vision. CSc I6716 Fall Part I. Image Enhancement. Zhigang Zhu, City College of New York

EE482: Digital Signal Processing Applications

Chapter 3 Image Enhancement in the Spatial Domain. Chapter 3 Image Enhancement in the Spatial Domain

VU Signal and Image Processing. Image Enhancement. Torsten Möller + Hrvoje Bogunović + Raphael Sahann

Color Space 1: RGB Color Space. Color Space 2: HSV. RGB Cube Easy for devices But not perceptual Where do the grays live? Where is hue and saturation?

Reading Instructions Chapters for this lecture. Computer Assisted Image Analysis Lecture 2 Point Processing. Image Processing

Filip Malmberg 1TD396 fall 2018 Today s lecture

Lecture 4: Spatial Domain Processing and Image Enhancement

Sampling and reconstruction. CS 4620 Lecture 13

Last Lecture. Lecture 2, Point Processing GW , & , Ida-Maria Which image is wich channel?

8.2 IMAGE PROCESSING VERSUS IMAGE ANALYSIS Image processing: The collection of routines and

Analysis of infrared images in integrated-circuit techniques by mathematical filtering

Subband coring for image noise reduction. Edward H. Adelson Internal Report, RCA David Sarnoff Research Center, Nov

Module 3 : Sampling and Reconstruction Problem Set 3

Sampling and reconstruction

Stochastic Image Denoising using Minimum Mean Squared Error (Wiener) Filtering

Keywords Fuzzy Logic, ANN, Histogram Equalization, Spatial Averaging, High Boost filtering, MSE, RMSE, SNR, PSNR.

Image features: Histograms, Aliasing, Filters, Orientation and HOG. D.A. Forsyth

Image Processing. Adrien Treuille

TDI2131 Digital Image Processing

Advanced Digital Signal Processing Part 2: Digital Processing of Continuous-Time Signals

Sampling and Reconstruction

Image analysis. CS/CME/BioE/Biophys/BMI 279 Oct. 31 and Nov. 2, 2017 Ron Dror

Motion illusion, rotating snakes

NON UNIFORM BACKGROUND REMOVAL FOR PARTICLE ANALYSIS BASED ON MORPHOLOGICAL STRUCTURING ELEMENT:

Head, IICT, Indus University, India

IDENTIFICATION OF FISSION GAS VOIDS. Ryan Collette

1. (a) Explain the process of Image acquisition. (b) Discuss different elements used in digital image processing system. [8+8]

Transcription:

Digital Image Processing Lecture 5 (Enhancement) Bu-Ali Sina University Computer Engineering Dep. Fall 2009

Outline Image Enhancement in Spatial Domain Histogram based methods Histogram Equalization Local Histogram Spatial Filtering Smoothing Filters Median Filter Sharpening High Boost filter Derivative filter

o Histogram equalization yields an image whose pixels are (in theory) uniformly distributed among all graylevels. o Sometimes, this may not be desirable. Instead, we may want a transformation that yields an output image with a prespecified histogram. This technique is called histogram specification. o Again, we will assume, for the moment, continuous grayvalues. o Suppose, the input image has probability density. We want to find a transformation z = H(r), such that the probability density of the new image obtained by this transformation is, which is not necessarily uniform. o First apply the transformation o This gives an image with a uniform probability density. o If the desired output image were available, then the following transformation would generate an image with uniform density:

oit then follows from these two equations that G(z)=T(r) and, therefore, that z must satisfy the condition o For discrete graylevels, we have :

Example : Consider the previous 8-graylevel 64 x 64 image histogram:

It is desired to transform this image into a new image, using a transformation, with histogram as specified below:

The transformation T(r) was obtained earlier (reproduced below):

Next we compute the transformation G as before :

Notice that G is not invertible. But we will do the best possible by setting :

Combining the two transformation T and G-1, we get our required transformation H :

Applying the transformation H to the original image yields an image with histogram as below:

Again, the actual histogram of the output image does not exactly but only approximately matches with the specified histogram. This is because we are dealing with discrete histograms.

Example :

Spatial Filtering Image enhancement in the spatial domain can be represented as: The transformation T maybe linear or nonlinear. We will mainly study linear operators T but will see one important nonlinear operation. How to specify T If the operator T is linear and shift invariant (LSI), characterized by the point-spread sequence (PSS) h(m, n), then (recall convolution):

Chapter 3: Image Enhancement (Spatial Filtering) Spatial Filtering In practice, to reduce computations, h(m, n) is of finite extent: where is a small set (called neighborhood). is also called as the support of h. In the frequency domain, this can be represented as: where H (u,v) e and F (u,v) e are obtained after appropriate zeropadding. Many LSI operations can be interpreted in the frequency domain as a filtering operation. It has the effect of filtering frequency components (passing certain frequency components and stopping others). The term filtering is generally associated with such operations.

Chapter 3: Image Enhancement (Spatial Filtering) Spatial Filtering Examples of some common filters (1-D case):

Chapter 3: Image Enhancement (Spatial Filtering) Spatial Filtering

Chapter 3: Image Enhancement (Spatial Filtering) Spatial Filtering If h(m, n) is a 3 by 3 mask given by :

Chapter 3: Image Enhancement (Spatial Filtering) Spatial Filtering The output g(m, n) is computed by sliding the mask over each pixel of the image f(m, n). This filtering procedure is sometimes referred to as moving average filter. Special care is required for the pixels at the border of image f(m, n). This depends on the so-called boundary condition. Common choices are: The mask is truncated at the border (free boundary) The image is extended by appending extra rows/columns at the boundaries. The extension is done by repeating the first/last row/column or by setting them to some constant (fixed boundary). The boundaries wrap around (periodic boundary). In any case, the final output g(m, n) is restricted to the support of the original image f(m, n). The mask operation can be implemented in matlab using the filter2 command, which is based on the conv2 command.

Chapter 3: Image Enhancement (Spatial Filtering) Spatial Filtering- Smoothing Filters o Image smoothing refers to any image-to-image transformation designed to smooth or flatten the image by reducing the rapid pixel-to-pixel variation in grayvalues. o Smoothing filters are used for: o Blurring: This is usually a preprocessing step for removing small (unwanted) details before extracting the relevant (large) object, bridging gaps in lines/curves, o oise reduction: Mitigate the effect of noise by linear or nonlinear operations. o Image smoothing by averaging (lowpass spatial filtering) o Smoothing is accomplished by applying an averaging mask. o An averaging mask is a mask with positive weights, which sum to 1. It computes a weighted average of the pixel values in a neighborhood. This operation is sometimes called neighborhood averaging.

Chapter 3: Image Enhancement (Spatial Filtering) Spatial Filtering- Smoothing Filters Some 3 x 3 averaging masks:

Chapter 3: Image Enhancement (Spatial Filtering) Spatial Filtering- Smoothing Filters This operation is equivalent to lowpass filtering. Example of Image Blurring

Chapter 3: Image Enhancement (Spatial Filtering) Spatial Filtering- Smoothing Filters

Chapter 3: Image Enhancement (Spatial Filtering) Spatial Filtering- Smoothing Filters Example of noise reduction :