File Exchange

image thumbnail

Fuzzy c-means segmentation

version 1.0 (1.77 KB) by

This program segments an image into 2 partitions using standard Fuzzy k-means algorithm.

4.14286
9 Ratings

123 Downloads

Updated

View License

This program illustrates the Fuzzy c-means segmentation of an image.
This program converts an input image into two segments using Fuzzy k-means algorithm. The output is stored as "fuzzysegmented.jpg" in the current directory.This program can be generalised to get "n" segments from an image by means of slightly modifying the given code.

Comments and Ratings (21)

Array dimensions must match for binary array op.

Error in fuzzycmeans (line 32)
    distance=IMM-c;

May I get the code for fcm for n clusters or it would be really helpful if someone tell me how to do for n clusters.My mail I'd is aliatabassum12@gmail.com Thank you :)

Hello, Please tell me how to do for n-segments instead of 2-segments. Thanks

tan yuki

Hi, is it possible to make it cluster into 3 region? I am trying to add cc3 into the code provided but i facing problem on how to change the equation for daoShu, distance, and u3.

Any advice?
Thanks

Omid Faghihi

Rojalin

I get this error..
??? Error using ==> iter2 at 31
Array dimensions must match for binary array op.
distance=IMM-c;
sir plz reply me...
barik.linky@gmail.com

priyanka

could you please send me the code of fuzzy c means image segmentation using the inbuilt command of matlab to my mail address priyanka.theultimate@gmail.com ?
please please do help because i'm working on a project and i have to submit it asap !

samira

samira (view profile)

 i get this error:
Error using ==> ==
Array dimensions must match for binary array op.
Error in ==> fuzzycmeans at 32
distance=IMM-c;
sir send me reply to this mail address
(samira_rad65@yahoo.com)

LENIN RAJA

further more information required for image segmentation and various fuzzy techniques as well as various optimization techniques.

Edwin

Edwin (view profile)

Would you please teach me how to modify the codes for n segments from the original codes?

Thanks for your help in advanced!

shaik gousal

I need image segmentation using FCM algorithm please send it to my mail address mohammadgousal@gmail.com. thank you.

shaik gousal

whether this code is using fcm or fkm .If itis fkm then please anybody send the image segmentation using fcm i will be thank ful to you.............please

shaik gousal

i get this error:
Error using ==> ==
Array dimensions must match for binary array op.
Error in ==> fuzzycmeans at 32
    distance=IMM-c;
sir send me reply to this mail address mohammadgousal@gmail.com.thanking you sir......

mahisnair

when i try to segment my multispectral images of size 500*500 ,the code give me this error "??? Array dimensions must match for binary array op".what does it mean? and could you please help

Ganesh Sistu

Good Work.

Input image should be CONVERTED from RGB2 GRAY to run the code.

" Array dimensions must match for binary array op " - 'error will not occur'

Thanks...!it is very helpful...

SL

SL (view profile)

This program works well! But may I know how could I modify the codes to generalize it to get "n" segments instead of 2. Thank you!

Diggs

Diggs (view profile)

when i try to segment my multispectral images of size 500*500 ,the code give me this error "??? Array dimensions must match for binary array op".what does it mean? and could you please help

poo

poo (view profile)

any idea about optimal feature based segmentation of an image using FCM

MATLAB Release
MATLAB 7 (R14)

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

» Watch video