I am trying to retrieve each of the images after PCA. What I have done, First, I flatten all the images and concatenate them vertically. Suppose, image size is 80 x 80, then flattening it creates 1 x 6400 dimension. For 2000 images, concatenating them creates a 2000 x 6400 matrix. Then I apply PCA with component 200 (suppose). So, I got a 2000 x 200 matrix after PCA analysis. Now I am trying to reconstruct each of the images from this 2000 x 200 matrix by selecting rows. But I could not figure it out. Can anyone help me with this issue?