フィルターのクリア

how to do segmentation using fuzzy C means

1 回表示 (過去 30 日間)
kalaiyarasi murugesan
kalaiyarasi murugesan 2018 年 2 月 2 日
hi;
i want to do segmentation using FCM .For that, i tried the following coding for image segmentation. i am getting the error of " undefined function 'fcmthresh' for input arguments of type 'double' ".What should i do to rectify this error..please guide me..
%testfcmthresh.m
clear;clc;
im=imread('mliver3.jpg');
fim=mat2gray(im);
level=graythresh(fim);
bwfim=im2bw(fim,0.1);
[bwfim0,level0]=fcmthresh(fim,0);
[bwfim1,level1]=fcmthresh(fim,1);
subplot(2,2,1); imshow(fim);title('Original');
subplot(2,2,2); imshow(bwfim);title(sprintf('Otsu,level=%f',level));
subplot(2,2,3); imshow(bwfim0);title(sprintf('FCM0,level=%f',level0));
subplot(2,2,4); imshow(bwfim1);title(sprintf('FCM1,level=%f',level1)); % imwrite(bwfim1,'fliver6.jpg');
  1 件のコメント
Dheeraj Kumar Baghel
Dheeraj Kumar Baghel 2022 年 4 月 20 日
Fcmthresh is not supported in matalb 2020

サインインしてコメントする。

回答 (1 件)

Muzamil
Muzamil 2018 年 4 月 7 日
copy fcmthresh.m into tour working directory.. files are attached
  1 件のコメント
muhaimin mahfudz
muhaimin mahfudz 2018 年 8 月 12 日
does this codes work?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeFuzzy Logic Toolbox についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by