IMAGE PROCESSING INTENSITY TRANSFORMATION AND SPATIAL FILTERING

Slides:



Advertisements
Similar presentations
Digital Image Processing
Advertisements

Grey Level Enhancement Contrast stretching Linear mapping Non-linear mapping Efficient implementation of mapping algorithms Design of classes to support.
Image Processing Ch3: Intensity Transformation and spatial filters
Spatial Filtering (Chapter 3)
Image Processing Lecture 4
CS & CS Multimedia Processing Lecture 2. Intensity Transformation and Spatial Filtering Spring 2009.
Chapter 3 Image Enhancement in the Spatial Domain.
Chapter - 2 IMAGE ENHANCEMENT
Intensity Transformations (Chapter 3)
Digital Image Processing
Digital Image Processing
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.
Multimedia Data Introduction to Image Processing Dr Mike Spann Electronic, Electrical and Computer.
Digital Image Processing
1 Vladimir Botchko Lecture 4. Image Enhancement Lappeenranta University of Technology (Finland)
Digital Image Processing
Image Enhancement.
Digital Image Processing
Lecture 2. Intensity Transformation and Spatial Filtering
Chapter 3 (cont).  In this section several basic concepts are introduced underlying the use of spatial filters for image processing.  Mainly spatial.
Spatial Filtering: Basics
University of Ioannina - Department of Computer Science Intensity Transformations (Point Processing) Christophoros Nikou Digital Image.
Chapter 3 Image Enhancement in the Spatial Domain.
CS6825: Point Processing Contents – not complete What is point processing? What is point processing? Altering/TRANSFORMING the image at a pixel only.
Multimedia Data Introduction to Image Processing Dr Sandra I. Woolley Electronic, Electrical.
EE663 Image Processing Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Intensity Transformations or Translation in Spatial Domain.
Image Processing is replacing Original Pixels by new Pixels using a Transform rst uvw xyz Origin x y Image f (x, y) e processed = v *e + r *a + s *b +
Intensity Transformations (Histogram Processing)
Course Website: Digital Image Processing Image Enhancement (Spatial Filtering 1)
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations.
Digital Image Processing CSC331 Image Enhancement 1.
Lecture Reading  3.1 Background  3.2 Some Basic Gray Level Transformations Some Basic Gray Level Transformations  Image Negatives  Log.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Image Enhancement in the Spatial Domain.
Image Subtraction Mask mode radiography h(x,y) is the mask.
IMAGE PROCESSING FREQUENCY DOMAIN PROCESSING
Lecture Six Figures from Gonzalez and Woods, Digital Image Processing, Second Edition, Copyright 2002.
IMAGE PROCESSING INTRODUCTION TO DIGITAL IMAGE PROCESSING
Fundamentals of Spatial Filtering:
Digital Image Processing CSC331
IMAGE PROCESSING IMAGE RESTORATION AND NOISE REDUCTION
IMAGE ENHANCEMENT TECHNIQUES
Digital Image Processing
Image Enhancement.
CIS 601 – 03 Image ENHANCEMENT SPATIAL DOMAIN Longin Jan Latecki
Digital Image Processing
Histogram Histogram is a graph that shows frequency of anything. Histograms usually have bars that represent frequency of occuring of data. Histogram has.
Fundamentals of Image Processing A Seminar on By Alok K. Watve
Image Enhancement in the Spatial Domain
Lecture Five Figures from Gonzalez and Woods, Digital Image Processing, Second edition, Prentice-Hall,2002.
Lecture 3 (2.5.07) Image Enhancement in Spatial Domain
Digital Image Processing
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Digital Image Processing
Digital Image Processing
Digital Image Processing
Image Processing Ch3: Intensity Transformation and spatial filters
Interesting article in the March, 2006 issue of Wired magazine
Digital Image Processing
Adaptive Filter A digital filter that automatically adjusts its coefficients to adapt input signal via an adaptive algorithm. Applications: Signal enhancement.
Grey Level Enhancement
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.
Image Enhancement – Simple Intensity Processing
CIS 4350 Image ENHANCEMENT SPATIAL DOMAIN
IT523 Digital Image Processing
Image Enhancement in the Spatial Domain
Presentation transcript:

