Overviewofthresholding
Overviewofthresholding
net/publication/342038946
CITATION READS
1 8,409
1 author:
Prathima Guruprasad
RVITM
30 PUBLICATIONS 27 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
Word image identification for handwritten scripts using data visualization View project
All content following this page was uploaded by Prathima Guruprasad on 09 June 2020.
Abstract: Thresholding is the simplest method (sets of pixels, also known as super pixels). The goal
of image segmentation. From a grayscale image, of segmentation is to simplify and/or change the
thresholding can be used to create binary representation of an image into something that is
images. Thresholding methods are categorized more meaningful and easier to analyze.
into six groups based on the information the Object recognition : The task of finding and
algorithm manipulates, in this paper we focus on identifying objects in an image or video sequence.
different clustering-based Thresholding
methods. We analyze various image pre-
processing methods, categorize them, and
IMAGE
express their formulas under a uniform notation.
ACQUISITION
The description on Otsu thresholding method
along with histogram (based on intensity) and
result is documented. And according to our
survey Otsu thresholding is better.
IMAGE
PREPROCESSING
1. INTRODUCTION
Computer vision is a field that include methods
for acquiring, processing , analyzing and SEGMENTATION
understanding of images.
The computer vision includes various stages as
shown in flow diagram.
Image Acquisition: Image acquisition is the REPRESENTATION
creation of digital images, such as of a physical AND
scene or of the interior structure of an object. DESCRIPTION
Image preprocessing: The technique of
enhancing data images which involves removing
low-frequency background noise, normalizing the
intensity of the individual particles images, OBJECT
removing reflections, and masking portions of RECOGNITION
images.
Image segmentation : The process of
partitioning a digital image into multiple segments Fig-1 : Basic steps in Image Processing
. 6) Local methods: adapt the threshold value on
each pixel to the local image characteristics. In
1.1 THRESHOLDING
these methods, a different threshold-value T is
Thresholding is the process of creating black and selected for each pixel in the image.
white image out of a gray scale image by setting
exactly those pixels to white whose value is above a 2 Clustering-based Methods:
given threshold, setting other pixels to black.
Grayscale image by thresholding can be used to The K-means algorithm is an iterative technique
create binary images. that is used to partition an image into K clusters.
The simple thresholding methods involves
replacing each pixel in an image with a black pixel Algorithm:
if the image intensity src(x,y) less than some fixed
constant T (that is, src(x,y) <T), or a white pixel if 1. Pick K cluster centers, either randomly or
the image intensity is greater than that constant. based on some heuristic.
Categorizing Thresholding Methods: To make 2. Assign each pixel in the image to the cluster
thresholding completely automated, it is necessary that minimizes the distance between the
for the computer to automatically select the pixel and the cluster center.
threshold T.
3. Re-compute the cluster centers by averaging
Sezgin and Sankur (2004) categorize thresholding all of the pixels in the cluster.
methods into the following six groups based on the
information the algorithm manipulates. 4. Repeat steps 2 and 3 until convergence is
attained (i.e. no pixels change clusters).
1) Histogram shape-based methods: where, for
example, the peaks, valleys and curvatures of the In this case, distance is the squared or absolute
smoothed histogram are analyzed to calculate difference between a pixel and a cluster center. The
threshold value. difference is typically based on pixel color,
intensity, texture, and location, or a weighted
2) Clustering-based methods: where the gray- combination of these factors. K can be selected
level samples are clustered in two parts as manually, randomly, or by a heuristic. This
background and foreground (object), or alternately algorithm is guaranteed to converge, but it may not
are modeled as a mixture of two Gaussians return the optimal solution. The quality of the
solution depends on the initial set of clusters and the
3) Entropy-based methods: result in algorithms
value of K.
that use the entropy of the foreground and
background regions, the cross-entropy between the 2.1 Types of thresholding methods :
original and binarized image, etc.
1) Threshold Binary
4) Object Attribute-based methods: search a
measure of similarity between the gray-level and Formula:
the binarized images, such as fuzzy shape
max Val if src( x, y ) thresh
similarity, edge coincidence, etc. dst( x, y )
0 otherwise
5) Spatial methods: use higher-order probability
distribution and/or correlation between pixels. Implementation:
value = value > threshold ? maxVal : 0 processing, Otsu's method is named after Nobuyuki
Otsu, is used to automatically perform the reduction
2) Threshold Binary, Inverted of a gray level image to a binary image.
The algorithm assumes that the image contains two
Formula: classes of pixels following bi-modal histogram
(foreground pixels and background pixels), it then
0 if src( x, y ) thresh calculates the optimum threshold separating the two
dst( x, y )
max Val otherwise classes so that their combined spread (intra-class
variance) is minimal, or equivalently (because the
Implementation: sum of pair wise squared distances is constant), so
that their inter-class variance is maximal.
value = value > threshold ? 0 : max_Val
3.1 Algorithm:
3) Truncate
1) Compute histogram and probabilities of
Formula: each intensity level.
(a) (b)
5.Conclusion
In our above study on image pre-processing, we
found that Otsu method eliminate the unwanted and
redundant data from the image by retaining only