[討論] 有關eigenface的問題

看板MATLAB作者時間12年前 (2013/09/02 22:40), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
做出來結果跟paper上的不太一樣 正確答案是eigenface顯示圖要有鬼影的感覺 可是我的並沒有 不知道哪裡錯了 程式碼 %[193,180]=size(pic); clear all,close all,clc load Image [m,n]=size(GTrain); GTrain=double(GTrain); meanface=mean(GTrain,2); phi=GTrain-repmat(meanface,1,n); [U,S,V]=svd(phi'*phi); figure, for i=1:9 eigenface=phi*((U(i,:))'); subplot(3,3,i),imshow(uint8(reshape(eigenface,193,180))); end 檔案如下 https://docs.google.com/file/d/0B86nj8fJPBjsWEdZd05UaG1LMTQ/edit -- 戈巴契夫好吃 戈巴契夫呵甲 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 1.173.96.167
文章代碼(AID): #1I9ADTFe (MATLAB)