How to find relative loading factors on the primary principal component?
I have a set of color images sized 600*600.I extracted 16 color channels from each image and changed each channel into column matrix sized 360000*1 and concatenated each 16 channels to form 360000*16 matrix.Now I want to implement PCA on it to identify the most discriminative channel.Implemented code is given below:
Xi=[Rcol,Gcol,Bcol,Hcol,Scol,Vcol,Ycol,Icol,Qcol,L1col,acol,bcol,M1col,M21col,M3col,M61col];
avg=mean(Xi);
sd=std(Xi,0,1);
Xnorm=bsxfun(@minus,Xi,avg);
Xnorm = bsxfun(@rdivide,Xnorm,sd);
Xi1=cov(Xnorm);
[V, D]=eig(Xi1);
In implementing paper they say to analyze the relative loading factor of different color channels on the primary principal component.So can you tell me how to calculate loading factor on primary principal component using matlab?I have a set of color images sized 600*600.I extracted 16 color channels from each image and changed each channel into column matrix sized 360000*1 and concatenated each 16 channels to form 360000*16 matrix.Now I want to implement PCA on it to identify the most discriminative channel.Implemented code is given below:
Xi=[Rcol,Gcol,Bcol,Hcol,Scol,Vcol,Ycol,Icol,Qcol,L1col,acol,bcol,M1col,M21col,M3col,M61col];
avg=mean(Xi);
sd=std(Xi,0,1);
Xnorm=bsxfun(@minus,Xi,avg);
Xnorm = bsxfun(@rdivide,Xnorm,sd);
Xi1=cov(Xnorm);
[V, D]=eig(Xi1);
In implementing paper they say to analyze the relative loading factor of different color channels on the primary principal component.So can you tell me how to calculate loading factor on primary principal component using matlab? I have a set of color images sized 600*600.I extracted 16 color channels from each image and changed each channel into column matrix sized 360000*1 and concatenated each 16 channels to form 360000*16 matrix.Now I want to implement PCA on it to identify the most discriminative channel.Implemented code is given below:
Xi=[Rcol,Gcol,Bcol,Hcol,Scol,Vcol,Ycol,Icol,Qcol,L1col,acol,bcol,M1col,M21col,M3col,M61col];
avg=mean(Xi);
sd=std(Xi,0,1);
Xnorm=bsxfun(@minus,Xi,avg);
Xnorm = bsxfun(@rdivide,Xnorm,sd);
Xi1=cov(Xnorm);
[V, D]=eig(Xi1);
In implementing paper they say to analyze the relative loading factor of different color channels on the primary principal component.So can you tell me how to calculate loading factor on primary principal component using matlab? image processing, pca, loading factor MATLAB Answers — New Questions