I have 5 folders (each contain about 200 RGB images), I want to use "Principal Component Analysis" for image classification

45 Views Asked by At

I have 5 folders (which represent 5 classes, and each contain about 200 colored images), I want to use "Principal Component Analysis" for image classification. previously I used Resnet to predict to which class each image belong. but now I want to use the PCA.

I am trying to apply that with code, any help please?

previously I used Resnet to predict to which class each image belong. but now I want to use the PCA.

1

There are 1 best solutions below

2
MechanicalTim On BEST ANSWER

PCA is not a method for classification. It is a dimensional reduction method that is sometimes used as a processing step.

Take a look at this CrossValidated post for some more explanation. It has an example.

(FYI, saw this because you pinged me via the MATLAB Answers forum.)