SlideShare a Scribd company logo
FUZZY IMAGE PROCESSING
Fuzzy c-means clustering
Farah Al-Tufaili
Introduction to fuzzy image
What Is Fuzzy Image Processing (FIP)?
◦ Under fuzzy image processing (FIP) we understand the collection of all
methodologies in digital image processing, with which the images, their
segments or features which represent these images or their segments, are
understood, represented and processed as fuzzy sets. In which manner this
takes place, depends on the problem definition and on the respective fuzzy
method. This definition refers naturally to other methodologies and not to
image processing as A separate branch of science. Thus the misunderstanding
has to be avoided that fuzzy image processing may replace the classical
image processing.
Introduction to fuzzy image
◦ Fuzzy image processing is the collection of all approaches that understand,
represent and process the images, their segments and features as fuzzy sets.
The representation and processing depend on the selected fuzzy technique
and on the problem to be solved.
◦ Fuzzy image processing has three main stages: image fuzzification,
modification of membership values, and, if necessary, image defuzzification.
Fuzzy c-means clustering
◦In fuzzy clustering, every point has a degree of
belonging to clusters, as in fuzzy logic, rather
than belonging completely to just one cluster.
Thus, points on the edge of a cluster, may be in
the cluster to a lesser degree than points in the
center of cluster. An overview and comparison
of different fuzzy clustering algorithms is
available.
Fuzzy c-means clustering
◦ The FCM algorithm is one of the most widely used fuzzy clustering algorithms.
This technique was originally introduced by Professor Jim Bezdek in 1981.
◦ The FCM algorithm attempts to partition a finite collection of elements X={,, ...,}
into a collection of c fuzzy clusters with respect to some given criterion.
◦ The algorithm is based on minimization of the following objective function:
◦ where m (the Fuzziness Exponent) is any real number greater than 1, N is the
number of data, C is the number of clusters, uij is the degree of membership of
xi in the cluster j, xi is the ith of d-dimensional measured data, cj is the d-
dimension center of the cluster, and ||*|| is any norm expressing the similarity
between any measured data and the center.
Fuzzy c-means clustering
◦ Given a finite set of data, the algorithm returns a list of c cluster centers V, such
that
V=vi, i =1, 2, ... , c
◦ and a membership matrix U such that
U = uij , i =1, ..., c , j =1,..., n
◦ Where uij is a numerical value in [0, 1] that tells the degree to which the
element xj belongs to the i-th cluster.
◦ Summation of membership of each data point should be equal to one.
Parameters of the FCM algorithm
Before using the FCM algorithm, the following parameters
must be specified:
◦ the number of clusters, c,
◦ the fuzziness exponent, m, where m is any real number
greater than 1
Steps:
◦ Step1: choose random centroid at least 2
◦ Step2: compute membership matrix.
where ||xi - cj|| is the Distance from point i to current cluster centre j,
||xi - ck|| is the Distance from point i to other cluster centers k.(note if we have 2D
data we use euclidean distance).
◦ Step3: calculate the c cluster centers.
Example:
◦ Let x=[2 3 4 5 6 7 8 9 10 11] , m=2, number of cluster C=2, c1=3
, c2=11.
◦ Step 1: for first iteration calculate membership matrix.
◦ For node 2 (1st element):
U11 =
The membership of first node to first cluster
U12 =
The membership of first node to second cluster
%78.98
82
81
81
1
1
1
112
32
32
32
1
12
2
12
2


















 
%22.1
82
1
181
1
112
112
32
112
1
12
2
12
2


















 
2
3
4
5
6
7
8
9
10
11
3
11
0
1
2
3
4
5
6
7
8
9
10
11
12
0 1 2 3 4 5 6 7 8 9 10 11 12
item centers
◦ For node 3 (2nd element):
U21 = 100%
The membership of second node to first cluster
U22 = 0%
The membership of second node to second cluster
◦ For node 4 (3rd element):
U31 =
The membership of first node to first cluster
U32 =
The membership of first node to second cluster
%98
49
50
1
49
1
1
1
114
34
34
34
1
12
2
12
2


















 
%2
50
1
149
1
114
114
34
114
1
12
2
12
2


















 
◦ And so on until we complete the set and get U matrix
X cluster1 cluster2
2 0.9878 0.0122
3 1.0000 0
4 0.9800 0.0200
5 0.9000 0.1000
6 0.7353 0.2647
7 0.5000 0.5000
8 0.2647 0.7353
9 0.1000 0.9000
10 0.0200 0.9800
11 0 1.0000
2
3
4
5
6
7
8
9
10
11
4.0049
9.4576
0
1
2
3
4
5
6
7
8
9
10
11
12
0 1 2 3 4 5 6 7 8 9 10 11 12
item centers
◦ Step2: now we compute new centers
c1= = 4.0049
And c2=9.4576
...%)50(%)98(%)100(%)78.98(
...7*%)50(4*%)98(3*%)100(2*%)78.98(
2222
2222


◦ Repeat step until there is visible change.
◦ Final iteration :
◦ U =
X cluster1 cluster2
2 0.9357 0.0643
3 0.9803 0.0197
4 0.9993 0.0007
5 0.9303 0.0697
6 0.6835 0.3165
7 0.3167 0.6833
8 0.0698 0.9302
9 0.0007 0.9993
10 0.0197 0.9803
11 0.0642 0.9358
◦ c1 = 3.8688
◦ c2 = 9.1314
2
3
4
5
6
7
8
9
10
11
3.8688
9.1314
0
1
2
3
4
5
6
7
8
9
10
11
12
0 1 2 3 4 5 6 7 8 9 10 11 12
item centers
Matlab implementation:
x=[2 3 4 5 6 7 8 9 10 11];
c1=3;c2=11;
for j=1:1
k=1;
for i=1:length(x)
u1(k)=1/(((x(i)-c1)/(x(i)-c1))^2+((x(i)-c1)/(x(i)-c2))^2);
if(isnan(u1(k)))
u1(k)=1;
end
u2(k)=1/(((x(i)-c2)/(x(i)-c1))^2+((x(i)-c2)/(x(i)-c2))^2);
if(isnan(u2(k)))
u2(k)=1;
end
k=k+1;
end
u=[u1;u2;u1+u2]'
c11=sum((u1.^2).*x)/sum(u1.^2)
c22=sum((u2.^2).*x)/sum(u2.^2)
c1=c11;c2=c22;
end
Output for first iteration:
u =
cluster1 cluster2 summation
0.9878 0.0122 1.0000
1.0000 0 1.0000
0.9800 0.0200 1.0000
0.9000 0.1000 1.0000
0.7353 0.2647 1.0000
0.5000 0.5000 1.0000
0.2647 0.7353 1.0000
0.1000 0.9000 1.0000
0.0200 0.9800 1.0000
0 1.0000 1.0000
c11 =
4.0049
c22 =
9.4576
Advantages:
1. Gives best result for overlapped data set and comparatively
better than k-means algorithm.
2. Unlike k-means where data point must exclusively belong to one
cluster center here data point is assigned membership to each
cluster center as a result of which data point may belong to
more than one cluster center.
◦ Demo on FCM check this link : http://aydos.com/fcm

More Related Content

What's hot

Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation pptGichelle Amon
 
K means clustering
K means clusteringK means clustering
K means clustering
keshav goyal
 
Radial basis function network ppt bySheetal,Samreen and Dhanashri
Radial basis function network ppt bySheetal,Samreen and DhanashriRadial basis function network ppt bySheetal,Samreen and Dhanashri
Radial basis function network ppt bySheetal,Samreen and Dhanashri
sheetal katkar
 
Support vector machine
Support vector machineSupport vector machine
Support vector machine
SomnathMore3
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
asodariyabhavesh
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
Kalyan Acharjya
 
Deep learning
Deep learningDeep learning
Deep learning
Kuppusamy P
 
Back propagation
Back propagationBack propagation
Back propagation
Nagarajan
 
Image segmentation based on color
Image segmentation based on colorImage segmentation based on color
Image segmentation based on color
eSAT Journals
 
Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)
Kalyan Acharjya
 
