SlideShare a Scribd company logo
Digital Image Processing
(2nd Edition)
Rafael C. Gonzalez
Richard E.Woods
Dr Moe Moe Myint
Technological University (Kyaukse)
www.slideshare.net/MoeMoeMyint
moemoemyint@moemyanmar.ml
drmoemoemyint.blogspot.com
Miscellanea
 Lectures: Class A
 Monday 5-6
 Tuesday 6-7
 Lectures: Class B
 Monday 1-2
 Wednesday 5-6
 Labs:
 Tuesday for Class A and Wednesday for Class B
 Web Site:
 www.slideshare.net/MoeMoeMyint
 drmoemoemyint.blogspot.com
 E-mail: moemoemyint@moemyanmar.ml
2
Contents for Chapter 3
 This lecture will cover:
 Background
 Some Basic Gray Level Transformations
 Histogram Processing
 Enhancement Using Arithmetic/Logic Operations
 Basics of Spatial Filtering
 Smoothing Spatial Filters
 Sharpening Spatial Filters
 Combining Spatial Enhancement Methods
 Summary
3
Introduction
“It makes all the difference whether one sees darkness through
the light or brightness through the shadows”
David Lindsay
4
Preview
 The principal objective
to process an image so that the result is more suitable than the
original image for a specific application
The word specific is important because algorithms development for
enhancing X-ray images may not necessarily be the best approach
for enhancing pictures of Mars transmitted by a space probe.
5
Image enhancement example6
Two categories
 There is no general theory of image enhancement
 Spatial domain
image plane itself (the ‘natural’ image) and based on
direct manipulation of pixels in an image
 Frequency domain
based on modifying the Fourier transform of an image
(modify the image frequency components)
7
 No general theory
Image Enhancement
Enhancement
technique
Input image “Better”
image
Specific Application
Spatial Domain
Manipulate pixel intensity
directly
Frequency Domain
Modify the Fourier transform
8
x
y
Origin(0,0)
*(x,y)
x
y
Origin(0,0)
*(x,y)
Spatial coordinate system Cartesian coordinate system
g (x, y)=T [ f (x, y)]
Image Enhancement in Special Domain
The processed image Operator on f input image
9
Background
 Spatial domain processing
the aggregate of pixel composing an image procedures that
operate directly on these pixels
By expression: g(x, y)=T[ f(x, y) ]
Where f(x, y): input image
g(x, y): output (processed) image
T: operator on f
(Defined over some neighborhood of (x, y))
T
f(x,y) g(x,y)
10
The operator T can be defined over
a) The set of pixels (x, y) of the image
b) The set of ‘neighborhoods’ N(x, y) of each pixel
c) A set of images f1,f2,f3,…
a)
6 8 2 0
12 200 20 10
3 4 1 0
6 100 10 5
(Operator: Div. by 2)
11
b)
c)
6 8 2 0
12 200 20 10
226
6 8
12 200
(Operator: sum)
6 8 2 0
12 200 20 10
5 5 1 0
2 20 3 4
11 13 3 0
14 220 23 14
(Operator: sum)
12
Cont’d13
Defining the neighborhood
around (x, y)
Use a square/rectangle
subimage area that is
centered at (x, y)
Operation
Move the center of
the subimage from pixel
to pixel and apply
the operation T at
each location (x, y)
to compute the output
g(x, y)
 The easiest case of operators
When the neighborhood is 1 x 1(i.e, a single pixel) then g
depends only on the value of f at (x,y)
T becomes a gray-level transformation ( an intensity or
mapping) function:
s = T(r)
where;
r = gray-level at (x,y) in original image f(x,y)
s = gray-level at (x,y) in original image g(x,y)
This kind of processing is referred as point processing
 Point processing techniques (e.g., contrast stretching ,
thresholding)
Cont’d
14
Point processing
a) T(r) performs contrast stretching by producing an image of
higher contrast than the original by darkening the levels below
m and brightening the levels above m in the original image.
b) T(r ) produces a two-level (binary) image. (thresholding
function)
Contraststretching
thresholding
15
Contrast Stretching
Original Enhanced
16
 Thresholding transformations are particularly useful for
segmentation in which we want to isolate an object of interest
from a background.
Thresholding
Original Enhanced
s = 1.0 r > threshold
s = 0.0 r<= threshold
17
 If neighborhood is greater than 1 x 1,
 General approach: to use a function of the values of f in a
predefined neighborhood of (x, y) to determine the value of g
at (x, y).
The use of masks (or filters, kernels, template, or windows)
 a mask is a small (e.g., 3x3 ) 2-D array
 The values of mask coefficients
determine the nature of the process
(image sharpening)
Enhancement technique :
mask processing or filtering
Neighborhood Processing
18
Some Basic Gray Level Transformations
Gray–level transformation functions are among the simplest
of all image enhancement techniques
The values of pixels, before and after processing are related
by an expression s = T (r)
For an 8-bit environment, a lookup table will have 256
entries
Some basic gray level transformations functions:
Image Negatives
Log Transformations
Power-Law Transformations
Piecewise Transformation
oContrast Stretching
oGray-level Slicing
oBit-plane Slicing
19
Image Negatives
 The negative of an image with gray levels in the range [0, L-1]
