SlideShare une entreprise Scribd logo
1  sur  42
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?

Contenu connexe

Tendances

Intensity Transformation
Intensity TransformationIntensity Transformation
Intensity TransformationAmnaakhaan
 
Intensity Transformation and Spatial filtering
Intensity Transformation and Spatial filteringIntensity Transformation and Spatial filtering
Intensity Transformation and Spatial filteringShajun Nisha
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial DomainDEEPASHRI HK
 
Image Processing with OpenCV
Image Processing with OpenCVImage Processing with OpenCV
Image Processing with OpenCVdebayanin
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restorationMd Shabir Alam
 
Image processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersImage processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersKuppusamy P
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compressionasodariyabhavesh
 
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 woodsasodariyabhavesh
 
Chapter 9 morphological image processing
Chapter 9 morphological image processingChapter 9 morphological image processing
Chapter 9 morphological image processingasodariyabhavesh
 
DIGITAL IMAGE PROCESSING - Visual perception - DAY 2
DIGITAL IMAGE PROCESSING - Visual perception - DAY 2DIGITAL IMAGE PROCESSING - Visual perception - DAY 2
DIGITAL IMAGE PROCESSING - Visual perception - DAY 2vijayanand Kandaswamy
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and SegmentationA B Shinde
 
Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)VARUN KUMAR
 
Contrast enhancement in digital images
Contrast enhancement in digital imagesContrast enhancement in digital images
Contrast enhancement in digital imagesSakher BELOUADAH
 

Tendances (20)

Intensity Transformation
Intensity TransformationIntensity Transformation
Intensity Transformation
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Intensity Transformation and Spatial filtering
Intensity Transformation and Spatial filteringIntensity Transformation and Spatial filtering
Intensity Transformation and Spatial filtering
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
 
EDGE DETECTION
EDGE DETECTIONEDGE DETECTION
EDGE DETECTION
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Morphological operations
Morphological operationsMorphological operations
Morphological operations
 
Image Processing with OpenCV
Image Processing with OpenCVImage Processing with OpenCV
Image Processing with OpenCV
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
 
Image compression .
Image compression .Image compression .
Image compression .
 
Image processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersImage processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filters
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compression
 
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
 
Chapter 9 morphological image processing
Chapter 9 morphological image processingChapter 9 morphological image processing
Chapter 9 morphological image processing
 
DIGITAL IMAGE PROCESSING - Visual perception - DAY 2
DIGITAL IMAGE PROCESSING - Visual perception - DAY 2DIGITAL IMAGE PROCESSING - Visual perception - DAY 2
DIGITAL IMAGE PROCESSING - Visual perception - DAY 2
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
 
Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)
 
Image compression
Image compression Image compression
Image compression
 
Contrast enhancement in digital images
Contrast enhancement in digital imagesContrast enhancement in digital images
Contrast enhancement in digital images
 
IMAGE SEGMENTATION.
IMAGE SEGMENTATION.IMAGE SEGMENTATION.
IMAGE SEGMENTATION.
 

En vedette

Lect 02 second portion
Lect 02  second portionLect 02  second portion
Lect 02 second portionMoe Moe Myint
 
Lect 02 first portion
Lect 02   first portionLect 02   first portion
Lect 02 first portionMoe 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
 
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 portionMoe 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 1Moe 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 Conceptszaisahil
 
DATA COMMUNICATION AND NETWORKING
DATA COMMUNICATION AND NETWORKINGDATA COMMUNICATION AND NETWORKING
DATA COMMUNICATION AND NETWORKINGsaravana prasanth
 
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 PresentationRevanth Chimmani
 
Optical fiber Communication
Optical fiber Communication Optical fiber Communication
Optical fiber Communication Saurabh Kumar
 

En vedette (20)

Lect 02 second portion
Lect 02  second portionLect 02  second portion
Lect 02 second portion
 
Lect 02 first portion
Lect 02   first portionLect 02   first portion
Lect 02 first 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)
 
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
 
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
 

Similaire à Lect 03 - first portion

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 slidesBHAGYAPRASADBUGGE
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point ProcessingGayathri31093
 
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 techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniquesSaideep
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfnagwaAboElenein
 
image processing intensity transformation
image processing intensity transformationimage processing intensity transformation
image processing intensity transformationalobaidimki
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit NotesAAKANKSHA JAIN
 
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 EnhancementMathankumar 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.pdfnagwaAboElenein
 
Image processing
Image processingImage processing
Image processingmaheshpene
 
Image enhancement in the spatial domain1
Image enhancement in the spatial domain1Image enhancement in the spatial domain1
Image enhancement in the spatial domain1shabanam 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.pptShabanamTamboli1
 

Similaire à Lect 03 - first portion (20)

3rd unit.pptx
3rd unit.pptx3rd unit.pptx
3rd unit.pptx
 
image enhancement
 image enhancement image enhancement
image enhancement
 
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 techniquesImage 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
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
 
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
 

Plus de 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 EagleMoe 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 SpecificMoe 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 SystemMoe 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 1Moe Moe Myint
 

Plus de 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
 

Dernier

IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
An introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxAn introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxPurva Nikam
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 

Dernier (20)

young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
An introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxAn introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptx
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 

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?