Fuzzy c means manual work
Fuzzy c means manual workFuzzy c means manual work
Fuzzy c means manual work
Dr.E.N.Sathishkumar
 
Presentation on deformable model for medical image segmentation
Presentation on deformable model for medical image segmentationPresentation on deformable model for medical image segmentation
Presentation on deformable model for medical image segmentation
Subhash Basistha
 
Texture in image processing
Texture in image processing Texture in image processing
Texture in image processing
Anna Aquarian
 
Support vector machine
Support vector machineSupport vector machine
Support vector machine
zekeLabs Technologies
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
Md Shabir Alam
 
Point processing
Point processingPoint processing
Point processing
panupriyaa7
 
Radial Basis Function
Radial Basis FunctionRadial Basis Function
Radial Basis Function
Madhawa Gunasekara
 
Activation function
Activation functionActivation function
Activation function
Astha Jain
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
Mathankumar S
 

What's hot (20)

Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation ppt
 
K means clustering
K means clusteringK means clustering
K means clustering
 
Radial basis function network ppt bySheetal,Samreen and Dhanashri
Radial basis function network ppt bySheetal,Samreen and DhanashriRadial basis function network ppt bySheetal,Samreen and Dhanashri
Radial basis function network ppt bySheetal,Samreen and Dhanashri
 