is obtained by using the negative transformation which is
given by the expression
s = L – 1 – r
where; r is value of input pixel
s is value of processed pixel
input gray level ranges from 0 to L-1 ( [0, L-1] )
 Reversing the intensity level of image
 Suited for enhancing white or gray detail embedded in dark
regions of an image, especially when the black areas are
dominant in size
20
Image negatives
 Original Image : Digital Mammogram showing a small
lesion
 Much easier : to analyze the breast tissue in the negative
image
Original mammogram Negative image
Small
lesion
21
Some basic gray-level transformation functions used for
image enhancement
Linear:
Negative, Identity
Logarithmic:
Log, Inverse Log
Power-Law:
nth power, nth root
22
Log Transformation
 General form:
s = c log (1 + r )
where; c is a constant and r>=0
 Maps a narrow range of low gray-level values in the input
image into a wider range of output levels
 Use to expand the values of dark pixels in an image while
compressing the higher-level values
 The opposite is true of the inverse log transformation
 Compress the dynamic range of images with large variations in
pixel values
23
(a)Fourier spectrum with vales in the range 0 to 1.5x106
(b) Result of applying the log transformation with c = 1
If c = 1, values of result become 0 to 6.2
Log Transformation Example
s = log (1+r)
(a) (b)
24
 Basic form: s = c r γ
where; c and γ are positive constants
 To account for an offset (a measurable output when the input is
zero) :
s = c (r + ε )γ
 Power law is similar to
log when γ < 1 and similar
to inverse log when γ > 1
 Varying  obtains
family of possible
transformation curves
Power-Law Transformation
Figure: Plots of the equation s = c r γ for various
values of γ (c=1); γ = c = 1, identity
25
Power-Law Transformation Examples
 A variety of device used for image capture, printing and
display respond
 The power law equation is referred to as gamma
 The process used to correct power-law response is called
gamma correction
 Example:
Cathode ray tubes have
an intensity-to-voltage
response that is a power
function with exponent
varies from 1.8 to 2.5.
=2.5
=1/2.5
=2.5
(a) (b)
(c) (d)
26
Cont’d
 Also useful for general-
purpose contrast
manipulation
 Different curves highlight
different detail
  < 1
Expand dark gray levels
 = 0.6
 = 0.4  = 0.3
Figure : Magnetic
resonance (MR) image
27
Cont’d
>1
Expand light gray levels
 = 3
 = 5 = 4
28
Why power laws are popular?
 A cathode ray tube (CRT), for example, converts a video
signal to light in a nonlinear way. The light intensity I is
proportional to a power (γ) of the source voltage VS
 For a computer CRT, γ is about 2.2
 Viewing images properly on monitors requires γ-correction
29
 Advantage: the form of piecewise functions can be
arbitrarily complex
a practical implementation of some implementation of
some important transformations can be formulated only
as piece wise functions
 Disadvantage: specification requires considerably more
user input
 Contrast Stretching
 Gray-level slicing
 Bit-plane slicing
Piecewise-Linear Transformation Functions
30
 One of the simplest piecewise linear functions
 To increase the dynamic range of the gray levels in the image
being processed
 The locations of (r1,s1) and (r2,s2) control the shape of the
transformation function
 If r1= s1 and r2= s2 the transformation is a linear function
and produces no changes
 If r1=r2, s1=0 and s2=L-1, the transformation becomes a
thresholding function that creates a binary image
 Intermediate values of (r1,s1) and (r2,s2) produce various
degrees of spread in the gray levels of the output image,
thus affecting its contrast
Contrast Stretching
31
 Generally, r1≤r2 and s1≤s2
is assumed
to preserve the order of
gray levels
prevent the creation of
intensity artifacts in the
processed image
Cont’d
control point
32
Example of contrast stretching
Contrast stretching
8-bit image with
low contrast
Thresholding
33
 Highlight a specific range of gray levels in an image (e.g. to
enhance certain features)
 Tow basic approaches:
To display a high value for all
gray levels in the range of interest
and a low value for all other
gray levels (binary image)
Brightens the desired range of
gray levels but preserves
the background and gray-level
tonalities in the image
Gray-level slicing
34
Cont’d Highlight the major blood
vessels and study the shape of
the flow of the contrast
medium (to detect blockages,
etc.)
Measuring the actual flow of the
contrast medium as a function of
time in a series of images
35
Gray-level slicing
 Highlighting a specific range of gray levels
36
Bit-plane slicing
 Highlight the contribution made to total image appearance by specific bits
 Example: - each pixel is represented by 8 bits
- the image is composed of eight 1-bit planes
- plane 0 contains the least significant bit and
plane 7 contains the most significant bit.
 Plane 0 contains all the lowest order bits and plane 7 contains all the high-order bits
 Only the higher-order bits (especially the top four) contain the majority of the
visually significant data. The other bit planes contribute the more subtle details
 Is useful for analyzing the relative importance played by each bit of the image
 Determine the adequacy of the number of bits used to quantize each pixel
 Plane 7 corresponds exactly with an image thresholded at gray level 128
