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

Similar documents
Digital Image Processing

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

Chapter 3: Intensity Transformations and Spatial Filtering

Image Processing. Traitement d images. Yuliya Tarabalka Tel.

What will we learn? Neighborhood processing. Convolution and correlation. Neighborhood processing. Chapter 10 Neighborhood Processing

CHAPTER 3 IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN

Biomedical Image Analysis. Spatial Filtering

Filtering and Enhancing Images

EE795: Computer Vision and Intelligent Systems

Lecture 4: Spatial Domain Transformations

Lecture Image Enhancement and Spatial Filtering

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

EECS 556 Image Processing W 09. Image enhancement. Smoothing and noise removal Sharpening filters

ECG782: Multidimensional Digital Signal Processing

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

Lecture: Edge Detection

Digital Image Processing. Image Enhancement - Filtering

2D Image Processing INFORMATIK. Kaiserlautern University. DFKI Deutsches Forschungszentrum für Künstliche Intelligenz

Image Enhancement in Spatial Domain (Chapter 3)

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

ECG782: Multidimensional Digital Signal Processing

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

Digital filters. Remote Sensing (GRS-20306)

INTENSITY TRANSFORMATION AND SPATIAL FILTERING

1.Some Basic Gray Level Transformations

3.4& Fundamentals& mechanics of spatial filtering(page 166) Spatial filter(mask) Filter coefficients Filter response

SECTION 5 IMAGE PROCESSING 2

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

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

C2: Medical Image Processing Linwei Wang

Image Processing

Part 3: Image Processing

Lectures Remote Sensing

Texture. Outline. Image representations: spatial and frequency Fourier transform Frequency filtering Oriented pyramids Texture representation

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

Digital Image Processing

CMPUT 206. Introduction to Digital Image Processing

Point Operations and Spatial Filtering

Feature Extraction and Image Processing, 2 nd Edition. Contents. Preface

Fundamentals of Digital Image Processing

Image Enhancement in Spatial Domain. By Dr. Rajeev Srivastava

Point and Spatial Processing

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]

Computer Vision I - Basics of Image Processing Part 1

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

ME/CS 132: Introduction to Vision-based Robot Navigation! Low-level Image Processing" Larry Matthies"

Digital Image Processing

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

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

Basic Algorithms for Digital Image Analysis: a course

Examination in Image Processing

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

BME I5000: Biomedical Imaging

Filtering Images. Contents

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

SYDE 575: Introduction to Image Processing

Image Processing Fundamentals. Nicolas Vazquez Principal Software Engineer National Instruments

convolution shift invariant linear system Fourier Transform Aliasing and sampling scale representation edge detection corner detection

CHAPTER 1 Introduction 1. CHAPTER 2 Images, Sampling and Frequency Domain Processing 37

Intensity Transformations and Spatial Filtering

Image Processing. Application area chosen because it has very good parallelism and interesting output.

Digital Image Procesing

IT Digital Image ProcessingVII Semester - Question Bank

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

Digital Image Processing

Anno accademico 2006/2007. Davide Migliore

Point operation Spatial operation Transform operation Pseudocoloring

Vivekananda. Collegee of Engineering & Technology. Question and Answers on 10CS762 /10IS762 UNIT- 5 : IMAGE ENHANCEMENT.

Edge Detection Lecture 03 Computer Vision

Image Enhancement: To improve the quality of images

Algorithms for Edge Detection and Enhancement for Real Time Images: A Comparative Study

Image Processing (2) Point Operations and Local Spatial Operations

Chapter 11 Image Processing

Digital Image Processing. Lecture 6

EE663 Image Processing Histogram Equalization I

Sobel Edge Detection Algorithm

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

An Introduc+on to Mathema+cal Image Processing IAS, Park City Mathema2cs Ins2tute, Utah Undergraduate Summer School 2010

Part 3: Image Processing

Digital Image Processing. Image Enhancement in the Frequency Domain

Image processing in frequency Domain

EXAM SOLUTIONS. Image Processing and Computer Vision Course 2D1421 Monday, 13 th of March 2006,

BSc (Hons) Computer Science. with Network Security. Examinations for / Semester 2

An introduction to image enhancement in the spatial domain.

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

Topic 4 Image Segmentation

An educational software package for digital image processing

Unit - I Computer vision Fundamentals

Image Enhancement. Digital Image Processing, Pratt Chapter 10 (pages ) Part 1: pixel-based operations

Image gradients and edges April 11 th, 2017

Concepts in. Edge Detection

Lecture 6: Edge Detection

Image gradients and edges April 10 th, 2018

Digital Image Processing COSC 6380/4393

EECS 556 Image Processing W 09. Interpolation. Interpolation techniques B splines

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

Image Processing. Daniel Danilov July 13, 2015

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

Chapter - 2 : IMAGE ENHANCEMENT

Computer Vision 2. SS 18 Dr. Benjamin Guthier Professur für Bildverarbeitung. Computer Vision 2 Dr. Benjamin Guthier