IMAGE PROCESSING INTENSITY TRANSFORMATION AND SPATIAL FILTERING Editor by DR. FERDA ERNAWAN Faculty of Computer Systems & Software Engineering ferda@ump.edu.my

Today’s Lesson Image Enhancement in the Spatial Domain Introduction to Spatial domain Intensity transformations Photographic Negative, Gamma transformation, Logarithmic Transformation, Contrast-stretching transformation Histogram transformation Spatial filtering Smoothing, Sharpening Learning Outcomes: To understand the basic operation of image enhancement in Spatial Domain.

Introduction to Spatial Spatial domain is a signal having space as the independent variable (Jayaraman, Veerakumar, Esakkirajan, 2017 ), image is an example of a signal that can be processed in the spatial domain. There are two principal categories for processing in spatial domain: Spatial filtering : sharpening and blurring. Intensity transformation : contras manipulation and thresholding.

General Framework in Spatial Domain The most basic transformation is h(x, y) = T(f(x, y)) where f(x, y) denotes input image, h(x, y) represents the output and T(f) is a function of a single (real) variable.

Conventions: Digital Images Left: Digital image where the point of (x,y) is reffered. Below: Examples of gray-value transformations to enhance the image by controlling the contrast stretching function (i) and thresholding function (ii).

Intensity Transformations

Basic Gray Level (Intensity) Transformations Function The simplest image processing technique. s = T( r )  transformation pixel r into s. Gray level is used to enhance an image : Negative Gamma Transformation Logarithmic Transformation Contrast-stretching / Piecewise linear Bit slicing

Negative Transformation Gray-level transformation function used for image enhancement

Negative Transformation Example This technique is suitable when the image has dominant black areas. S = L – 1 – r  reversing the intensity (grey) level. Images taken from Gonzalez and Woods, 2016

Negative Transformation Example Images taken from Gonzalez and Woods, 2016

Logarithmic Transformation Example Enhance details in the darker regions of an image by expensing detail in brighter regions. Images taken from Gonzalez and Woods, 2016

Gamma Transformation Gamma transformation is an important technique for image display on a computer monitor. Images taken from Gonzalez and Woods, 2016

Piecewise-Linear Transformation Example Contrast Stretching: Stretch gray-level ranges where we desire more information Images taken from Gonzalez and Woods, 2016

Piecewise-Linear Example 2 Images taken from Gonzalez and Woods, 2016

Intensity Level Slicing Highlight specific ranges of gray-levels only. Images taken from Gonzalez and Woods, 2016

Histogram Transformation

Histogram Processing A fully automated gray-level stretching technique  one of the image enhancement technique. What is Histogram? Images taken from Gonzalez and Woods, 2016

Image Histograms “Level of gray is represented by a unique number” An image histogram is a plot of the gray-level frequencies. “Level of gray is represented by a unique number”

Image Histograms (cont..) Divide frequencies by total number of pixels to represent as probabilities. 6 18 2 10

Properties of Image Histograms Histograms with small spread correspond to low contrast images (i.e., mostly dark, mostly bright, or mostly gray). Histograms with wide spread correspond to high contrast images  better image. Images taken from Gonzalez and Woods, 2016

Properties of Image Histograms (cont..) Histograms clustered at the low end correspond to dark images. Histograms clustered at the high end correspond to bright images. Images taken from Gonzalez and Woods, 2016

Histogram Equalization The main idea is to redistribute the gray-level values uniformly. Images taken from Gonzalez and Woods, 2016

Histogram Equalization In practice, the equalized histogram might not be completely flat.

Histogram Equalization Images taken from Gonzalez and Woods, 2016

