Digital Image Procesing

Similar documents
Image Processing. Traitement d images. Yuliya Tarabalka Tel.

Image Processing. BITS Pilani. Dr Jagadish Nayak. Dubai Campus

Ulrik Söderström 16 Feb Image Processing. Segmentation

Filtering and Enhancing Images

Neighborhood operations

Outlines. Medical Image Processing Using Transforms. 4. Transform in image space

Digital Image Processing. Image Enhancement - Filtering

Babu Madhav Institute of Information Technology Years Integrated M.Sc.(IT)(Semester - 7)

Linear Operations Using Masks

JNTUWORLD. 4. Prove that the average value of laplacian of the equation 2 h = ((r2 σ 2 )/σ 4 ))exp( r 2 /2σ 2 ) is zero. [16]

Chapter 10 Image Segmentation. Yinghua He

CS 490: Computer Vision Image Segmentation: Thresholding. Fall 2015 Dr. Michael J. Reale

Image Enhancement in Spatial Domain (Chapter 3)

Lecture 6: Edge Detection

Digital Image Processing. Prof. P. K. Biswas. Department of Electronic & Electrical Communication Engineering

Computer Vision. Image Segmentation. 10. Segmentation. Computer Engineering, Sejong University. Dongil Han

CHAPTER 3 IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN

Lecture 7: Most Common Edge Detectors

Topic 4 Image Segmentation

EECS490: Digital Image Processing. Lecture #19

SURVEY ON IMAGE PROCESSING IN THE FIELD OF DE-NOISING TECHNIQUES AND EDGE DETECTION TECHNIQUES ON RADIOGRAPHIC IMAGES

Other Linear Filters CS 211A

Lecture: Edge Detection

Concepts in. Edge Detection

CS534: Introduction to Computer Vision Edges and Contours. Ahmed Elgammal Dept. of Computer Science Rutgers University

Filtering Images. Contents

the most common approach for detecting meaningful discontinuities in gray level. we discuss approaches for implementing

Chapter 10: Image Segmentation. Office room : 841

Edge detection. Convert a 2D image into a set of curves. Extracts salient features of the scene More compact than pixels

SYDE 575: Introduction to Image Processing

Classification of image operations. Image enhancement (GW-Ch. 3) Point operations. Neighbourhood operation

Digital Image Processing. Image Enhancement in the Spatial Domain (Chapter 4)

CS 4495 Computer Vision. Linear Filtering 2: Templates, Edges. Aaron Bobick. School of Interactive Computing. Templates/Edges

Concepts in. Edge Detection

Edge Detection. Announcements. Edge detection. Origin of Edges. Mailing list: you should have received messages

Segmentation algorithm for monochrome images generally are based on one of two basic properties of gray level values: discontinuity and similarity.

Image Processing

PERFORMANCE ANALYSIS OF CANNY AND OTHER COMMONLY USED EDGE DETECTORS Sandeep Dhawan Director of Technology, OTTE, NEW YORK

CS334: Digital Imaging and Multimedia Edges and Contours. Ahmed Elgammal Dept. of Computer Science Rutgers University

Edge detection. Gradient-based edge operators

Multimedia Computing: Algorithms, Systems, and Applications: Edge Detection

Chapter 3: Intensity Transformations and Spatial Filtering

Digital Image Analysis and Processing

Part 3: Image Processing

Point and Spatial Processing

Digital Image Processing

Edge Detection. CSE 576 Ali Farhadi. Many slides from Steve Seitz and Larry Zitnick

C E N T E R A T H O U S T O N S C H O O L of H E A L T H I N F O R M A T I O N S C I E N C E S. Image Operations II

Image Denoising Based on Hybrid Fourier and Neighborhood Wavelet Coefficients Jun Cheng, Songli Lei

Edge Detection. Today s reading. Cipolla & Gee on edge detection (available online) From Sandlot Science

Lecture 4: Image Processing

Comparative Analysis of Various Edge Detection Techniques in Biometric Application

PROCESS > SPATIAL FILTERS

Biomedical Image Analysis. Point, Edge and Line Detection

Image features. Image Features

Edge detection. Stefano Ferrari. Università degli Studi di Milano Elaborazione delle immagini (Image processing I)

Perception. Autonomous Mobile Robots. Sensors Vision Uncertainties, Line extraction from laser scans. Autonomous Systems Lab. Zürich.

Introduction to Digital Image Processing

Image Enhancement: To improve the quality of images

Line, edge, blob and corner detection

A Comparative Assessment of the Performances of Different Edge Detection Operator using Harris Corner Detection Method

Image Analysis. Edge Detection

Denoising and Edge Detection Using Sobelmethod

