View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Fuzzy c-means thresholding

4.6 | 10 ratings Rate this file 56 Downloads (last 30 days) File Size: 22 KB File ID: #8351 Version: 1.0
image thumbnail

Fuzzy c-means thresholding


Guanglei Xiong (view profile)


23 Aug 2005 (Updated )

Thresholding by 3-class fuzzy c-means clustering.

| Watch this File

File Information

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 (
at Tsinghua University, Beijing, China.

Inspired by Xiaobo Zhou
at Harvard Medical School.

Required Products Fuzzy Logic Toolbox
MATLAB release MATLAB 7.0.4 (R14SP2)
MATLAB Search Path
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (14)
26 Dec 2016 csh

csh (view profile)

24 Oct 2016 Sadoon U

06 Aug 2016 putri nur rahayu

thanks for your code. can you sent me this paper in my email.

23 May 2016 maryam nasouri

thanks very well

21 Apr 2016 Rai_313

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

Comment only
10 Jul 2015 Ijaz Hussain

Will you please email me its paper.

15 Jan 2015 sara

sara (view profile)

18 Oct 2011 Diggs

Diggs (view profile)

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

Comment only
27 Jul 2010 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

Any advice?

Thank you.

Comment only
04 May 2010 kuihhjk

26 Jan 2010 muk

muk (view profile)

11 Jun 2009 hbu 

hbu  (view profile)

the sourcode is good !thank you.

Comment only
22 Dec 2007 giri babu kande

21 Nov 2006 oleksandr makoveychuk


31 Mar 2016 1.0


Contact us