Support vector machine
Support vector machineSupport vector machine
Support vector machine
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
 
Deep learning
Deep learningDeep learning
Deep learning
 
Back propagation
Back propagationBack propagation
Back propagation
 
Image segmentation based on color
Image segmentation based on colorImage segmentation based on color
Image segmentation based on color
 
Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)
 
Fuzzy c means manual work
Fuzzy c means manual workFuzzy c means manual work
Fuzzy c means manual work
 
Presentation on deformable model for medical image segmentation
Presentation on deformable model for medical image segmentationPresentation on deformable model for medical image segmentation
Presentation on deformable model for medical image segmentation
 
Texture in image processing
Texture in image processing Texture in image processing
Texture in image processing
 
Support vector machine
Support vector machineSupport vector machine
Support vector machine
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
 
Point processing
Point processingPoint processing
Point processing
 
Radial Basis Function
Radial Basis FunctionRadial Basis Function
Radial Basis Function
 
Activation function
Activation functionActivation function
Activation function
 
Edge detection
Edge detectionEdge detection
Edge detection
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
 

Similar to Fuzzy image processing- fuzzy C-mean clustering

Dynamic clustering algorithm using fuzzy c means
Dynamic clustering algorithm using fuzzy c meansDynamic clustering algorithm using fuzzy c means
Dynamic clustering algorithm using fuzzy c means
Wrishin Bhattacharya
 
Fuzzy c means_realestate_application
Fuzzy c means_realestate_applicationFuzzy c means_realestate_application
Fuzzy c means_realestate_applicationCemal Ardil
 
Implementing Minimum Error Rate Classifier
Implementing Minimum Error Rate ClassifierImplementing Minimum Error Rate Classifier
Implementing Minimum Error Rate Classifier
Dipesh Shome
 
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdfCD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
RajJain516913
 
00463517b1e90c1e63000000
00463517b1e90c1e6300000000463517b1e90c1e63000000
00463517b1e90c1e63000000Ivonne Liu
 
Survey on clustering based color image segmentation and novel approaches to f...
Survey on clustering based color image segmentation and novel approaches to f...Survey on clustering based color image segmentation and novel approaches to f...
Survey on clustering based color image segmentation and novel approaches to f...
eSAT Journals
 
Survey on clustering based color image segmentation
Survey on clustering based color image segmentationSurvey on clustering based color image segmentation
Survey on clustering based color image segmentation
eSAT Publishing House
 
Introduction to Applied Machine Learning
Introduction to Applied Machine LearningIntroduction to Applied Machine Learning
Introduction to Applied Machine Learning
SheilaJimenezMorejon
 
Fcm1
Fcm1Fcm1
C017121219
C017121219C017121219
C017121219
IOSR Journals
 
Automatic Determination Number of Cluster for NMKFC-Means Algorithms on Image...
Automatic Determination Number of Cluster for NMKFC-Means Algorithms on Image...Automatic Determination Number of Cluster for NMKFC-Means Algorithms on Image...
Automatic Determination Number of Cluster for NMKFC-Means Algorithms on Image...
IOSR Journals
 
Mm chap08 -_lossy_compression_algorithms
Mm chap08 -_lossy_compression_algorithmsMm chap08 -_lossy_compression_algorithms
Mm chap08 -_lossy_compression_algorithms
Eellekwameowusu
 
