91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 6KB
    文件類型: .m
    金幣: 1
    下載: 0 次
    發布日期: 2021-01-03
  • 語言: Matlab
  • 標簽: LDA??模式識別??

資源簡介

LDA 模式識別 matlab

資源截圖

代碼片段和文件信息

??iNum_Train_PerSample?=?3;%訓練樣本數
??iNum_Test_PerSample?=?8;%測試樣本數
??iHeight?=?24;
??iWidth?=?24;
??iClass?=?15;%人臉特征類別數
??iNum_PerSample?=?11;%每一類所含樣本個數
??iDim_Image?=?iHeight?*?iWidth;
??Image?=?zeros(iDim_Image?iClass?iNum_PerSample);%零矩陣
??
??fprintf(‘**********?Step?1?Read?Images?**********\n‘);
??for?i?=?1?:?iClass
????for?j?=?1?:?iNum_PerSample
????????if?i???????????filestr?=?strcat(‘0‘?int2str(i));%外部是連接字符串函數,內部是轉化為串
????????else
??????????filestr?=?int2str(i);
????????end
????????str_Path_Image?=?[‘F:\FaceRecognitionSystem\人臉庫\YALE\subject‘?filestr];
????????str_Path_Image?=?[str_Path_Image?‘_‘];
????????str_Path_Image?=?[str_Path_Image?int2str(j)];
????????B?=?imread(str_Path_Image?‘bmp‘);%讀取bmp格式的圖像到內存中
????????B=imresize(B[24?24]);%對圖像進行縮放
????

評論

共有 條評論