is there a version of Principle Component Analysis for images?
Mostrar comentarios más antiguos
hello everybody, i want to ask about Principle Component Analysis, a tool used for data analysis
is there a version for PCA that is used for analysis the images?
and i want a source code and some examples for that
thanks for your help
Respuestas (3)
Sean de Wolski
el 15 de Abr. de 2013
doc pca
and
edit pca
10 comentarios
Adam Filion
el 15 de Abr. de 2013
And regular pca, which I forgot about...
Mohamed Moawed
el 15 de Abr. de 2013
Sean de Wolski
el 15 de Abr. de 2013
What version are you using? If you are on a relatively old version, use princomp() as Adam suggested.
doc princomp
Or upgrade to the newest release:
Mohamed Moawed
el 15 de Abr. de 2013
Sean de Wolski
el 15 de Abr. de 2013
Turn the images into column vectors. Spatial location does not matter.
Mohamed Moawed
el 15 de Abr. de 2013
Sean de Wolski
el 15 de Abr. de 2013
x = I(:)
where I is your image.
Mohamed Moawed
el 15 de Abr. de 2013
Sean de Wolski
el 15 de Abr. de 2013
Essentially. You need to horizontally concatenate all of your images first.
Mohamed Moawed
el 15 de Abr. de 2013
Adam Filion
el 15 de Abr. de 2013
0 votos
I don't know much PCA myself, but I know we have some built-in tools in Statistics and Wavelet toolboxes that may be of use:
http://www.mathworks.com/help/stats/princomp.html http://www.mathworks.com/help/wavelet/ug/multiscale-principal-components-analysis.html
There are also a number of entries on the File Exchange for PCA:
Image Analyst
el 15 de Abr. de 2013
0 votos
The most famous application of PCA to images is eigenfaces: http://en.wikipedia.org/wiki/Eigenface You can essentially construct any face image by a weighted sum of eigenface (PCA) images.
3 comentarios
Mohamed Moawed
el 15 de Abr. de 2013
Image Analyst
el 16 de Abr. de 2013
Sure, you could do it. Would that be useful to you? Why do you want PCA component images anyway?
Mohamed Moawed
el 16 de Abr. de 2013
Categorías
Más información sobre Dimensionality Reduction and Feature Extraction en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!