MATLAB Answers

processing images one tool being used is the principal component analysis (PCA).

2 views (last 30 days)
Yujing Wang
Yujing Wang on 24 Jul 2021
Edited: the cyclist on 24 Jul 2021
When processing images one tool being used is the principal component analysis (PCA). Be able to provide the code using MATLAB syntax for calculation of the PCA of e.g. 2000 vectorized images of size 500x500 pixels being stacked as column vectors in the matrix Im while the PCA shall span a 100-dimensional space. You can make use of predefined MATLAB functions for basic operations like , /, (.)′, eig(.), eigs(.) but NOT pca(.) or cov(.)!
  1 Comment
the cyclist
the cyclist on 24 Jul 2021
This is clearly homework. Show what you have tried yourself, and ask specific questions on where you are having trouble, and you may get some help here.
If you are new to coding in MATLAB, I suggest you watch the MATLAB Onramp tutorial.
If you don't have any idea how to do the math required for this homework, I suggest speaking to your instructor.
I wrote this tutorial about using pca() in MATLAB. You won't be able to use it, because you are not allowed to use that function. But some of the ideas may be helpful.

Sign in to comment.

Answers (0)

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by