Histogram Equalization – in Graph Images taken from Gonzalez and Woods, 2016

Advantages of Histogram Equalization Optimal contrast. Fully automated (adaptive, no human intervention). Image normalization: easy to compare two images taken under different lighting conditions.

Spatial filtering (Smoothing and Sharpening)

Spatial Filtering Filter (Mask) refers to “accepting” or “rejecting” a certain frequency components (smooth or sharp). Mask operation: output pixel value = some algorithm performed on all the pixels in the neighborhood of the corresponding input pixel Size of neighborhood = size of mask. Mask slides from left-side to right-side, then from top to bottom Same operation is performed on every pixel Neighborhood exceeds image boundary: zero padding or replication of border pixels

Spatial Example “Consider neighborhood pixel in order to do operation in smoothing or sharpening”.

Neighbourhood Operations Origin x y Image f (x, y) (x, y) Neighbourhood Neighbourhood operations simply operate on a larger neighbourhood of pixels than point operations Neighbourhoods are mostly a rectangle around a central pixel Any size rectangle and any shape filter are possible

Neighbourhood Operations Origin Target x y Image f (x, y) (x, y) Neighbourhood

The Spatial Filtering Process Origin x * Original Image Pixels Filter (w) Simple 3*3 Neighbourhood e 3*3 Filter eprocessed = o*e + k*a + l*b + m*c + n*d + p*f + q*g + r*h + s*i y Image f (x, y) For each pixel is computed based on neighbourhood operation to generate the smoothed image

Smoothing Spatial Filtering Origin x 104 100 108 99 106 98 95 90 85 1/9 * Original Image Pixels Filter 1/9 104 99 95 100 108 98 90 85 Simple 3*3 Neighbourhood 3*3 Smoothing Filter 106 e = 1/9*106 + 1/9*104 + 1/9*100 + 1/9*108 + 1/9*99 + 1/9*98 + 1/9*95 + 1/9*90 + 1/9*85 = 98.3333 y Image f (x, y) For each pixel is computed based on neighbourhood operation to generate the smoothed image

Weighted Smoothing Filters An effective smoothing filter uses different weights in the averaging function.

Linear Filter Example g(x,y) = w(-1,-1)f(x-1,y-1) +w(-1,0)f(-1,0) +…… + w(1,1)f(x+1, y+1)

Spatial Filtering - Smoothing Spatial filter is suitable for blurring and noise reduction The aims are to remove the detail information and bridging of small gaps in lines or curves

Smoothing Masks Smoothing masks are normally adjusted to preserve average value (∑wi = 1)

Spatial Filtering - Sharpening Highlight/enhance fine detail that has been blurred Application ranging from electronic printing and medical imaging to industrial inspection

Laplacian Filter The Laplacian filter is given as: Where: The filter mask of Laplacian filter is shown as follows:

Laplacian Filter The result obtained from Laplacian filer produces highlights edges. Images taken from Gonzalez and Woods, 2016

Result of Laplacian Filter In order to produce the final sharpened image, the original image is subtracted by the Laplacian result Laplacian Filtered Images taken from Gonzalez and Woods, 2016

Laplacian Filter Images taken from Gonzalez and Woods, 2016

Laplacian Filter Images taken from Gonzalez and Woods, 2016

Variants Laplacian Filter Some variants Laplacian filters are given as follows: Simple Laplacian Variant of Laplacian Images taken from Gonzalez and Woods, 2016

Cont..

References R.C. Gonzalez and R.E. Woods, 2016. Digital Image Processing, Pearson Education India; Third edition. A.K. Jain, 2015. Fundamentals of Digital Image Processing, Pearson Education India; First edition. R.C. Gonzalez, R.E. Woods and S.L. Eddins, 2017. Digital Image Processing Using MATLAB. McGraw Hill Education; 2 edition. S. Jayaraman, T. Veerakumar, S. Esakkirajan, 2017.Digital Image Processing, McGraw Hill Education; 1 edition.