k-mean-clustering.ppt
k-mean-clustering.pptk-mean-clustering.ppt
k-mean-clustering.ppt
RanimeLoutar
 
k-mean-Clustering impact on AI using DSS
k-mean-Clustering impact on AI using DSSk-mean-Clustering impact on AI using DSS
k-mean-Clustering impact on AI using DSS
MarkNaguibElAbd
 
MAGNETIC RESONANCE BRAIN IMAGE SEGMENTATION
MAGNETIC RESONANCE BRAIN IMAGE SEGMENTATIONMAGNETIC RESONANCE BRAIN IMAGE SEGMENTATION
MAGNETIC RESONANCE BRAIN IMAGE SEGMENTATION
VLSICS Design
 
IRJET - Hand Gesture Recognition to Perform System Operations
IRJET -  	  Hand Gesture Recognition to Perform System OperationsIRJET -  	  Hand Gesture Recognition to Perform System Operations
IRJET - Hand Gesture Recognition to Perform System Operations
IRJET Journal
 
K mean-clustering algorithm
K mean-clustering algorithmK mean-clustering algorithm
K mean-clustering algorithm
parry prabhu
 

Similar to Fuzzy image processing- fuzzy C-mean clustering (20)

Dynamic clustering algorithm using fuzzy c means
Dynamic clustering algorithm using fuzzy c meansDynamic clustering algorithm using fuzzy c means
Dynamic clustering algorithm using fuzzy c means
 
Fuzzy c means_realestate_application
Fuzzy c means_realestate_applicationFuzzy c means_realestate_application
Fuzzy c means_realestate_application
 
Cc24529533
Cc24529533Cc24529533
Cc24529533
 
Implementing Minimum Error Rate Classifier
Implementing Minimum Error Rate ClassifierImplementing Minimum Error Rate Classifier
Implementing Minimum Error Rate Classifier
 
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdfCD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
 
00463517b1e90c1e63000000
00463517b1e90c1e6300000000463517b1e90c1e63000000
00463517b1e90c1e63000000
 
Survey on clustering based color image segmentation and novel approaches to f...
Survey on clustering based color image segmentation and novel approaches to f...Survey on clustering based color image segmentation and novel approaches to f...
Survey on clustering based color image segmentation and novel approaches to f...
 
Survey on clustering based color image segmentation
Survey on clustering based color image segmentationSurvey on clustering based color image segmentation
Survey on clustering based color image segmentation
 
Introduction to Applied Machine Learning
Introduction to Applied Machine LearningIntroduction to Applied Machine Learning
Introduction to Applied Machine Learning
 
Fcm1
Fcm1Fcm1
Fcm1
 
Fcm1
Fcm1Fcm1
Fcm1
 
C017121219
C017121219C017121219
C017121219
 
Automatic Determination Number of Cluster for NMKFC-Means Algorithms on Image...
Automatic Determination Number of Cluster for NMKFC-Means Algorithms on Image...Automatic Determination Number of Cluster for NMKFC-Means Algorithms on Image...
Automatic Determination Number of Cluster for NMKFC-Means Algorithms on Image...
 
Project PPT
Project PPTProject PPT
Project PPT
 
Mm chap08 -_lossy_compression_algorithms
Mm chap08 -_lossy_compression_algorithmsMm chap08 -_lossy_compression_algorithms
Mm chap08 -_lossy_compression_algorithms
 
k-mean-clustering.ppt
k-mean-clustering.pptk-mean-clustering.ppt
k-mean-clustering.ppt
 
k-mean-Clustering impact on AI using DSS
k-mean-Clustering impact on AI using DSSk-mean-Clustering impact on AI using DSS
k-mean-Clustering impact on AI using DSS
 
MAGNETIC RESONANCE BRAIN IMAGE SEGMENTATION
MAGNETIC RESONANCE BRAIN IMAGE SEGMENTATIONMAGNETIC RESONANCE BRAIN IMAGE SEGMENTATION
MAGNETIC RESONANCE BRAIN IMAGE SEGMENTATION
 
IRJET - Hand Gesture Recognition to Perform System Operations
IRJET -  	  Hand Gesture Recognition to Perform System OperationsIRJET -  	  Hand Gesture Recognition to Perform System Operations
IRJET - Hand Gesture Recognition to Perform System Operations
 
