SlideShare a Scribd company logo
Thresholding
• Foundation:
Thresholding
• In A: light objects in dark background
• To extract the objects:
– Select a T that separates the objects from the
background
– i.e. any (x,y) for which f(x,y)>T is an object point.
Thresholding
• In B: a more general case of this approach
(multilevel thresholding)
• So: (x,y) belongs:
– To one object class if T1<f(x,y)≤T2
– To the other if f(x,y)>T2
– To the background if f(x,y)≤T1
Thresholding
• A thresholded image:






T
y
x
f
T
y
x
f
y
x
g
)
,
(
if
0
)
,
(
if
1
)
,
(
(objects)
(background)
Thresholding
• Thresholding can be viewed as an operation
that involves tests against a function T of
the form:
)]
,
(
),
,
(
,
,
[ y
x
f
y
x
p
y
x
T
T 
where p(x,y) denotes
some local property of this point.
Thresholding
• When T depends only on f(x,y) 
global threshold
• When T depends on both f(x,y) and p(x,y) 
local threshold
• When T depends on x and y (in addition) 
dynamic threshold
Role of Illumination
• f(x,y) = i(x,y) r(x,y)
• A non-uniform illumination destroys the
reflectance patterns that can be exploited
by thresholding (e.g. for object extraction).
Role of Illumination
Solution
g(x,y) = ki(x,y),
– Then, for any image f(x,y) = i(x,y) r(x,y), divide
by g(x,y). This yields:
)
,
(
)
,
(
)
,
(
)
,
(
)
,
(
y
x
ki
y
x
r
y
x
i
y
x
g
y
x
f

k
y
x
r
y
x
h
)
,
(
)
,
( 
if r(x,y) can be segmented by using a single threshold T, then h(x,y)
can also be segmented by using a single threshold of value T/k.
Thresholding.ppt
Simple Global Thresholding
• To partition the image histogram by using a single
threshold T.
• Then the image is scanned and labels are assigned.
• This technique is successful in highly controlled
environments.
Algorithm
Image Segmentation
Thresholding.ppt
Basic Adaptive Thresholding
Optimal Thresholding
• The histogram of an image containing two
principal brightness regions can be
considered an estimate of the brightness
probability density function p(z):
– the sum (or mixture) of two unimodal densities
(one for light, one for dark regions).
Threshold Selection Based on
Boundary Characteristics
• The chances of selecting a good threshold
are increased if the histogram peaks are:
– Tall
– Narrow
– Symmetric
– Separated by deep valleys
Threshold Selection Based on
Boundary Characteristics
• One way to improve the shape of histograms
is to consider only those pixels that lie on or
near the boundary between objects and the
background.
– Thus, histograms would be less dependent on the
relative sizes of objects and the background.
Image Segmentation
Image Segmentation
Thresholds Based on
Several Variables
• When a sensor makes available more than
one variable to characterize each pixel in an
image (e.g. color imaging, RGB)
Thresholds Based on
Several Variables
• Each pixel is characterized by 3 values, and
the histogram becomes 3D. So thresholding
now is concerned with finding clusters of
points in 3D space.
– Instead of the RGB model, the HSI model might
be used too.
–
–Ri is a connected region, i = 1, 2, …, n
–Ri ∩ Rj = 0 for all i and j, i≠j
–P(Ri) = TRUE for i = 1, 2, …, n
–P(Ri ⋃ Rj) = FALSE for i≠j
Region-Oriented Segmentation
• Segmentation is a process that partitions R
into n subregions R1, R2, …, Rn such that:
R
R
n
i
i 


1
Region Splitting and Merging
• Subdivide an image initially into a set of
arbitrary, disjointed regions and then merge
and/or split the regions in an attempt to
satisfy the conditions of region-oriented
segmentation.
• Quadtree-based algorithm
Region Splitting and Merging
• Procedure:
– Split into 4 disjointed quadrants any region Ri
where P(Ri) = FALSE
– Merge any adjacent regions Rj and Rk for which
P(Rj ∪ Rk) = TRUE
– Stop when no further splitting or merging is
possible.
Image Segmentation

More Related Content

PDF
Feature detection and matching
PPTX
Image Enhancement in Spatial Domain
PPTX
SPATIAL FILTERING IN IMAGE PROCESSING
PPTX
Region based segmentation
PDF
DIGITAL IMAGE PROCESSING - LECTURE NOTES
PPTX
Histogram Processing
PPT
Chapter 13. Trends and Research Frontiers in Data Mining.ppt
PDF
Lecture 15 DCT, Walsh and Hadamard Transform
Feature detection and matching
Image Enhancement in Spatial Domain
SPATIAL FILTERING IN IMAGE PROCESSING
Region based segmentation
DIGITAL IMAGE PROCESSING - LECTURE NOTES
Histogram Processing
Chapter 13. Trends and Research Frontiers in Data Mining.ppt
Lecture 15 DCT, Walsh and Hadamard Transform

What's hot (20)

PPT
Image segmentation
PPSX
Edge Detection and Segmentation
PPTX
Edge Detection using Hough Transform
PPTX
Intensity Transformation and Spatial filtering
PPT
Image Restoration
PPTX
Chapter 9 morphological image processing
PPTX
Image Smoothing using Frequency Domain Filters
PPSX
Image Processing: Spatial filters
PPTX
Digital Image restoration
PPTX
Image Representation & Descriptors
PPTX
Image Enhancement using Frequency Domain Filters
PPTX
COM2304: Digital Image Fundamentals - I
PPTX
Psuedo color
PDF
PPTX
Smoothing Filters in Spatial Domain
PPTX
Simultaneous Smoothing and Sharpening of Color Images
PPTX
Fundamentals and image compression models
PDF
Image processing, Noise, Noise Removal filters
Image segmentation
Edge Detection and Segmentation
Edge Detection using Hough Transform
Intensity Transformation and Spatial filtering
Image Restoration
Chapter 9 morphological image processing
Image Smoothing using Frequency Domain Filters
Image Processing: Spatial filters
Digital Image restoration
Image Representation & Descriptors
Image Enhancement using Frequency Domain Filters
COM2304: Digital Image Fundamentals - I
Psuedo color
Smoothing Filters in Spatial Domain
Simultaneous Smoothing and Sharpening of Color Images
Fundamentals and image compression models
Image processing, Noise, Noise Removal filters
Ad

Similar to Thresholding.ppt (20)

PPTX
PDF
Lecture 9&10 computer vision segmentation-no_task
PPTX
Digital Image Processing
PPTX
Image seg using_thresholding
PPTX
08 cie552 image_segmentation
PPT
Im seg04
PPT
ImSeg04 (2).ppt
PPT
ImSeg04.ppt
PPT
Spatial filtering
PPT
Image formation of how it is segmented process
PPT
Chapter10 image segmentation
PPTX
2. filtering basics
PPTX
Segmentation is preper concept to hands.pptx
PPT
Data preprocessing
PDF
bstract Point processing uses only the information in individual pixels to pr...
PDF
Test
PPTX
Image segmentation
PDF
Different Image Segmentation Techniques for Dental Image Extraction
PPTX
Support vector machine
PDF
filter based texture analysis method texture Analysis gabor filter.pdf
Lecture 9&10 computer vision segmentation-no_task
Digital Image Processing
Image seg using_thresholding
08 cie552 image_segmentation
Im seg04
ImSeg04 (2).ppt
ImSeg04.ppt
Spatial filtering
Image formation of how it is segmented process
Chapter10 image segmentation
2. filtering basics
Segmentation is preper concept to hands.pptx
Data preprocessing
bstract Point processing uses only the information in individual pixels to pr...
Test
Image segmentation
Different Image Segmentation Techniques for Dental Image Extraction
Support vector machine
filter based texture analysis method texture Analysis gabor filter.pdf
Ad

Recently uploaded (20)

PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
III.4.1.2_The_Space_Environment.p pdffdf
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
PPT on Performance Review to get promotions
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PDF
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
PPTX
Fundamentals of safety and accident prevention -final (1).pptx
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
DOCX
573137875-Attendance-Management-System-original
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
Safety Seminar civil to be ensured for safe working.
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
III.4.1.2_The_Space_Environment.p pdffdf
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPT on Performance Review to get promotions
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Embodied AI: Ushering in the Next Era of Intelligent Systems
Foundation to blockchain - A guide to Blockchain Tech
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
Fundamentals of safety and accident prevention -final (1).pptx
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
573137875-Attendance-Management-System-original
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Safety Seminar civil to be ensured for safe working.

Thresholding.ppt

  • 2. Thresholding • In A: light objects in dark background • To extract the objects: – Select a T that separates the objects from the background – i.e. any (x,y) for which f(x,y)>T is an object point.
  • 3. Thresholding • In B: a more general case of this approach (multilevel thresholding) • So: (x,y) belongs: – To one object class if T1<f(x,y)≤T2 – To the other if f(x,y)>T2 – To the background if f(x,y)≤T1
  • 4. Thresholding • A thresholded image:       T y x f T y x f y x g ) , ( if 0 ) , ( if 1 ) , ( (objects) (background)
  • 5. Thresholding • Thresholding can be viewed as an operation that involves tests against a function T of the form: )] , ( ), , ( , , [ y x f y x p y x T T  where p(x,y) denotes some local property of this point.
  • 6. Thresholding • When T depends only on f(x,y)  global threshold • When T depends on both f(x,y) and p(x,y)  local threshold • When T depends on x and y (in addition)  dynamic threshold
  • 7. Role of Illumination • f(x,y) = i(x,y) r(x,y) • A non-uniform illumination destroys the reflectance patterns that can be exploited by thresholding (e.g. for object extraction).
  • 8. Role of Illumination Solution g(x,y) = ki(x,y), – Then, for any image f(x,y) = i(x,y) r(x,y), divide by g(x,y). This yields: ) , ( ) , ( ) , ( ) , ( ) , ( y x ki y x r y x i y x g y x f  k y x r y x h ) , ( ) , (  if r(x,y) can be segmented by using a single threshold T, then h(x,y) can also be segmented by using a single threshold of value T/k.
  • 10. Simple Global Thresholding • To partition the image histogram by using a single threshold T. • Then the image is scanned and labels are assigned. • This technique is successful in highly controlled environments.
  • 15. Optimal Thresholding • The histogram of an image containing two principal brightness regions can be considered an estimate of the brightness probability density function p(z): – the sum (or mixture) of two unimodal densities (one for light, one for dark regions).
  • 16. Threshold Selection Based on Boundary Characteristics • The chances of selecting a good threshold are increased if the histogram peaks are: – Tall – Narrow – Symmetric – Separated by deep valleys
  • 17. Threshold Selection Based on Boundary Characteristics • One way to improve the shape of histograms is to consider only those pixels that lie on or near the boundary between objects and the background. – Thus, histograms would be less dependent on the relative sizes of objects and the background.
  • 20. Thresholds Based on Several Variables • When a sensor makes available more than one variable to characterize each pixel in an image (e.g. color imaging, RGB)
  • 21. Thresholds Based on Several Variables • Each pixel is characterized by 3 values, and the histogram becomes 3D. So thresholding now is concerned with finding clusters of points in 3D space. – Instead of the RGB model, the HSI model might be used too.
  • 22. – –Ri is a connected region, i = 1, 2, …, n –Ri ∩ Rj = 0 for all i and j, i≠j –P(Ri) = TRUE for i = 1, 2, …, n –P(Ri ⋃ Rj) = FALSE for i≠j Region-Oriented Segmentation • Segmentation is a process that partitions R into n subregions R1, R2, …, Rn such that: R R n i i    1
  • 23. Region Splitting and Merging • Subdivide an image initially into a set of arbitrary, disjointed regions and then merge and/or split the regions in an attempt to satisfy the conditions of region-oriented segmentation. • Quadtree-based algorithm
  • 24. Region Splitting and Merging • Procedure: – Split into 4 disjointed quadrants any region Ri where P(Ri) = FALSE – Merge any adjacent regions Rj and Rk for which P(Rj ∪ Rk) = TRUE – Stop when no further splitting or merging is possible.