Principal Component Analysis for feature extraction

Hi. I'm learning about PCA and wanted to learn how it can be used for feature extraction and if it is feasible to extract features using PCA? Also I don't understand when exactly is PCA used in image processing. From what I understand it is used to reduce the size of a dataset and then features are extracted from that dataset using some other methods such as GLCM. Am I correct?

Answers (1)

[coff,score]=pca(data) newData = data*coff(:,1:n)
where n is number of feature to selected.

2 Comments

this line code only for PCA feature extraction?
how can i apply this code on real images??

Sign in to comment.

Categories

Asked:

on 3 Jun 2016

Commented:

on 4 Apr 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!