K mean-clustering algorithm
K mean-clustering algorithmK mean-clustering algorithm
K mean-clustering algorithm
 

More from Farah M. Altufaili

A Correlative Information-Theoretic Measure for Image Similarity
A Correlative Information-Theoretic Measure for Image SimilarityA Correlative Information-Theoretic Measure for Image Similarity
A Correlative Information-Theoretic Measure for Image Similarity
Farah M. Altufaili
 
Fp growth
Fp growthFp growth
Writing a good cv
Writing a good cvWriting a good cv
Writing a good cv
Farah M. Altufaili
 
Virtual Private Network VPN
Virtual Private Network VPNVirtual Private Network VPN
Virtual Private Network VPN
Farah M. Altufaili
 
Principal component analysis
Principal component analysisPrincipal component analysis
Principal component analysis
Farah M. Altufaili
 
Tiny encryption algorithm
Tiny encryption algorithmTiny encryption algorithm
Tiny encryption algorithm
Farah M. Altufaili
 
Polygon mesh
Polygon  meshPolygon  mesh
Polygon mesh
Farah M. Altufaili
 
Nanotechnology and its impact on modern computer
Nanotechnology and its impact on modern computerNanotechnology and its impact on modern computer
Nanotechnology and its impact on modern computer
Farah M. Altufaili
 

More from Farah M. Altufaili (10)

A Correlative Information-Theoretic Measure for Image Similarity
A Correlative Information-Theoretic Measure for Image SimilarityA Correlative Information-Theoretic Measure for Image Similarity
A Correlative Information-Theoretic Measure for Image Similarity
 
Fp growth
Fp growthFp growth
Fp growth
 
Stereo vision
Stereo visionStereo vision
Stereo vision
 
Writing a good cv
Writing a good cvWriting a good cv
Writing a good cv
 
Virtual Private Network VPN
Virtual Private Network VPNVirtual Private Network VPN
Virtual Private Network VPN
 
Principal component analysis
Principal component analysisPrincipal component analysis
Principal component analysis
 
Tiny encryption algorithm
Tiny encryption algorithmTiny encryption algorithm
Tiny encryption algorithm
 
Polygon mesh
Polygon  meshPolygon  mesh
Polygon mesh
 
Nanotechnology and its impact on modern computer
Nanotechnology and its impact on modern computerNanotechnology and its impact on modern computer
Nanotechnology and its impact on modern computer
 
Adversarial search
Adversarial search Adversarial search
Adversarial search
 

Recently uploaded

GBSN - Biochemistry (Unit 5) Chemistry of Lipids
GBSN - Biochemistry (Unit 5) Chemistry of LipidsGBSN - Biochemistry (Unit 5) Chemistry of Lipids
GBSN - Biochemistry (Unit 5) Chemistry of Lipids
Areesha Ahmad
 
Multi-source connectivity as the driver of solar wind variability in the heli...
Multi-source connectivity as the driver of solar wind variability in the heli...Multi-source connectivity as the driver of solar wind variability in the heli...
Multi-source connectivity as the driver of solar wind variability in the heli...
Sérgio Sacani
 
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATIONPRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
ChetanK57
 
(May 29th, 2024) Advancements in Intravital Microscopy- Insights for Preclini...
(May 29th, 2024) Advancements in Intravital Microscopy- Insights for Preclini...(May 29th, 2024) Advancements in Intravital Microscopy- Insights for Preclini...
(May 29th, 2024) Advancements in Intravital Microscopy- Insights for Preclini...
Scintica Instrumentation
 
What is greenhouse gasses and how many gasses are there to affect the Earth.
What is greenhouse gasses and how many gasses are there to affect the Earth.What is greenhouse gasses and how many gasses are there to affect the Earth.
What is greenhouse gasses and how many gasses are there to affect the Earth.
moosaasad1975
 
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Sérgio Sacani
 
4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf
4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf
4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf
ssuserbfdca9
 
Orion Air Quality Monitoring Systems - CWS
Orion Air Quality Monitoring Systems - CWSOrion Air Quality Monitoring Systems - CWS
Orion Air Quality Monitoring Systems - CWS
Columbia Weather Systems
 
Comparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebratesComparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebrates
sachin783648
 
THE IMPORTANCE OF MARTIAN ATMOSPHERE SAMPLE RETURN.
THE IMPORTANCE OF MARTIAN ATMOSPHERE SAMPLE RETURN.THE IMPORTANCE OF MARTIAN ATMOSPHERE SAMPLE RETURN.
THE IMPORTANCE OF MARTIAN ATMOSPHERE SAMPLE RETURN.
Sérgio Sacani
 
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
muralinath2
 
GBSN - Microbiology (Lab 4) Culture Media
GBSN - Microbiology (Lab 4) Culture MediaGBSN - Microbiology (Lab 4) Culture Media
GBSN - Microbiology (Lab 4) Culture Media
Areesha Ahmad
 
Hemostasis_importance& clinical significance.pptx
Hemostasis_importance& clinical significance.pptxHemostasis_importance& clinical significance.pptx
Hemostasis_importance& clinical significance.pptx
muralinath2
 
filosofia boliviana introducción jsjdjd.pptx
filosofia boliviana introducción jsjdjd.pptxfilosofia boliviana introducción jsjdjd.pptx
filosofia boliviana introducción jsjdjd.pptx
IvanMallco1
 
The ASGCT Annual Meeting was packed with exciting progress in the field advan...
The ASGCT Annual Meeting was packed with exciting progress in the field advan...The ASGCT Annual Meeting was packed with exciting progress in the field advan...
The ASGCT Annual Meeting was packed with exciting progress in the field advan...
Health Advances
 
EY - Supply Chain Services 2018_template.pptx
EY - Supply Chain Services 2018_template.pptxEY - Supply Chain Services 2018_template.pptx
EY - Supply Chain Services 2018_template.pptx
AlguinaldoKong
 
In silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptxIn silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptx
AlaminAfendy1
 
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Sérgio Sacani
 
Richard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlandsRichard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlands
Richard Gill
 
role of pramana in research.pptx in science
role of pramana in research.pptx in sciencerole of pramana in research.pptx in science
role of pramana in research.pptx in science
sonaliswain16
 

Recently uploaded (20)

GBSN - Biochemistry (Unit 5) Chemistry of Lipids
GBSN - Biochemistry (Unit 5) Chemistry of LipidsGBSN - Biochemistry (Unit 5) Chemistry of Lipids
GBSN - Biochemistry (Unit 5) Chemistry of Lipids
 
Multi-source connectivity as the driver of solar wind variability in the heli...
Multi-source connectivity as the driver of solar wind variability in the heli...Multi-source connectivity as the driver of solar wind variability in the heli...
Multi-source connectivity as the driver of solar wind variability in the heli...
 
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATIONPRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
 
(May 29th, 2024) Advancements in Intravital Microscopy- Insights for Preclini...
(May 29th, 2024) Advancements in Intravital Microscopy- Insights for Preclini...(May 29th, 2024) Advancements in Intravital Microscopy- Insights for Preclini...
(May 29th, 2024) Advancements in Intravital Microscopy- Insights for Preclini...
 
What is greenhouse gasses and how many gasses are there to affect the Earth.
What is greenhouse gasses and how many gasses are there to affect the Earth.What is greenhouse gasses and how many gasses are there to affect the Earth.
What is greenhouse gasses and how many gasses are there to affect the Earth.
 
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
 
4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf
4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf
4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf
 
Orion Air Quality Monitoring Systems - CWS
Orion Air Quality Monitoring Systems - CWSOrion Air Quality Monitoring Systems - CWS
Orion Air Quality Monitoring Systems - CWS
 
Comparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebratesComparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebrates
 
THE IMPORTANCE OF MARTIAN ATMOSPHERE SAMPLE RETURN.
THE IMPORTANCE OF MARTIAN ATMOSPHERE SAMPLE RETURN.THE IMPORTANCE OF MARTIAN ATMOSPHERE SAMPLE RETURN.
THE IMPORTANCE OF MARTIAN ATMOSPHERE SAMPLE RETURN.
 
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
 
GBSN - Microbiology (Lab 4) Culture Media
GBSN - Microbiology (Lab 4) Culture MediaGBSN - Microbiology (Lab 4) Culture Media
GBSN - Microbiology (Lab 4) Culture Media
 
