資源簡介
高光譜遙感圖像模糊c均值聚類算法的matlab實現
代碼片段和文件信息
%function?[clusters]?=?Fuzzy_K(patterns_incplot_on)
clear?all
clc
%read?an?image?file?92av3c9.lan??from?Multispec
fid1=fopen(‘c:\image\92av3c9.lan‘‘rb‘);?
status=fseek(fid1128‘bof‘);
bandnum=9;
row=145;
column=145;
X1=uint16(fread(fid1[row*bandnum?column]‘uint16‘));
fclose(fid1);
%?change?the?multispect?picture?92av3c9.lan?to?3D
for?n=1:bandnum
?????Y1(1:row1:columnn)=X1(1+(n-1)*row:n*row1:column)‘;
??
end
%read?ground?truth?from?the?file?‘92av3gt.gis‘
fid=fopen(‘C:\image\92AV3GT.GIS‘‘rb‘);
status=fseek(fid128‘bof‘);
row=145;
column=145;
X=uint8(fread(fid[column?row]‘uint8‘));
fclose(fid);
X=X‘;
X_ESSS=X;
max=0;
for?i=1:row
????for?j=1:column
????????if?max ????????????max=X_ESSS(ij);
????????end
????end
en
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????4714??2007-06-04?19:25??Fuzzy_K.m
?????文件????????218??2007-01-22?19:53??www.pudn.com.txt
-----------?---------??----------?-----??----
?????????????????4932????????????????????2
- 上一篇:IMU慣性導航
- 下一篇:matlab 2018a crack
評論
共有 條評論