%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 程序名:SaveHuFeatureData
% 功能:本程序用于存储计算得到的特征数据(Hu不变矩)。
% 输入参数:
% ImageType:输入的图像类型,1为交通标志,2为Logo图像,3为纹理。
% ImageClassNumber:对应图像库的编号(1-3)。
% ImageNumber:图像的编号(1--20)。
% FeatureData:图像的特征数据。
% ProgramFlag:附加的数据文件标志(字符串)。
% 输出参数:
% 无。
% 时间:2004年02月09日
% CopyRight:李军宏 (2004) JunhongLi@263.net
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function SaveHuFeatureData(ImageType,ImageClassNumber,ImageNumber,FeatureData,ProgramFlag)
if ImageType==1
if ImageClassNumber==1
if ImageNumber==1
MyRoadImageSet_1_1=FeatureData;
save Road_Hu_1_1 MyRoadImageSet_1_1 ProgramFlag;
elseif ImageNumber==2
MyRoadImageSet_1_2=FeatureData;
save Road_Hu_1_2 MyRoadImageSet_1_2 ProgramFlag;
elseif ImageNumber==3
MyRoadImageSet_1_3=FeatureData;
save Road_Hu_1_3 MyRoadImageSet_1_3 ProgramFlag;
elseif ImageNumber==4
MyRoadImageSet_1_4=FeatureData;
save Road_Hu_1_4 MyRoadImageSet_1_4 ProgramFlag;
elseif ImageNumber==5
MyRoadImageSet_1_5=FeatureData;
save Road_Hu_1_5 MyRoadImageSet_1_5 ProgramFlag;
elseif ImageNumber==6
MyRoadImageSet_1_6=FeatureData;
save Road_Hu_1_6 MyRoadImageSet_1_6 ProgramFlag;
elseif ImageNumber==7
MyRoadImageSet_1_7=FeatureData;
save Road_Hu_1_7 MyRoadImageSet_1_7 ProgramFlag;
elseif ImageNumber==8
MyRoadImageSet_1_8=FeatureData;
save Road_Hu_1_8 MyRoadImageSet_1_8 ProgramFlag;
elseif ImageNumber==9
MyRoadImageSet_1_9=FeatureData;
save Road_Hu_1_9 MyRoadImageSet_1_9 ProgramFlag;
elseif ImageNumber==10
MyRoadImageSet_1_10=FeatureData;
save Road_Hu_1_10 MyRoadImageSet_1_10 ProgramFlag;
elseif ImageNumber==11
MyRoadImageSet_1_11=FeatureData;
save Road_Hu_1_11 MyRoadImageSet_1_11 ProgramFlag;
elseif ImageNumber==12
MyRoadImageSet_1_12=FeatureData;
save Road_Hu_1_12 MyRoadImageSet_1_12 ProgramFlag;
elseif ImageNumber==13
MyRoadImageSet_1_13=FeatureData;
save Road_Hu_1_13 MyRoadImageSet_1_13 ProgramFlag;
elseif ImageNumber==14
MyRoadImageSet_1_14=FeatureData;
save Road_Hu_1_14 MyRoadImageSet_1_14 ProgramFlag;
elseif ImageNumber==15
MyRoadImageSet_1_15=FeatureData;
save Road_Hu_1_15 MyRoadImageSet_1_15 ProgramFlag;
elseif ImageNumber==16
MyRoadImageSet_1_16=FeatureData;
save Road_Hu_1_16 MyRoadImageSet_1_16 ProgramFlag;
elseif ImageNumber==17
MyRoadImageSet_1_17=FeatureData;
save Road_Hu_1_17 MyRoadImageSet_1_17 ProgramFlag;
elseif ImageNumber==18
MyRoadImageSet_1_18=FeatureData;
save Road_Hu_1_18 MyRoadImageSet_1_18 ProgramFlag;
elseif ImageNumber==19
MyRoadImageSet_1_19=FeatureData;
save Road_Hu_1_19 MyRoadImageSet_1_19 ProgramFlag;
elseif ImageNumber==20
MyRoadImageSet_1_20=FeatureData;
save Road_Hu_1_20 MyRoadImageSet_1_20 ProgramFlag;
end
end
if ImageClassNumber==2
if ImageNumber==1
MyRoadImageSet_2_1=FeatureData;
save Road_Hu_2_1 MyRoadImageSet_2_1 ProgramFlag;
elseif ImageNumber==2
MyRoadImageSet_2_2=FeatureData;
save Road_Hu_2_2 MyRoadImageSet_2_2 ProgramFlag;
elseif ImageNumber==3
MyRoadImageSet_2_3=FeatureData;
save Road_Hu_2_3 MyRoadImageSet_2_3 ProgramFlag;
elseif ImageNumber==4
MyRoadImageSet_2_4=FeatureData;
save Road_Hu_2_4 MyRoadImageSet_2_4 ProgramFlag;
elseif ImageNumber==5
MyRoadImageSet_2_5=FeatureData;
save Road_Hu_2_5 MyRoadImageSet_2_5 ProgramFlag;
elseif ImageNumber==6
MyRoadImageSet_2_6=FeatureData;
save Road_Hu_2_6 MyRoadImageSet_2_6 ProgramFlag;
elseif ImageNumber==7
MyRoadImageSet_2_7=FeatureData;
save Road_Hu_2_7 MyRoadImageSet_2_7 ProgramFlag;
elseif ImageNumber==8
MyRoadImageSet_2_8=FeatureData;
save Road_Hu_2_8 MyRoadImageSet_2_8 ProgramFlag;
elseif ImageNumber==9
MyRoadImageSet_2_9=FeatureData;
save Road_Hu_2_9 MyRoadImageSet_2_9 ProgramFlag;
elseif ImageNumber==10
MyRoadImageSet_2_10=FeatureData;
save Road_Hu_2_10 MyRoadImageSet_2_10 ProgramFlag;
elseif ImageNumber==11
MyRoadImageSet_2_11=FeatureData;
save Road_Hu_2_11 MyRoadImageSet_2_11 ProgramFlag;
elseif ImageNumber==12
MyRoadImageSet_2_12=FeatureData;
save Road_Hu_2_12 MyRoadImageSet_2_12 ProgramFlag;
elseif ImageNumber==13
MyRoadImageSet_2_13=FeatureData;
save Road_Hu_2_13 MyRoadImageSet_2_13 ProgramFlag;
elseif ImageNumber==14
MyRoadImageSet_2_14=FeatureData;
save Road_Hu_2_14 MyRoadImageSet_2_14 ProgramFlag;
elseif ImageNumber==15
MyRoadImageSet_2_15=FeatureData;
save Road_Hu_2_15 MyRoadImageSet_2_15 ProgramFlag;
elseif ImageNumber==16
MyRoadImageSet_2_16=FeatureData;
save Road_Hu_2_16 MyRoadImageSet_2_16 ProgramFlag;
elseif ImageNumber==17
MyRoadImageSet_2_17=FeatureData;
save Road_Hu_2_17 MyRoadImageSet_2_17 ProgramFlag;
elseif ImageNumber==18
MyRoadImageSet_2_18=FeatureData;
save Road_Hu_2_18 MyRoadImageSet_2_18 ProgramFlag;
elseif ImageNumber==19
MyRoadImageSet_2_19=FeatureData;
save Road_Hu_2_19 MyRoadImageSet_2_19 ProgramFlag;
elseif ImageNumber==20
MyRoadImageSet_2_20=FeatureData;
save Road_Hu_2_20 MyRoadImageSet_2_20 ProgramFlag;
end
end
if ImageClassNumber==3
if ImageNumber==1
MyRoadImageSet_3_1=FeatureData;
save Road_Hu_3_1 MyRoadImageSet_3_1 ProgramFlag;
elseif ImageNumber==2
MyRoadImageSet_3_2=FeatureData;
save Road_Hu_3_2 MyRoadImageSet_3_2 ProgramFlag;
elseif ImageNumber==3
MyRoadImageSet_3_3=FeatureData;
save Road_Hu_3_3 MyRoadImageSet_3_3 ProgramFlag;
elseif ImageNumber==4
MyRoadImageSet_3_4=FeatureData;
save Road_Hu_3_4 MyRoadImageSet_3_4 ProgramFlag;
elseif ImageNumber==5
MyRoadImageSet_3_5=FeatureData;
save Road_Hu_3_5 MyRoadImageSet_3_5 ProgramFlag;
elseif ImageNumber==6
MyRoadImageSet_3_6=FeatureData;
save Road_Hu_3_6 MyRoadImageSet_3_6 ProgramFlag;
elseif ImageNumber==7
MyRoadImageSet_3_7=FeatureData;
save Road_Hu_3_7 MyRoadImageSet_3_7 ProgramFlag;
elseif ImageNumber==8
MyRoadImageSet_3_8=FeatureData;
save Road_Hu_3_8 MyRoadImageSet_3_8 ProgramFlag;
elseif ImageNumber==9
MyRoadImageSet_3_9=FeatureData;
save Road_Hu_3_9 MyRoadImageSet_3_9 ProgramFlag;
elseif ImageNumber==10
MyRoadImageSet_3_10=FeatureData;
save Road_Hu_3_10 MyRoadImageSet_3_10 ProgramFlag;
elseif ImageNumber==11
MyRoadImageSet_3_11=FeatureData;
save Road_Hu_3_11 MyRoadImageSet_3_11 ProgramFlag;
elseif ImageNumber==12
MyRoadImageSet_3_12=FeatureData;
save Road_Hu_3_12 MyRoadImageSet_3_12 ProgramFlag;
elseif ImageNumber==13
MyRoadImageSet_3_13=FeatureData;
save Road_Hu_3_13 MyRoadImageSet_3_13 ProgramFlag;
elseif ImageNumber==14
MyRoadImageSet_3_14=FeatureData;
save Road_Hu_3_14 MyRoadImageSet_3_14 ProgramFlag;
elseif ImageNumber==15
MyRoadImageSet_3_15=FeatureData;
save Road_Hu_3_15 MyRoadImageSet_3_15 ProgramFlag;
elseif ImageNumber==16
MyRoadImageSet_3_16=FeatureData;
save Road_Hu
评论0