37
Bit-plane slicing
* Highlight specific bits
bit-planes of an image
(gray level 0~255)
Ex. 15010
1
0
0
1
0
1
0
0
38
10110011
1
1
0
0
1
1
0
1
Bit-plane 0
(least significant)
Bit-plane 7
(most significant)
39
7 6
5 4 3
2 1 0
For image
compression
An 8-bit fractal image
MSB
LSB
40
References
 “Digital Image Processing”, 2/ E, Rafael C. Gonzalez & Richard
E. Woods, www.prenhall.com/gonzalezwoods.
 Only Original Owner has full rights reserved for copied images.
 This PPT is only for fair academic use.
41
Chapter 3 – Next Section
(Coming Soon)
Questions?

More Related Content

What's hot

Edge linking in image processing
Edge linking in image processingEdge linking in image processing
Edge linking in image processing
VARUN KUMAR
 
Digital Image Processing: Image Enhancement in the Frequency Domain
Digital Image Processing: Image Enhancement in the Frequency DomainDigital Image Processing: Image Enhancement in the Frequency Domain
Digital Image Processing: Image Enhancement in the Frequency Domain
Mostafa G. M. Mostafa
 
image enhancement
 image enhancement image enhancement
image enhancement
Rajendra Prasad
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
A B Shinde
 
Point processing
Point processingPoint processing
Point processing
panupriyaa7
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
Ahmed Daoud
 
Lect 02 second portion
Lect 02  second portionLect 02  second portion
Lect 02 second portion
Moe Moe Myint
 
Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)
Moe Moe Myint
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
Karthika Ramachandran
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniques
sakshij91
 
Image Processing
Image ProcessingImage Processing
Image Processing
sharmili priyadarsini
 
Introduction to digital image processing
Introduction to digital image processingIntroduction to digital image processing
Introduction to digital image processing
Hossain Md Shakhawat
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
Md Shabir Alam
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
asodariyabhavesh
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniquesSaideep
 
digital image processing, image processing
digital image processing, image processingdigital image processing, image processing
digital image processing, image processing
Kalyan Acharjya
 
Image transforms
Image transformsImage transforms
Image transforms
11mr11mahesh
 
digital image processing
digital image processingdigital image processing
digital image processing
Abinaya B
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
asodariyabhavesh
 

What's hot (20)

Edge linking in image processing
Edge linking in image processingEdge linking in image processing
Edge linking in image processing
 
Digital Image Processing: Image Enhancement in the Frequency Domain
Digital Image Processing: Image Enhancement in the Frequency DomainDigital Image Processing: Image Enhancement in the Frequency Domain
Digital Image Processing: Image Enhancement in the Frequency Domain
 
image enhancement
 image enhancement image enhancement
image enhancement
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Point processing
Point processingPoint processing
Point processing
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Lect 02 second portion
Lect 02  second portionLect 02  second portion
Lect 02 second portion
 
Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniques
 
Image Processing
Image ProcessingImage Processing
Image Processing
 
Introduction to digital image processing
Introduction to digital image processingIntroduction to digital image processing
Introduction to digital image processing
 
Segmentation
SegmentationSegmentation
Segmentation
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniques
 
digital image processing, image processing
digital image processing, image processingdigital image processing, image processing
digital image processing, image processing
 
Image transforms
Image transformsImage transforms
Image transforms
 
digital image processing
digital image processingdigital image processing
digital image processing
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 

Viewers also liked

Lect 02 first portion
Lect 02   first portionLect 02   first portion
Lect 02 first portion
Moe Moe Myint
 
Digital Image Processing (Lab 08)
Digital Image Processing (Lab 08)Digital Image Processing (Lab 08)
Digital Image Processing (Lab 08)
Moe Moe Myint
 
Digital Image Processing (Lab 06)
Digital Image Processing (Lab 06)Digital Image Processing (Lab 06)
Digital Image Processing (Lab 06)
Moe Moe Myint
 
Digital Image Processing (Lab 05)
Digital Image Processing (Lab 05)Digital Image Processing (Lab 05)
Digital Image Processing (Lab 05)
Moe Moe Myint
 
Digital Image Processing (Lab 07)
Digital Image Processing (Lab 07)Digital Image Processing (Lab 07)
Digital Image Processing (Lab 07)
Moe Moe Myint
 
Lect 02 first portion
Lect 02   first portionLect 02   first portion
Lect 02 first portion
Moe Moe Myint
 
Digital Image Processing (Lab 09 and 10)
Digital Image Processing (Lab 09 and 10)Digital Image Processing (Lab 09 and 10)
Digital Image Processing (Lab 09 and 10)
Moe Moe Myint
 
Digital image processing lab 1
Digital image processing lab 1Digital image processing lab 1
Digital image processing lab 1
Moe Moe Myint
 
Dital Image Processing (Lab 2+3+4)
Dital Image Processing (Lab 2+3+4)Dital Image Processing (Lab 2+3+4)
Dital Image Processing (Lab 2+3+4)
Moe Moe Myint
 
Introduction to Networks & Networking Concepts
Introduction to Networks & Networking ConceptsIntroduction to Networks & Networking Concepts
Introduction to Networks & Networking Concepts
zaisahil
 
