File Exchange

image thumbnail

Fuzzy c-means thresholding

version 1.0.0.0 (22 KB) by Guanglei Xiong
Thresholding by 3-class fuzzy c-means clustering.

22 Downloads

Updated 31 Mar 2016

View License

FCMTHRESH Thresholding by 3-class fuzzy c-means clustering
[bw,level]=fcmthresh(IM,sw) outputs the binary image bw and threshold level of image IM using a 3-class fuzzy c-means clustering. It often works better than Otsu's methold which outputs larger or smaller threshold on fluorescence images.

sw is 0 or 1, a switch of cut-off position.
sw=0, cut between the small and middle class
sw=1, cut between the middle and large class

Contributed by Guanglei Xiong (xgl99@mails.tsinghua.edu.cn)
at Tsinghua University, Beijing, China.

Inspired by Xiaobo Zhou
at Harvard Medical School.

Cite As

Guanglei Xiong (2020). Fuzzy c-means thresholding (https://www.mathworks.com/matlabcentral/fileexchange/8351-fuzzy-c-means-thresholding), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (20)

thank you sir for the code.can you please mail me the reference paper at noorejannat003@gmail.com??

Hai Sir
I tried your code on my dataset it works better. I want to clear my doubts.I want only level 1 for segmenting the image no need to use level2. what paper you have used for this .please send me the paper to my mail: aloormariena@gmail.com

Michael Luo

suja s

Could you please email me the paper that is related to this code thank you.so thati can cited the paper.
suja.543@gmail.com

med-sweng

For 3 class fuzzy c-means clustering, I believe it means the number of categories (i.e. classes) used in the program. For instance, if you have 2 classes, this can be the "background" of the image, and the "foreground" of the image.

Can someone explain what is the meaning of 3 class fuzzy? Is it the output of the image which has three output with different level ?

csh

Sadoon U

thanks for your code. can you sent me this paper in my email.
putri_nur_rahayu@yahoo.co.id.

thanks very well

Rai_313

Could you please email me the paper that is related to this code thank you.so thati can cited the paper.

raihanah5313@gmail.com

Will you please email me its paper.
ijazhussain84@yahoo.com

sara

Diggs

Hi Guanglei,the code is so nice on biological images.and fair on remote sensing images.have tried to test both methods on remote sensing images but results show otsu is better.
though i have used tested your code on several remote sensing images,I have failed to understand how the code operates.all is that your code segments the image into three classes using FCM clustering thresholding based on 3-class Fuzzy clustering,where by the threshold is obtained by averaging the maximum
in the class with the smallest center and the minimum in the class with the middle center. am i right or wrong about your method?.hope to hear from you.chao

Stacy Ross

I received an error when trying to run the test code.

In the fcmthresh function, it does not now what fcm is in
[center,member]=fcm(data,3);

Any advice?

Thank you.
Stacy

kuihhjk

muk

hbu 

the sourcode is good !thank you.

giri babu kande

oleksandr makoveychuk

good

Updates

1.0.0.0

BSD

1.0.0.0

Update description

MATLAB Release Compatibility
Created with R14SP2
Compatible with any release
Platform Compatibility
Windows macOS Linux