Noise Model. Important Noise Probability Density Functions (Cont.) Important Noise Probability Density Functions

Anno accademico 2006/2007. Davide Migliore

Edge Detection. CMPUT 206: Introduction to Digital Image Processing. Nilanjan Ray. Source:

Image gradients and edges April 11 th, 2017

Digital Image Processing, 2nd ed. Digital Image Processing, 2nd ed. The principal objective of enhancement

Image gradients and edges April 10 th, 2018

Lecture 4: Spatial Domain Transformations

Image Segmentation. Schedule. Jesus J Caban 11/2/10. Monday: Today: Image Segmentation Topic : Matting ( P. Bindu ) Assignment #3 distributed

Sharpening through spatial filtering

Image Processing. Daniel Danilov July 13, 2015

EELE 5310: Digital Image Processing. Lecture 2 Ch. 3. Eng. Ruba A. Salamah. iugaza.edu

Chapter 3 Image Enhancement in the Spatial Domain

EEM 463 Introduction to Image Processing. Week 3: Intensity Transformations

Image Segmentation Image Thresholds Edge-detection Edge-detection, the 1 st derivative Edge-detection, the 2 nd derivative Horizontal Edges Vertical

EELE 5310: Digital Image Processing. Ch. 3. Eng. Ruba A. Salamah. iugaza.edu

Chapter - 2 : IMAGE ENHANCEMENT

Point operation Spatial operation Transform operation Pseudocoloring

CS4733 Class Notes, Computer Vision

Point Operations and Spatial Filtering

CMPUT 206. Introduction to Digital Image Processing

Edge Detection. CS664 Computer Vision. 3. Edges. Several Causes of Edges. Detecting Edges. Finite Differences. The Gradient

Edge detection. Goal: Identify sudden. an image. Ideal: artist s line drawing. object-level knowledge)

Broad field that includes low-level operations as well as complex high-level algorithms

Lesson 6: Contours. 1. Introduction. 2. Image filtering: Convolution. 3. Edge Detection. 4. Contour segmentation

Announcements. Edge Detection. An Isotropic Gaussian. Filters are templates. Assignment 2 on tracking due this Friday Midterm: Tuesday, May 3.

An Algorithm for Blurred Thermal image edge enhancement for security by image processing technique

Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong)

Digital Image Processing COSC 6380/4393

Prof. Feng Liu. Winter /15/2019

f(x,y) is the original image H is the degradation process (or function) n(x,y) represents noise g(x,y) is the obtained degraded image p q

Edge Detection Lecture 03 Computer Vision

SRCEM, Banmore(M.P.), India

Final Review. Image Processing CSE 166 Lecture 18

EE795: Computer Vision and Intelligent Systems

Image gradients and edges

Image gradients and edges

Unit 3. Area Processes

Transcription:

Digital Image Procesing Spatial Filters in Image Processing DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL PROCESSING IMPERIAL COLLEGE LONDON

Spatial filters for image enhancement Spatial filters called spatial masks are used for specific operations on the image. Popular filters are the following: Low pass filters High boost filters High pass filters

Image averaging in the case of many realizations We have M different noisy images: g i x, y = f x, y + n i x, y, i = 0,, M 1 Noise realizations are zero mean and white with the same variance, i.e., E n i x, y = 0 and R ni k, l = σ ni 2 δ[k, l] = σ n 2 δ[k, l] We define a new image which is the average g x, y = 1 M M 1 i=0 g i x, y = f x, y + 1 M M 1 i=0 Notice that average is calculated across realizations. n i (x, y) Problem: Find the mean and variance of the new image g x, y. E{g x, y } = E{ 1 M M 1 i=0 g i (x, y)} = 1 M M 1 i=0 σ g(x,y) 2 = σ f(x,y) 2 + 1 M σ n(x,y) 2 = 1 M σ n(x,y) 2 E{g i (x, y)} = f(x, y)

Example: Image Averaging (number refers to realizations)

Example: Image Averaging

Spatial masks

Local averaging spatial masks for image de-noising (smoothing)

Response of 1D and 2D local averaging spatial masks

Other (weighted) local averaging spatial masks solid line shows weighted mask dashed line shows simple averaging

Example of local image averaging

Example: Image Averaging

A noiseless image and its noisy version Original Lena image Lena image with 10db noise

And some denoising! 3 3 averaging mask 5 5 averaging mask

Median filtering

Example of median filtering

Comparison of local smoothing and median filtering

Median versus local averaging filter response around local step edge

Median versus local averaging filter response around local ridge edge