Dip chapter 2
Dip chapter 2Dip chapter 2
Dip chapter 2
Amar Meena
 
DATA COMMUNICATION AND NETWORKING
DATA COMMUNICATION AND NETWORKINGDATA COMMUNICATION AND NETWORKING
DATA COMMUNICATION AND NETWORKING
saravana prasanth
 
Chapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsChapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woods
asodariyabhavesh
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
asodariyabhavesh
 
Color image processing Presentation
Color image processing PresentationColor image processing Presentation
Color image processing Presentation
Revanth Chimmani
 
Optical fiber Communication
Optical fiber Communication Optical fiber Communication
Optical fiber Communication
Saurabh Kumar
 
OPTICAL FIBER COMMUNICATION PPT
OPTICAL FIBER COMMUNICATION PPTOPTICAL FIBER COMMUNICATION PPT
OPTICAL FIBER COMMUNICATION PPT
Er. Satyendra Vishwakarma
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
Sahil Biswas
 

Viewers also liked (20)

Lect 02 first portion
Lect 02   first portionLect 02   first portion
Lect 02 first portion
 
Digital Image Processing (Lab 08)
Digital Image Processing (Lab 08)Digital Image Processing (Lab 08)
Digital Image Processing (Lab 08)
 
Digital Image Processing (Lab 06)
Digital Image Processing (Lab 06)Digital Image Processing (Lab 06)
Digital Image Processing (Lab 06)
 
Digital Image Processing (Lab 05)
Digital Image Processing (Lab 05)Digital Image Processing (Lab 05)
Digital Image Processing (Lab 05)
 
Digital Image Processing (Lab 07)
Digital Image Processing (Lab 07)Digital Image Processing (Lab 07)
Digital Image Processing (Lab 07)
 
Lect 02 first portion
Lect 02   first portionLect 02   first portion
Lect 02 first portion
 
Digital Image Processing (Lab 09 and 10)
Digital Image Processing (Lab 09 and 10)Digital Image Processing (Lab 09 and 10)
Digital Image Processing (Lab 09 and 10)
 
Digital image processing lab 1
Digital image processing lab 1Digital image processing lab 1
Digital image processing lab 1
 
Dital Image Processing (Lab 2+3+4)
Dital Image Processing (Lab 2+3+4)Dital Image Processing (Lab 2+3+4)
Dital Image Processing (Lab 2+3+4)
 
Introduction to Networks & Networking Concepts
Introduction to Networks & Networking ConceptsIntroduction to Networks & Networking Concepts
Introduction to Networks & Networking Concepts
 
Dip chapter 2
Dip chapter 2Dip chapter 2
Dip chapter 2
 
Chapter 6 - Networking
Chapter 6 - NetworkingChapter 6 - Networking
Chapter 6 - Networking
 
DATA COMMUNICATION AND NETWORKING
DATA COMMUNICATION AND NETWORKINGDATA COMMUNICATION AND NETWORKING
DATA COMMUNICATION AND NETWORKING
 
Chapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsChapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woods
 
Soliton
Soliton Soliton
Soliton
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
 
Color image processing Presentation
Color image processing PresentationColor image processing Presentation
Color image processing Presentation
 
Optical fiber Communication
Optical fiber Communication Optical fiber Communication
Optical fiber Communication
 
OPTICAL FIBER COMMUNICATION PPT
OPTICAL FIBER COMMUNICATION PPTOPTICAL FIBER COMMUNICATION PPT
OPTICAL FIBER COMMUNICATION PPT
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 

Similar to Lect 03 - first portion

UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTUUNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
ankushspencer015
 
3rd unit.pptx
3rd unit.pptx3rd unit.pptx
3rd unit.pptx
ssuser0bf6a8
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides
BHAGYAPRASADBUGGE
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point Processing
Gayathri31093
 
Digital Image Processing_ ch2 enhancement spatial-domain
Digital Image Processing_ ch2 enhancement spatial-domainDigital Image Processing_ ch2 enhancement spatial-domain
Digital Image Processing_ ch2 enhancement spatial-domainMalik obeisat
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
shabanam tamboli
 
Image enhancement techniques
Image enhancement techniques Image enhancement techniques
Image enhancement techniques
Arshad khan
 
4 image enhancement in spatial domain
4 image enhancement in spatial domain4 image enhancement in spatial domain
4 image enhancement in spatial domain
Prof. Dr. Subhasis Bose
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdf
nagwaAboElenein
 
image processing intensity transformation
image processing intensity transformationimage processing intensity transformation
image processing intensity transformation
alobaidimki
 
Digital image processing - Image Enhancement (MATERIAL)
Digital image processing  - Image Enhancement (MATERIAL)Digital image processing  - Image Enhancement (MATERIAL)
Digital image processing - Image Enhancement (MATERIAL)
Mathankumar S
 
Digital Image Processing - Image Enhancement
Digital Image Processing  - Image EnhancementDigital Image Processing  - Image Enhancement
Digital Image Processing - Image Enhancement
Mathankumar S
 