Transcription:

Image enhancement (GW-Ch. 3) Classification of image operations Process of improving image quality so that the result is more suitable for a specific application. contrast stretching histogram processing smoothing sharpening: spatial filtering for edge enhancement Point operation: output pixel value depends only on corresponding input pixel (e.g. contrast stretch): f out (x, y) = O (f in (x, y)) where O denotes the grey scale transformation (GST) function. Local operation: output pixel value depends on neighbourhood B(x, y) of input pixel: f out (x, y) = O ({f in (x, y ) : (x, y ) B(x, y)}). Global operation: output pixel value depends on all input pixels. Example: (discrete) Fourier transform. Geometric operation: translation) spatial transformation (scaling, 1 2 Point operations Neighbourhood operation (a) Contrast stretching. (b) Thresholding. Transforming an image by moving a neighbourhood over the image. 3 4

Linear contrast stretching Contrast stretch (normalize) Used if features of interest occupy only a small range of the available grey levels Let the input image f in have minimum and maximum grey level m and M (M > m 0), respectively. Then the following operation stretches the image to full grey level range [0..255]: f out (x, y) = 255 M m (f in(x, y) m). input contrast stretched 5 6 Histogram processing Histogram equalisation The histogram of the image I is defined as h(m) = #{(r, c) D : I(r, c) = m} In words, h(m) is the number of times the grey value m occurs in the image I. Goal: flat histogram in the output, i.e., on average an equal number of pixels at each grey level. If the image has N pixels and grey level range [0, L 1], the output image will have N/(L 1) pixels at each grey level. The grey scale transformation achieving histogram equalisation is O(f(x, y)) = (L 1) P(f(x, y)), where P(l) = 1 N l h(m) m=0 is the normalised cumulative histogram function. 7 8

Contrast stretching & histogram equalisation Spatial filtering (a) (b) (c) (a): input image. (b): contrast stretch of (a). (c): histogram equalisation of (a). 9 10 Spatial filtering Spatial filtering A filter kernel or filter mask is a set of coefficients w(s, t) where (s, t) runs over small neighbourhood N of the origin: N = {(s, t) : a s a, b t b}. Usually (s,t) N w(s, t) = 1. Spatial filtering transforms an input image f to an output image g by moving the mask to each pixel (x, y) and summing the pixel values in the neighbourhood of multiplied by the corresponding filter coefficient: g(x, y) = a a b w(s, t) f(x + s, y + t) b The expression a b g(x, y) = (w f)(x, y) = w(s, t) f(x + s, y + t) a b is called the correlation of w and f. The expression a b g(x, y) = (w f)(x, y) = w(s, t) f(x s, y t) a b is called the convolution of w and f. 11 12

Spatial filtering Smoothing filters Note that these operations can be easily mapped to one another: g(x, y) = (w f)(x, y) = ( w f)(x, y) where w(s, t) = w( s, t) is the mirrored version of w. Local averaging: lowpass filtering within a small neighbourhood or mask surrounding each pixel (discrete convolution). Order statistic (percentile) filters: rank the pixel values within the mask surrounding the center pixel (e.g., median filtering) for noise reduction without blurring of the edges. Morphological filters: general class of nonlinear filters. 13 14 Local averaging Uniform filter in Matlab function [g] = uniform (f) A=im2double(f); nr=size(a,1); nc=size(a,2); % convert image to double % number of rows % number of columns Left: uniform. Right: nonuniform. % Shift A cyclically in four directions A_up=[A(2:nr,:); A(1,:)]; % one row up A_down=[A(nr,:); A(1:nr-1,:)]; % one row down A_left = [A(:,2:nc) A(:,1)]; % one column to left A_right = [A(:,nc) A(:,1:nc-1)]; % one column to right B=0.2*(A+A_up+A_down+A_left+A_right); % uniform filter g=im2uint8(b); % convert to 8-bit 15 16

Smoothing filters Sharpening filters Goal is to enhance fine details such as edges Can be performed by using highpass filters based upon spatial differentiation (a) (b) (c) (a): Original. (b): uniform filter. (c): percentile filter. Can be implemented by discrete convolution with appropriate masks. 17 18 Prewitt operator Sobel operator -1-1 -1 0 0 0 +1 +1 +1-1 0 +1-1 0 +1-1 0 +1 Each point is convolved with two kernels, one for detecting horizontal edges and the other for vertical edges. Output of the operator is the maximum or square root of the two convolutions. f y (discrete) f x (discrete) Kernels for the Prewitt operator. -1-2 -1-1 0 +1 0 0 0-2 0 +2 +1 +2 +1-1 0 +1 Kernels for the Sobel operator. 19 20

Laplace operator Sharpening filters 0-1 0-1 -1-1 -1 4-1 -1 8-1 0-1 0-1 -1-1 Laplacian convolution kernels (discrete 2 nd derivative) (a) (b) (c) Effect of sharpening filters. (a): Original. (b): Laplace filter. (c): Sobel filter. 21 22