Hemostasis_importance& clinical significance.pptx
Hemostasis_importance& clinical significance.pptxHemostasis_importance& clinical significance.pptx
Hemostasis_importance& clinical significance.pptx
 
filosofia boliviana introducción jsjdjd.pptx
filosofia boliviana introducción jsjdjd.pptxfilosofia boliviana introducción jsjdjd.pptx
filosofia boliviana introducción jsjdjd.pptx
 
The ASGCT Annual Meeting was packed with exciting progress in the field advan...
The ASGCT Annual Meeting was packed with exciting progress in the field advan...The ASGCT Annual Meeting was packed with exciting progress in the field advan...
The ASGCT Annual Meeting was packed with exciting progress in the field advan...
 
EY - Supply Chain Services 2018_template.pptx
EY - Supply Chain Services 2018_template.pptxEY - Supply Chain Services 2018_template.pptx
EY - Supply Chain Services 2018_template.pptx
 
In silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptxIn silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptx
 
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
 
Richard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlandsRichard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlands
 
role of pramana in research.pptx in science
role of pramana in research.pptx in sciencerole of pramana in research.pptx in science
role of pramana in research.pptx in science
 

Fuzzy image processing- fuzzy C-mean clustering

  • 1. FUZZY IMAGE PROCESSING Fuzzy c-means clustering Farah Al-Tufaili
  • 2. Introduction to fuzzy image What Is Fuzzy Image Processing (FIP)? ◦ Under fuzzy image processing (FIP) we understand the collection of all methodologies in digital image processing, with which the images, their segments or features which represent these images or their segments, are understood, represented and processed as fuzzy sets. In which manner this takes place, depends on the problem definition and on the respective fuzzy method. This definition refers naturally to other methodologies and not to image processing as A separate branch of science. Thus the misunderstanding has to be avoided that fuzzy image processing may replace the classical image processing.
  • 3. Introduction to fuzzy image ◦ Fuzzy image processing is the collection of all approaches that understand, represent and process the images, their segments and features as fuzzy sets. The representation and processing depend on the selected fuzzy technique and on the problem to be solved. ◦ Fuzzy image processing has three main stages: image fuzzification, modification of membership values, and, if necessary, image defuzzification.
  • 4. Fuzzy c-means clustering ◦In fuzzy clustering, every point has a degree of belonging to clusters, as in fuzzy logic, rather than belonging completely to just one cluster. Thus, points on the edge of a cluster, may be in the cluster to a lesser degree than points in the center of cluster. An overview and comparison of different fuzzy clustering algorithms is available.
  • 5. Fuzzy c-means clustering ◦ The FCM algorithm is one of the most widely used fuzzy clustering algorithms. This technique was originally introduced by Professor Jim Bezdek in 1981. ◦ The FCM algorithm attempts to partition a finite collection of elements X={,, ...,} into a collection of c fuzzy clusters with respect to some given criterion. ◦ The algorithm is based on minimization of the following objective function: ◦ where m (the Fuzziness Exponent) is any real number greater than 1, N is the number of data, C is the number of clusters, uij is the degree of membership of xi in the cluster j, xi is the ith of d-dimensional measured data, cj is the d- dimension center of the cluster, and ||*|| is any norm expressing the similarity between any measured data and the center.
  • 6. Fuzzy c-means clustering ◦ Given a finite set of data, the algorithm returns a list of c cluster centers V, such that V=vi, i =1, 2, ... , c ◦ and a membership matrix U such that U = uij , i =1, ..., c , j =1,..., n ◦ Where uij is a numerical value in [0, 1] that tells the degree to which the element xj belongs to the i-th cluster. ◦ Summation of membership of each data point should be equal to one.
  • 7. Parameters of the FCM algorithm Before using the FCM algorithm, the following parameters must be specified: ◦ the number of clusters, c, ◦ the fuzziness exponent, m, where m is any real number greater than 1
  • 8. Steps: ◦ Step1: choose random centroid at least 2 ◦ Step2: compute membership matrix. where ||xi - cj|| is the Distance from point i to current cluster centre j, ||xi - ck|| is the Distance from point i to other cluster centers k.(note if we have 2D data we use euclidean distance). ◦ Step3: calculate the c cluster centers.
  • 9. Example: ◦ Let x=[2 3 4 5 6 7 8 9 10 11] , m=2, number of cluster C=2, c1=3 , c2=11. ◦ Step 1: for first iteration calculate membership matrix. ◦ For node 2 (1st element): U11 = The membership of first node to first cluster U12 = The membership of first node to second cluster %78.98 82 81 81 1 1 1 112 32 32 32 1 12 2 12 2                     %22.1 82 1 181 1 112 112 32 112 1 12 2 12 2                     2 3 4 5 6 7 8 9 10 11 3 11 0 1 2 3 4 5 6 7 8 9 10 11 12 0 1 2 3 4 5 6 7 8 9 10 11 12 item centers
  • 10. ◦ For node 3 (2nd element): U21 = 100% The membership of second node to first cluster U22 = 0% The membership of second node to second cluster
  • 11. ◦ For node 4 (3rd element): U31 = The membership of first node to first cluster U32 = The membership of first node to second cluster %98 49 50 1 49 1 1 1 114 34 34 34 1 12 2 12 2                     %2 50 1 149 1 114 114 34 114 1 12 2 12 2                    
  • 12. ◦ And so on until we complete the set and get U matrix X cluster1 cluster2 2 0.9878 0.0122 3 1.0000 0 4 0.9800 0.0200 5 0.9000 0.1000 6 0.7353 0.2647 7 0.5000 0.5000 8 0.2647 0.7353 9 0.1000 0.9000 10 0.0200 0.9800 11 0 1.0000 2 3 4 5 6 7 8 9 10 11 4.0049 9.4576 0 1 2 3 4 5 6 7 8 9 10 11 12 0 1 2 3 4 5 6 7 8 9 10 11 12 item centers
  • 13. ◦ Step2: now we compute new centers c1= = 4.0049 And c2=9.4576 ...%)50(%)98(%)100(%)78.98( ...7*%)50(4*%)98(3*%)100(2*%)78.98( 2222 2222  
  • 14. ◦ Repeat step until there is visible change. ◦ Final iteration : ◦ U = X cluster1 cluster2 2 0.9357 0.0643 3 0.9803 0.0197 4 0.9993 0.0007 5 0.9303 0.0697 6 0.6835 0.3165 7 0.3167 0.6833 8 0.0698 0.9302 9 0.0007 0.9993 10 0.0197 0.9803 11 0.0642 0.9358 ◦ c1 = 3.8688 ◦ c2 = 9.1314 2 3 4 5 6 7 8 9 10 11 3.8688 9.1314 0 1 2 3 4 5 6 7 8 9 10 11 12 0 1 2 3 4 5 6 7 8 9 10 11 12 item centers
  • 15. Matlab implementation: x=[2 3 4 5 6 7 8 9 10 11]; c1=3;c2=11; for j=1:1 k=1; for i=1:length(x) u1(k)=1/(((x(i)-c1)/(x(i)-c1))^2+((x(i)-c1)/(x(i)-c2))^2); if(isnan(u1(k))) u1(k)=1; end u2(k)=1/(((x(i)-c2)/(x(i)-c1))^2+((x(i)-c2)/(x(i)-c2))^2); if(isnan(u2(k))) u2(k)=1; end k=k+1; end u=[u1;u2;u1+u2]' c11=sum((u1.^2).*x)/sum(u1.^2) c22=sum((u2.^2).*x)/sum(u2.^2) c1=c11;c2=c22; end
  • 16. Output for first iteration: u = cluster1 cluster2 summation 0.9878 0.0122 1.0000 1.0000 0 1.0000 0.9800 0.0200 1.0000 0.9000 0.1000 1.0000 0.7353 0.2647 1.0000 0.5000 0.5000 1.0000 0.2647 0.7353 1.0000 0.1000 0.9000 1.0000 0.0200 0.9800 1.0000 0 1.0000 1.0000 c11 = 4.0049 c22 = 9.4576
  • 17. Advantages: 1. Gives best result for overlapped data set and comparatively better than k-means algorithm. 2. Unlike k-means where data point must exclusively belong to one cluster center here data point is assigned membership to each cluster center as a result of which data point may belong to more than one cluster center. ◦ Demo on FCM check this link : http://aydos.com/fcm