Lec_3_Image Enhancement_spatial Domain.pdf
Lec_3_Image Enhancement_spatial Domain.pdfLec_3_Image Enhancement_spatial Domain.pdf
Lec_3_Image Enhancement_spatial Domain.pdf
nagwaAboElenein
 
Image processing
Image processingImage processing
Image processingmaheshpene
 
DIP Lecture 7-9.pdf
DIP Lecture 7-9.pdfDIP Lecture 7-9.pdf
DIP Lecture 7-9.pdf
SAhsanShahBukhari
 
Module 2
Module 2Module 2
Module 2
UllasSS1
 
Image enhancement in the spatial domain1
Image enhancement in the spatial domain1Image enhancement in the spatial domain1
Image enhancement in the spatial domain1
shabanam tamboli
 
Image Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.pptImage Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.ppt
ShabanamTamboli1
 
Image Enhancement in the Spatial Domain U2.ppt
Image Enhancement in the Spatial Domain U2.pptImage Enhancement in the Spatial Domain U2.ppt
Image Enhancement in the Spatial Domain U2.ppt
ssuser7ec6af
 

Similar to Lect 03 - first portion (20)

UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTUUNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
 
3rd unit.pptx
3rd unit.pptx3rd unit.pptx
3rd unit.pptx
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point Processing
 
Digital Image Processing_ ch2 enhancement spatial-domain
Digital Image Processing_ ch2 enhancement spatial-domainDigital Image Processing_ ch2 enhancement spatial-domain
Digital Image Processing_ ch2 enhancement spatial-domain
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Image enhancement techniques
Image enhancement techniques Image enhancement techniques
Image enhancement techniques
 
4 image enhancement in spatial domain
4 image enhancement in spatial domain4 image enhancement in spatial domain
4 image enhancement in spatial domain
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdf
 
image processing intensity transformation
image processing intensity transformationimage processing intensity transformation
image processing intensity transformation
 
Digital image processing - Image Enhancement (MATERIAL)
Digital image processing  - Image Enhancement (MATERIAL)Digital image processing  - Image Enhancement (MATERIAL)
Digital image processing - Image Enhancement (MATERIAL)
 
Digital Image Processing - Image Enhancement
Digital Image Processing  - Image EnhancementDigital Image Processing  - Image Enhancement
Digital Image Processing - Image Enhancement
 
Lec_3_Image Enhancement_spatial Domain.pdf
Lec_3_Image Enhancement_spatial Domain.pdfLec_3_Image Enhancement_spatial Domain.pdf
Lec_3_Image Enhancement_spatial Domain.pdf
 
Image processing
Image processingImage processing
Image processing
 
DIP Lecture 7-9.pdf
DIP Lecture 7-9.pdfDIP Lecture 7-9.pdf
DIP Lecture 7-9.pdf
 
Module 2
Module 2Module 2
Module 2
 
Image enhancement in the spatial domain1
Image enhancement in the spatial domain1Image enhancement in the spatial domain1
Image enhancement in the spatial domain1
 
Image Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.pptImage Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.ppt
 
Image Enhancement in the Spatial Domain U2.ppt
Image Enhancement in the Spatial Domain U2.pptImage Enhancement in the Spatial Domain U2.ppt
Image Enhancement in the Spatial Domain U2.ppt
 

More from Moe Moe Myint

Ch 1 introduction to Embedded Systems (AY:2018-2019--> First Semester)
Ch 1 introduction to Embedded Systems (AY:2018-2019--> First Semester)Ch 1 introduction to Embedded Systems (AY:2018-2019--> First Semester)
Ch 1 introduction to Embedded Systems (AY:2018-2019--> First Semester)
Moe Moe Myint
 
Chapter 8 Embedded Hardware Design and Development (third portion)
Chapter 8 Embedded Hardware Design and Development (third portion)Chapter 8 Embedded Hardware Design and Development (third portion)
Chapter 8 Embedded Hardware Design and Development (third portion)
Moe Moe Myint
 
Chapter 8 Embedded Hardware Design and Development (second portion)
Chapter 8 Embedded Hardware Design and Development (second portion)Chapter 8 Embedded Hardware Design and Development (second portion)
Chapter 8 Embedded Hardware Design and Development (second portion)
Moe Moe Myint
 
Schematic and PCB Design Using Eagle
Schematic and PCB Design Using EagleSchematic and PCB Design Using Eagle
Schematic and PCB Design Using Eagle
Moe Moe Myint
 
Chapter 4 Embedded System: Application and Domain Specific
Chapter 4 Embedded System: Application and Domain SpecificChapter 4 Embedded System: Application and Domain Specific
Chapter 4 Embedded System: Application and Domain Specific
Moe Moe Myint
 
Chapter 3 Charateristics and Quality Attributes of Embedded System
Chapter 3 Charateristics and Quality Attributes of Embedded SystemChapter 3 Charateristics and Quality Attributes of Embedded System
Chapter 3 Charateristics and Quality Attributes of Embedded System
Moe Moe Myint
 
Introduction to Embedded System I: Chapter 2 (5th portion)
Introduction to Embedded System I: Chapter 2 (5th portion)Introduction to Embedded System I: Chapter 2 (5th portion)
Introduction to Embedded System I: Chapter 2 (5th portion)
Moe Moe Myint
 
