[討論] FCM 影像切割(mri)

看板MATLAB作者 (平凡就好)時間13年前 (2012/09/26 12:58), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
小弟想把一張mri的圖片做切割 圖片轉成double 也可以跑完fcm 但是在來我就不知道如何把計算結果 在上面更改 以下是我的程式碼 clear all; close all; load mri % load mri image D=squeeze(D); % 4D to 3D figure('Colormap',map) image_num=8;%assume to load 8th image image(D(:,:,image_num)) ab1=double(D(:,:,image_num));% unit8 to double options = [2;100;1e-5;0];%m=2 [center,U,obj_fcn] = fcm(ab1,2,options);%分2組 U is fuzzy membership matrix maxU = max(U); %find max U index1 = find(U(1,:) == maxU);%分類 index2 = find(U(2,:) == maxU);%分類 figure('Colormap',map) image(ab1) 想要把ab1裡面東西做改變(根據fcm結果) 之後把ab1呈現出來 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.171.245.104
文章代碼(AID): #1GOejia8 (MATLAB)