SlideShare ist ein Scribd-Unternehmen logo
1 von 17
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

Weitere ähnliche Inhalte

Was ist angesagt?

Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentationramya marichamy
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processingAhmed Daoud
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentationasodariyabhavesh
 
Image Representation & Descriptors
Image Representation & DescriptorsImage Representation & Descriptors
Image Representation & DescriptorsPundrikPatel
 
Arithmetic coding
Arithmetic codingArithmetic coding
Arithmetic codingVikas Goyal
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filteringGautam Saxena
 
Texture in image processing
Texture in image processing Texture in image processing
Texture in image processing Anna Aquarian
 
Image segmentation based on color
Image segmentation based on colorImage segmentation based on color
Image segmentation based on coloreSAT Journals
 
Point processing
Point processingPoint processing
Point processingpanupriyaa7
 
Brain Tumour Detection.pptx
Brain Tumour Detection.pptxBrain Tumour Detection.pptx
Brain Tumour Detection.pptxRevolverRaja2
 
Thresholding.ppt
Thresholding.pptThresholding.ppt
Thresholding.pptshankar64
 
Fuzzy c-means clustering for image segmentation
Fuzzy c-means  clustering for image segmentationFuzzy c-means  clustering for image segmentation
Fuzzy c-means clustering for image segmentationDharmesh Patel
 

Was ist angesagt? (20)

Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
Image restoration and reconstruction
Image restoration and reconstructionImage restoration and reconstruction
Image restoration and reconstruction
 
Mathematical tools in dip
Mathematical tools in dipMathematical tools in dip
Mathematical tools in dip
 
Image Representation & Descriptors
Image Representation & DescriptorsImage Representation & Descriptors
Image Representation & Descriptors
 
Histogram processing
Histogram processingHistogram processing
Histogram processing
 
Image processing Presentation
Image processing PresentationImage processing Presentation
Image processing Presentation
 
Arithmetic coding
Arithmetic codingArithmetic coding
Arithmetic coding
 
Color Models.pptx
Color Models.pptxColor Models.pptx
Color Models.pptx
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filtering
 
Texture in image processing
Texture in image processing Texture in image processing
Texture in image processing
 
Image segmentation based on color
Image segmentation based on colorImage segmentation based on color
Image segmentation based on color
 
Point processing
Point processingPoint processing
Point processing
 
Brain Tumour Detection.pptx
Brain Tumour Detection.pptxBrain Tumour Detection.pptx
Brain Tumour Detection.pptx
 
JPEG Image Compression
JPEG Image CompressionJPEG Image Compression
JPEG Image Compression
 
Fuzzy Membership Function
Fuzzy Membership Function Fuzzy Membership Function
Fuzzy Membership Function
 
Hit and-miss transform
Hit and-miss transformHit and-miss transform
Hit and-miss transform
 
Thresholding.ppt
Thresholding.pptThresholding.ppt
Thresholding.ppt
 
Fuzzy c-means clustering for image segmentation
Fuzzy c-means  clustering for image segmentationFuzzy c-means  clustering for image segmentation
Fuzzy c-means clustering for image segmentation
 

Ähnlich wie 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 meansWrishin 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 ClassifierDipesh Shome
 
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdfCD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdfRajJain516913
 
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 segmentationeSAT Publishing House
 
Introduction to Applied Machine Learning
Introduction to Applied Machine LearningIntroduction to Applied Machine Learning
Introduction to Applied Machine LearningSheilaJimenezMorejon
 
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_algorithmsEellekwameowusu
 
k-mean-clustering.ppt
k-mean-clustering.pptk-mean-clustering.ppt
k-mean-clustering.pptRanimeLoutar
 
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 DSSMarkNaguibElAbd
 
MAGNETIC RESONANCE BRAIN IMAGE SEGMENTATION
MAGNETIC RESONANCE BRAIN IMAGE SEGMENTATIONMAGNETIC RESONANCE BRAIN IMAGE SEGMENTATION
MAGNETIC RESONANCE BRAIN IMAGE SEGMENTATIONVLSICS 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 OperationsIRJET Journal
 
