I have 20 images each of which is 175 x 200. then i create a matrix X and unfold each image into it. so that X becomes a (175*200, 20 ). I applied Non-negative matrix factorization on this X data. and reconstructed it into a X_hat matrix. Now I would like to extract the individual images back.
u = imread(ff);
set(gcf, 'Position',[100 100 500 500])
avg =avg +R;
[ X_hat] = NMF(Q, X_hat,Winit,Hinit);
How do I get the individual 20 images from this X_hat