An Implementation of K-Means Clustering For Efficient Image Segmentation
An Implementation of K-Means Clustering For Efficient Image Segmentation
An Implementation of K-Means Clustering For Efficient Image Segmentation
Background Images
1
Aswin Kumer S V, 2Dr E Mohan
1
Associate Professor, Department of Electronics and Communication Engineering,
Koneru Lakshmaiah Education Foundation, Vaddeswaram, AP, India
2
Professor, Department of Electronics and Communication Engineering, Lord
Venkateswara Engineering College
1
svaswin@gmail.com, 2emohan1971@gmail.com
ABSTRACT
The image segmentation is the process of finding and grouping the correlated pixels in the
particular image. There are different types are available find the correlated pixels in the
image. In this paper, the K-Means Clustering is used for segmentation to observe the different
image objects in an image. At first, the input samples are converted into Gray scale images,
after that those images are processed by K-Means clustering to produce the segmented image
output. The K-Means based on the grouping of similar pixels and the allotment of the center
pixels. By repeating the same process several times, then the output segmented image will
have excellent object discriminations. Out of several algorithm for image segmentation, the
K-Means clustering will provide good results. The objects discrimination is purely based on
the correlation of pixels available in the image. After processing, the image reshaping also
performed for better visualisation of the segmented image.
KEYWORDS: Image Processing, Image Segmentation, K-Means Clustering, Cluster
Centers, Label Function, Reshaping
1. INTRODUCTION
In the field of image processing [3], there is a similarity between the object tracking [5],
object detection and object discrimination [1]. The image segmentation concept is mostly
related with the concept of object discrimination in an image [2]. The image detail will be
preserved in every concept of image processing [4], which is also applicable for the
segmentation [6]. The clustering is based on the observation of the correlated pixels in the
particular frame [8] and forming those pixels together [7]. The pixel forming has the center
pixel [10], which is also to be decided by the algorithm [11], used to measure the distance
between the node pixel [9] and the correlated pixels for different object detection [12].
W.Zhao et.al, (2020) implements the machine learning concept with the help of Recurrent
Constraint Network for image segmentation. It gives more effective output because of the
supervised focus region technique. Y.Chen et.al, (2020) have done the approximation in the
pixels using the Low Rank Quaternion in a color image and processed better for good
segmentation results. V.Jatla et.al, (2020) uses a novel method of coronal hole segmentation,
the newly developed methodology improves the object discrimination in a better way.
X.Deng et.al, (2020) improved the resolution of an image along with the segmentation, which
are processed by the double coupled network. The ISTA is the type of network which is
newly implemented in the multi modal images.
2. RELATED WORK
L.Pan et.al, (2020) estimates the Flow of the frames during the movement of objects in an
image during segmentation. The video processing is also done like enhancing, deblurring, etc.
B.Kim et.al, (2020) implements deep learning algorithm to estimate the loss function
parameters to achieve the efficient image segmentation. I.Kajo et.al, (2020) also performed
the video processing to distinguish the foreground and background information of the
particular frames. Additionally, the Tensor completion method is used as video frame
assistance. N. Hidalgo-Gavira et.al, (2020) used the conventional convolution method using
variational Bayesian formulas for the pathological images. Z. Huang et.al, (2020) used the
adaptive networks for scale estimations for the semantic object differentiation. H.Zhang et.al,
(2020) distinguishing the objects instantly using the SSD Filters. This is a single stage
approach which produces the effective segmentation results. M.Foare et.al, (2020) also
referred the Mumford-shah model which is already referred by the B.Kim et.al, (2020) but
the difference between these two implementations are one researcher uses the loss function
and another researcher uses the discrete method with minimization. The alternate data points
are helpful for the object discrimination. F.Yuan et.al, (2020) also implements the Neural
Network to estimate the smoke density. The wavelets are also used to find the unknown data
points with the help of known data point parameters. D.O.Medly et.al, (2020) implemented
the robust algorithm for exact placements of the objects. The shaping modal in the deep
learning neural network helps to achieve these proper placements of an objects. S.Razavikia
et.al, (2020) also used the shaping of an image after the blur filter is applied to an image. The
process of reconstruction and recovery of the image is done by ranking the data points
available in the image which are estimated by Hankel Structured modal. A.Chuchvara et.al,
(2020) tried for the faster estimation of the data points with high accuracy using the sparse
representation parameters for image segmentation.
3. PROPOSED METHODOLOGY
The image is applied in the input side will be converted into Gray image as shown in Fig.3
and the K-Means clustering is applied to get the Segmented image at the output which is
shown in Fig.4.
Where,
K(C) = K-Means Clustering
m=number of center clusters
n=number of data points of final cluster
D=set of data points
C=set of clusters
v) Finally, the image segmentation output is obtained for all input images as shown
in the figure 4.
4. RESULTS AND DISCUSSIONS
To implement this K means clustering based image segmentation, there are three number of
natural sample images with different scenes and different luminance conditions are taken
which are shown in figure 2.
(a)
(b)
(c)
(a)
(b)
(c)
Fig.3. (a), (b) and (c), Images After RGB to Gray Conversion
(a)
(b)
(c)