K mean-clustering algorithm
K mean-clustering algorithmK mean-clustering algorithm
K mean-clustering algorithmparry prabhu
 

Ähnlich wie 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
 
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...
 
C017121219
C017121219C017121219
C017121219
 
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
 

Mehr von Farah M. Altufaili

Mehr von 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
 

Kürzlich hochgeladen

Bacterial Identification and Classifications
Bacterial Identification and ClassificationsBacterial Identification and Classifications
Bacterial Identification and ClassificationsAreesha Ahmad
 
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑Damini Dixit
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bSérgio Sacani
 
Grade 7 - Lesson 1 - Microscope and Its Functions
Grade 7 - Lesson 1 - Microscope and Its FunctionsGrade 7 - Lesson 1 - Microscope and Its Functions
Grade 7 - Lesson 1 - Microscope and Its FunctionsOrtegaSyrineMay
 
Conjugation, transduction and transformation
Conjugation, transduction and transformationConjugation, transduction and transformation
Conjugation, transduction and transformationAreesha Ahmad
 
chemical bonding Essentials of Physical Chemistry2.pdf
chemical bonding Essentials of Physical Chemistry2.pdfchemical bonding Essentials of Physical Chemistry2.pdf
chemical bonding Essentials of Physical Chemistry2.pdfTukamushabaBismark
 
Forensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfForensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfrohankumarsinghrore1
 
Digital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptxDigital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptxMohamedFarag457087
 
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort ServiceCall Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort Serviceshivanisharma5244
 
GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)Areesha Ahmad
 
Sector 62, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 62, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 62, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 62, Noida Call girls :8448380779 Model Escorts | 100% verifiedDelhi Call girls
 
PSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptxPSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptxSuji236384
 
Thyroid Physiology_Dr.E. Muralinath_ Associate Professor
Thyroid Physiology_Dr.E. Muralinath_ Associate ProfessorThyroid Physiology_Dr.E. Muralinath_ Associate Professor
Thyroid Physiology_Dr.E. Muralinath_ Associate Professormuralinath2
 
GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)Areesha Ahmad
 
Introduction to Viruses
Introduction to VirusesIntroduction to Viruses
Introduction to VirusesAreesha Ahmad
 
GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)Areesha Ahmad
 
Module for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learningModule for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learninglevieagacer
 
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryFAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryAlex Henderson
 

Kürzlich hochgeladen (20)

Bacterial Identification and Classifications
Bacterial Identification and ClassificationsBacterial Identification and Classifications
Bacterial Identification and Classifications
 
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
 
Grade 7 - Lesson 1 - Microscope and Its Functions
Grade 7 - Lesson 1 - Microscope and Its FunctionsGrade 7 - Lesson 1 - Microscope and Its Functions
Grade 7 - Lesson 1 - Microscope and Its Functions
 
Conjugation, transduction and transformation
Conjugation, transduction and transformationConjugation, transduction and transformation
Conjugation, transduction and transformation
 
chemical bonding Essentials of Physical Chemistry2.pdf
chemical bonding Essentials of Physical Chemistry2.pdfchemical bonding Essentials of Physical Chemistry2.pdf
chemical bonding Essentials of Physical Chemistry2.pdf
 
Forensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfForensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdf
 
Digital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptxDigital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptx
 
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort ServiceCall Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)
 
Site Acceptance Test .
Site Acceptance Test                    .Site Acceptance Test                    .
Site Acceptance Test .
 
Sector 62, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 62, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 62, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 62, Noida Call girls :8448380779 Model Escorts | 100% verified
 
PSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptxPSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptx
 
Thyroid Physiology_Dr.E. Muralinath_ Associate Professor
Thyroid Physiology_Dr.E. Muralinath_ Associate ProfessorThyroid Physiology_Dr.E. Muralinath_ Associate Professor
Thyroid Physiology_Dr.E. Muralinath_ Associate Professor
 
GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)
 
Introduction to Viruses
Introduction to VirusesIntroduction to Viruses
Introduction to Viruses
 
GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)
 
Module for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learningModule for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learning
 
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryFAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
 

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