Introduction to Embedded System: Chapter 2 (4th portion)
Introduction to Embedded System:  Chapter 2 (4th portion)Introduction to Embedded System:  Chapter 2 (4th portion)
Introduction to Embedded System: Chapter 2 (4th portion)
Moe Moe Myint
 
Introduction to Embedded System I : Chapter 2 (3rd portion)
Introduction to Embedded System I : Chapter 2 (3rd portion)Introduction to Embedded System I : Chapter 2 (3rd portion)
Introduction to Embedded System I : Chapter 2 (3rd portion)
Moe Moe Myint
 
Introduction to Embedded System I : Chapter 2 (2nd portion)
Introduction to Embedded System I : Chapter 2 (2nd portion)Introduction to Embedded System I : Chapter 2 (2nd portion)
Introduction to Embedded System I : Chapter 2 (2nd portion)
Moe Moe Myint
 
Introduction to Embedded Systems I: Chapter 2 (1st portion)
Introduction to Embedded Systems I: Chapter 2 (1st portion)Introduction to Embedded Systems I: Chapter 2 (1st portion)
Introduction to Embedded Systems I: Chapter 2 (1st portion)
Moe Moe Myint
 
Introduction to Embedded Systems I : Chapter 1
Introduction to Embedded Systems I : Chapter 1Introduction to Embedded Systems I : Chapter 1
Introduction to Embedded Systems I : Chapter 1
Moe Moe Myint
 
Lect 06
Lect 06 Lect 06
Lect 06
Moe Moe Myint
 

More from Moe Moe Myint (13)

Ch 1 introduction to Embedded Systems (AY:2018-2019--> First Semester)
Ch 1 introduction to Embedded Systems (AY:2018-2019--> First Semester)Ch 1 introduction to Embedded Systems (AY:2018-2019--> First Semester)
Ch 1 introduction to Embedded Systems (AY:2018-2019--> First Semester)
 
Chapter 8 Embedded Hardware Design and Development (third portion)
Chapter 8 Embedded Hardware Design and Development (third portion)Chapter 8 Embedded Hardware Design and Development (third portion)
Chapter 8 Embedded Hardware Design and Development (third portion)
 
Chapter 8 Embedded Hardware Design and Development (second portion)
Chapter 8 Embedded Hardware Design and Development (second portion)Chapter 8 Embedded Hardware Design and Development (second portion)
Chapter 8 Embedded Hardware Design and Development (second portion)
 
Schematic and PCB Design Using Eagle
Schematic and PCB Design Using EagleSchematic and PCB Design Using Eagle
Schematic and PCB Design Using Eagle
 
Chapter 4 Embedded System: Application and Domain Specific
Chapter 4 Embedded System: Application and Domain SpecificChapter 4 Embedded System: Application and Domain Specific
Chapter 4 Embedded System: Application and Domain Specific
 
Chapter 3 Charateristics and Quality Attributes of Embedded System
Chapter 3 Charateristics and Quality Attributes of Embedded SystemChapter 3 Charateristics and Quality Attributes of Embedded System
Chapter 3 Charateristics and Quality Attributes of Embedded System
 
Introduction to Embedded System I: Chapter 2 (5th portion)
Introduction to Embedded System I: Chapter 2 (5th portion)Introduction to Embedded System I: Chapter 2 (5th portion)
Introduction to Embedded System I: Chapter 2 (5th portion)
 
Introduction to Embedded System: Chapter 2 (4th portion)
Introduction to Embedded System:  Chapter 2 (4th portion)Introduction to Embedded System:  Chapter 2 (4th portion)
Introduction to Embedded System: Chapter 2 (4th portion)
 
Introduction to Embedded System I : Chapter 2 (3rd portion)
Introduction to Embedded System I : Chapter 2 (3rd portion)Introduction to Embedded System I : Chapter 2 (3rd portion)
Introduction to Embedded System I : Chapter 2 (3rd portion)
 
Introduction to Embedded System I : Chapter 2 (2nd portion)
Introduction to Embedded System I : Chapter 2 (2nd portion)Introduction to Embedded System I : Chapter 2 (2nd portion)
Introduction to Embedded System I : Chapter 2 (2nd portion)
 
Introduction to Embedded Systems I: Chapter 2 (1st portion)
Introduction to Embedded Systems I: Chapter 2 (1st portion)Introduction to Embedded Systems I: Chapter 2 (1st portion)
Introduction to Embedded Systems I: Chapter 2 (1st portion)
 
Introduction to Embedded Systems I : Chapter 1
Introduction to Embedded Systems I : Chapter 1Introduction to Embedded Systems I : Chapter 1
Introduction to Embedded Systems I : Chapter 1
 
Lect 06
Lect 06 Lect 06
Lect 06
 

Recently uploaded

Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
SupreethSP4
 

Recently uploaded (20)

Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
 

