Miao Zheng, Jiajun Bu, Chun Chen, Can Wang, Lijun Zhang, Guang Qiu, Deng Cai, "Graph Regularized Sparse Coding for Image Representation", IEEE TIP 2011.
demo_graphSC.m
运行问题解决
问题1:找不到‘PCA’的完全匹配项(区分大小写)
解决1:将demo_graphSC.m中的
%options.ReducedDim = 64;
%eigvector = PCA(fea, options);
%newfea = fea*eigvector;
%newfea = NormalizeFea(newfea);
替换为
[pc,score,latent,tsquare] = pca(fea);
tran=pc(:,1:64);
newfea=score(:,1:64);
问题2:错误使用fmincon
解决2:打开learn_basis.m函数,