matlab提示未定义函数或变量
pictype='.bmp';fullname=strcat(picname,pictype);I=imread(fullname);%定义树结构sL=5;TS=repm...
pictype='.bmp';
fullname=strcat(picname,pictype);
I=imread(fullname);
%定义树结构
sL=5;
TS=repmat(struct('pureclass',[],'child',[],'classno',[],'childno',[]),[sL,1]);
TS(1).pureclass={{1},{2},{3},{4},{5},{6},{7},{8},{9}};
TS(1).class={1,2,3,4,5,6,7,8,9};
TS(1).classno={1,2,3,4,5,6,7,8,9};
TS(1).child={};
TS(1).childno={};
TS(2).pureclass={{1},{2},{3,4},{5,6,7},{8,9}};
TS(2).class={10,10,12,13,14};
TS(2).classno={1,2,3,4,5};
TS(2).child={{1},{2},{3,4},{5,6,7},{8,9}};
TS(2).childno={{1},{2},{3,4},{5,6,7},{8,9}};
TS(3).pureclass={{1},{2,3,4},{5,6,7,8,9}};
TS(3).class={15,16,17};
TS(3).classno={1,2,3};
TS(3).child={{10},{11,12},{13,14}};
TS(3).childno={{1},{2,3},{4,5}};
TS(4).pureclass={{1},{2,3,4,5,6,7,8,9}};
TS(4).class={18,19};
TS(4).classno={1,2};
TS(4).child={{15},{16,17}};
TS(4).childno={{1},{2,3}};
TS(5).pureclass={{1,2,3,4,5,6,7,8,9}};
TS(5).class={20};
TS(5).classno={1};
TS(5).child={{18,19}};
TS(5).childno={{1,2}};
%TS-MRF图像分割
[seg,belto]=TS_MRF_Supervised_Potts(I,TS,picname);
>> TS-MRF-Seg
未定义函数或变量 'TS'
这个程序,还有好几个调用函数 展开
fullname=strcat(picname,pictype);
I=imread(fullname);
%定义树结构
sL=5;
TS=repmat(struct('pureclass',[],'child',[],'classno',[],'childno',[]),[sL,1]);
TS(1).pureclass={{1},{2},{3},{4},{5},{6},{7},{8},{9}};
TS(1).class={1,2,3,4,5,6,7,8,9};
TS(1).classno={1,2,3,4,5,6,7,8,9};
TS(1).child={};
TS(1).childno={};
TS(2).pureclass={{1},{2},{3,4},{5,6,7},{8,9}};
TS(2).class={10,10,12,13,14};
TS(2).classno={1,2,3,4,5};
TS(2).child={{1},{2},{3,4},{5,6,7},{8,9}};
TS(2).childno={{1},{2},{3,4},{5,6,7},{8,9}};
TS(3).pureclass={{1},{2,3,4},{5,6,7,8,9}};
TS(3).class={15,16,17};
TS(3).classno={1,2,3};
TS(3).child={{10},{11,12},{13,14}};
TS(3).childno={{1},{2,3},{4,5}};
TS(4).pureclass={{1},{2,3,4,5,6,7,8,9}};
TS(4).class={18,19};
TS(4).classno={1,2};
TS(4).child={{15},{16,17}};
TS(4).childno={{1},{2,3}};
TS(5).pureclass={{1,2,3,4,5,6,7,8,9}};
TS(5).class={20};
TS(5).classno={1};
TS(5).child={{18,19}};
TS(5).childno={{1,2}};
%TS-MRF图像分割
[seg,belto]=TS_MRF_Supervised_Potts(I,TS,picname);
>> TS-MRF-Seg
未定义函数或变量 'TS'
这个程序,还有好几个调用函数 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询