High pass filtering We use masks with positive coefficients around the centre of the mask and negative coefficients in the periphery. In the mask shown below the central coefficient is +8 and its 8 nearest neighbours are -1. The reversed signs are equally valid, i.e., -8 in the middle and +1 for the rest of the coefficients. The sum of the mask coefficients must be zero. This leads to the response of the mask within a constant (or slowly varying) intensity area being zero (or very small). 1 9

Example of high pass filtering

Example of high pass filtering High pass filtered image High pass filtered image with 10db noise

High boost filtering The goal of high boost filtering is to enhance the high frequency information without completely eliminating the background of the image. We know that: (High-pass filtered image)=(original image)-(low-pass filtered image) We define: (High boost filtered image)=a (Original image)-(low-pass filtered image) (High boost)=(a 1) (Original)+(Original)-(Low-pass) (High boost)=(a 1) (Original)+(High-pass) As you can see, when A > 1, part of the original is added back to the highpass filtered version of the image in order to partly restore the low frequency components that would have been eliminated with standard high-pass filtering. Typical values for A are values slightly higher than 1, as for example 1.15, 1.2, etc.

High boost filtering The resulting image looks similar to the original image with some edge enhancement. The spatial mask that implements the high boost filtering algorithm is shown below. The resulting image depends on the choice of A. 1 9 High boost filtering is used in printing and publishing industry.

Example of high boost filtering

Example of high boost filtering A = 1.15 A = 1.2

Edge detection Edges are abrupt local changes in the image value (for example grey level). Edges are of crucial important because they are related to the boundaries of the various objects present in the image. Object boundaries are key feature for object detection and identification. Edge information in an image is found by looking at the relationship a pixel has with its neighborhoods. If a pixel s grey-level value is similar to those around it, there is probably not an edge at that point. If a pixel s has neighbors with widely varying grey levels, it may present an edge point.

Abrupt versus gradual change in image intensity

Type of edges Step edges Roof edge Line (ridge) edges

Edges are caused by a variety of factots surface normal discontinuity depth discontinuity surface color discontinuity illumination discontinuity

From a grey level image to an edge image (or edge map)

How do we detect the presence of a local edge? The gradient (first derivative) of the image around a pixel might give information about how detailed is the area around a pixel and whether there are abrupt intensity changes. The image is a 2-D signal and therefore, the gradient at a location (x, y) is a 2-D vector which contains the two partial derivatives of the image with respect to the coordinates x, y. f f = x f y Edge strength is given by f = f x 2 + f 1 f Edge orientation is given by θ = tan / f. y x y 2 1 2 or f f x + f y.

Examples of edge orientations Edge strength is given by f = f x 2 + f y 2 1 2 or f f x + f y. Edge orientation is given by θ = tan 1 f / f y x

Spatial masks for edge detection Consider an image region of size 3 3 pixels. The coordinates x, y are shown. The quantity r denotes grey level values. The magnitude f = f x can be approximated by: + f y of the gradient at pixel with intensity r 5 differences along x and y f = r 5 r 6 + r 5 r 8 cross-differences (along the two main diagonals) f = r 6 r 8 + r 5 r 9

Spatial masks for edge detection Roberts operator The magnitude f = f x can be approximated by: + f y of the gradient at pixel with intensity r 5 differences along x and y f = r 5 r 6 + r 5 r 8 cross-differences (along the two main diagonals) f = r 6 r 8 + r 5 r 9 Each of the above approximation is the sum of the magnitudes of the responses of two masks. These sets of masks are the so called Roberts operator. abs{ } }+abs{ } abs{ }+abs{ } +

Spatial masks for edge detection Prewitt and Sobel operators The magnitude f = f + f of the gradient at pixel with intensity r x y 5 can be also approximated by involving more pixels: Roberts operator f = (r 3 +r 6 + r 9 ) (r 1 + r 4 + r 7 ) + (r 7 +r 8 + r 9 ) (r 1 + r 2 + r 3 ) Sobel operator f = (r 3 +2r 6 + r 9 ) (r 1 + 2r 4 + r 7 ) + (r 7 +2r 8 + r 9 ) (r 1 + 2r 2 + r 3 ) Each of the above approximation is the sum of the magnitudes of the responses of two masks. abs{ }+abs{ } abs{ }+abs{ }

Example of edge detection using Prewitt

Original image and its histogram

Example of edge detection using Prewitt

Example of edge detection using Sobel

Edge detection using second order gradient: Laplacian mask The second order gradient gives also information about how detailed is the area around a pixel. It is defined as: 2 f = 2 f x 2 + 2 f y 2 A mask that can approximate the above function is the Laplacian: 2 f 4r 5 (r 2 +r 4 + r 6 + r 8 )