Lect 03 - first portion

  • 1. Digital Image Processing (2nd Edition) Rafael C. Gonzalez Richard E.Woods Dr Moe Moe Myint Technological University (Kyaukse) www.slideshare.net/MoeMoeMyint moemoemyint@moemyanmar.ml drmoemoemyint.blogspot.com
  • 2. Miscellanea  Lectures: Class A  Monday 5-6  Tuesday 6-7  Lectures: Class B  Monday 1-2  Wednesday 5-6  Labs:  Tuesday for Class A and Wednesday for Class B  Web Site:  www.slideshare.net/MoeMoeMyint  drmoemoemyint.blogspot.com  E-mail: moemoemyint@moemyanmar.ml 2
  • 3. Contents for Chapter 3  This lecture will cover:  Background  Some Basic Gray Level Transformations  Histogram Processing  Enhancement Using Arithmetic/Logic Operations  Basics of Spatial Filtering  Smoothing Spatial Filters  Sharpening Spatial Filters  Combining Spatial Enhancement Methods  Summary 3
  • 4. Introduction “It makes all the difference whether one sees darkness through the light or brightness through the shadows” David Lindsay 4
  • 5. Preview  The principal objective to process an image so that the result is more suitable than the original image for a specific application The word specific is important because algorithms development for enhancing X-ray images may not necessarily be the best approach for enhancing pictures of Mars transmitted by a space probe. 5
  • 7. Two categories  There is no general theory of image enhancement  Spatial domain image plane itself (the ‘natural’ image) and based on direct manipulation of pixels in an image  Frequency domain based on modifying the Fourier transform of an image (modify the image frequency components) 7
  • 8.  No general theory Image Enhancement Enhancement technique Input image “Better” image Specific Application Spatial Domain Manipulate pixel intensity directly Frequency Domain Modify the Fourier transform 8
  • 9. x y Origin(0,0) *(x,y) x y Origin(0,0) *(x,y) Spatial coordinate system Cartesian coordinate system g (x, y)=T [ f (x, y)] Image Enhancement in Special Domain The processed image Operator on f input image 9
  • 10. Background  Spatial domain processing the aggregate of pixel composing an image procedures that operate directly on these pixels By expression: g(x, y)=T[ f(x, y) ] Where f(x, y): input image g(x, y): output (processed) image T: operator on f (Defined over some neighborhood of (x, y)) T f(x,y) g(x,y) 10
  • 11. The operator T can be defined over a) The set of pixels (x, y) of the image b) The set of ‘neighborhoods’ N(x, y) of each pixel c) A set of images f1,f2,f3,… a) 6 8 2 0 12 200 20 10 3 4 1 0 6 100 10 5 (Operator: Div. by 2) 11
  • 12. b) c) 6 8 2 0 12 200 20 10 226 6 8 12 200 (Operator: sum) 6 8 2 0 12 200 20 10 5 5 1 0 2 20 3 4 11 13 3 0 14 220 23 14 (Operator: sum) 12
  • 13. Cont’d13 Defining the neighborhood around (x, y) Use a square/rectangle subimage area that is centered at (x, y) Operation Move the center of the subimage from pixel to pixel and apply the operation T at each location (x, y) to compute the output g(x, y)
  • 14.  The easiest case of operators When the neighborhood is 1 x 1(i.e, a single pixel) then g depends only on the value of f at (x,y) T becomes a gray-level transformation ( an intensity or mapping) function: s = T(r) where; r = gray-level at (x,y) in original image f(x,y) s = gray-level at (x,y) in original image g(x,y) This kind of processing is referred as point processing  Point processing techniques (e.g., contrast stretching , thresholding) Cont’d 14
  • 15. Point processing a) T(r) performs contrast stretching by producing an image of higher contrast than the original by darkening the levels below m and brightening the levels above m in the original image. b) T(r ) produces a two-level (binary) image. (thresholding function) Contraststretching thresholding 15
  • 17.  Thresholding transformations are particularly useful for segmentation in which we want to isolate an object of interest from a background. Thresholding Original Enhanced s = 1.0 r > threshold s = 0.0 r<= threshold 17
  • 18.  If neighborhood is greater than 1 x 1,  General approach: to use a function of the values of f in a predefined neighborhood of (x, y) to determine the value of g at (x, y). The use of masks (or filters, kernels, template, or windows)  a mask is a small (e.g., 3x3 ) 2-D array  The values of mask coefficients determine the nature of the process (image sharpening) Enhancement technique : mask processing or filtering Neighborhood Processing 18
  • 19. Some Basic Gray Level Transformations Gray–level transformation functions are among the simplest of all image enhancement techniques The values of pixels, before and after processing are related by an expression s = T (r) For an 8-bit environment, a lookup table will have 256 entries Some basic gray level transformations functions: Image Negatives Log Transformations Power-Law Transformations Piecewise Transformation oContrast Stretching oGray-level Slicing oBit-plane Slicing 19
  • 20. Image Negatives  The negative of an image with gray levels in the range [0, L-1] is obtained by using the negative transformation which is given by the expression s = L – 1 – r where; r is value of input pixel s is value of processed pixel input gray level ranges from 0 to L-1 ( [0, L-1] )  Reversing the intensity level of image  Suited for enhancing white or gray detail embedded in dark regions of an image, especially when the black areas are dominant in size 20
  • 21. Image negatives  Original Image : Digital Mammogram showing a small lesion  Much easier : to analyze the breast tissue in the negative image Original mammogram Negative image Small lesion 21
  • 22. Some basic gray-level transformation functions used for image enhancement Linear: Negative, Identity Logarithmic: Log, Inverse Log Power-Law: nth power, nth root 22
  • 23. Log Transformation  General form: s = c log (1 + r ) where; c is a constant and r>=0  Maps a narrow range of low gray-level values in the input image into a wider range of output levels  Use to expand the values of dark pixels in an image while compressing the higher-level values  The opposite is true of the inverse log transformation  Compress the dynamic range of images with large variations in pixel values 23
  • 24. (a)Fourier spectrum with vales in the range 0 to 1.5x106 (b) Result of applying the log transformation with c = 1 If c = 1, values of result become 0 to 6.2 Log Transformation Example s = log (1+r) (a) (b) 24
  • 25.  Basic form: s = c r γ where; c and γ are positive constants  To account for an offset (a measurable output when the input is zero) : s = c (r + ε )γ  Power law is similar to log when γ < 1 and similar to inverse log when γ > 1  Varying  obtains family of possible transformation curves Power-Law Transformation Figure: Plots of the equation s = c r γ for various values of γ (c=1); γ = c = 1, identity 25
  • 26. Power-Law Transformation Examples  A variety of device used for image capture, printing and display respond  The power law equation is referred to as gamma  The process used to correct power-law response is called gamma correction  Example: Cathode ray tubes have an intensity-to-voltage response that is a power function with exponent varies from 1.8 to 2.5. =2.5 =1/2.5 =2.5 (a) (b) (c) (d) 26
  • 27. Cont’d  Also useful for general- purpose contrast manipulation  Different curves highlight different detail   < 1 Expand dark gray levels  = 0.6  = 0.4  = 0.3 Figure : Magnetic resonance (MR) image 27
  • 28. Cont’d >1 Expand light gray levels  = 3  = 5 = 4 28
  • 29. Why power laws are popular?  A cathode ray tube (CRT), for example, converts a video signal to light in a nonlinear way. The light intensity I is proportional to a power (γ) of the source voltage VS  For a computer CRT, γ is about 2.2  Viewing images properly on monitors requires γ-correction 29
  • 30.  Advantage: the form of piecewise functions can be arbitrarily complex a practical implementation of some implementation of some important transformations can be formulated only as piece wise functions  Disadvantage: specification requires considerably more user input  Contrast Stretching  Gray-level slicing  Bit-plane slicing Piecewise-Linear Transformation Functions 30
  • 31.  One of the simplest piecewise linear functions  To increase the dynamic range of the gray levels in the image being processed  The locations of (r1,s1) and (r2,s2) control the shape of the transformation function  If r1= s1 and r2= s2 the transformation is a linear function and produces no changes  If r1=r2, s1=0 and s2=L-1, the transformation becomes a thresholding function that creates a binary image  Intermediate values of (r1,s1) and (r2,s2) produce various degrees of spread in the gray levels of the output image, thus affecting its contrast Contrast Stretching 31
  • 32.  Generally, r1≤r2 and s1≤s2 is assumed to preserve the order of gray levels prevent the creation of intensity artifacts in the processed image Cont’d control point 32
  • 33. Example of contrast stretching Contrast stretching 8-bit image with low contrast Thresholding 33
  • 34.  Highlight a specific range of gray levels in an image (e.g. to enhance certain features)  Tow basic approaches: To display a high value for all gray levels in the range of interest and a low value for all other gray levels (binary image) Brightens the desired range of gray levels but preserves the background and gray-level tonalities in the image Gray-level slicing 34
  • 35. Cont’d Highlight the major blood vessels and study the shape of the flow of the contrast medium (to detect blockages, etc.) Measuring the actual flow of the contrast medium as a function of time in a series of images 35
  • 36. Gray-level slicing  Highlighting a specific range of gray levels 36
  • 37. Bit-plane slicing  Highlight the contribution made to total image appearance by specific bits  Example: - each pixel is represented by 8 bits - the image is composed of eight 1-bit planes - plane 0 contains the least significant bit and plane 7 contains the most significant bit.  Plane 0 contains all the lowest order bits and plane 7 contains all the high-order bits  Only the higher-order bits (especially the top four) contain the majority of the visually significant data. The other bit planes contribute the more subtle details  Is useful for analyzing the relative importance played by each bit of the image  Determine the adequacy of the number of bits used to quantize each pixel  Plane 7 corresponds exactly with an image thresholded at gray level 128 37
  • 38. Bit-plane slicing * Highlight specific bits bit-planes of an image (gray level 0~255) Ex. 15010 1 0 0 1 0 1 0 0 38
  • 40. 7 6 5 4 3 2 1 0 For image compression An 8-bit fractal image MSB LSB 40
  • 41. References  “Digital Image Processing”, 2/ E, Rafael C. Gonzalez & Richard E. Woods, www.prenhall.com/gonzalezwoods.  Only Original Owner has full rights reserved for copied images.  This PPT is only for fair academic use. 41
  • 42. Chapter 3 – Next Section (Coming Soon) Questions?