is there a version of Principle Component Analysis for images?

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

回答 (3 件)

Sean de Wolski
Sean de Wolski 2013 年 4 月 15 日

0 投票

doc pca
and
edit pca

10 件のコメント

Adam Filion
Adam Filion 2013 年 4 月 15 日
And regular pca, which I forgot about...
Mohamed Moawed
Mohamed Moawed 2013 年 4 月 15 日
Page Not Found!!!
Sean de Wolski
Sean de Wolski 2013 年 4 月 15 日
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
Mohamed Moawed 2013 年 4 月 15 日
yes i used this function: princomp()
but i ask how to use this function on images
thanks for reply
Sean de Wolski
Sean de Wolski 2013 年 4 月 15 日
Turn the images into column vectors. Spatial location does not matter.
Mohamed Moawed
Mohamed Moawed 2013 年 4 月 15 日
how??? could you please give me some details
thanks
Sean de Wolski
Sean de Wolski 2013 年 4 月 15 日
x = I(:)
where I is your image.
Mohamed Moawed
Mohamed Moawed 2013 年 4 月 15 日
and after that
y = princomp(x)
Sean de Wolski
Sean de Wolski 2013 年 4 月 15 日
Essentially. You need to horizontally concatenate all of your images first.
Mohamed Moawed
Mohamed Moawed 2013 年 4 月 15 日
i = imread ('pout.tif'); x = i( : ); y = princomp(x); x = im2double (x); y = princomp(x); imshow (y)
i get no output!!!
what is the wrong here

サインインしてコメントする。

Adam Filion
Adam Filion 2013 年 4 月 15 日

0 投票

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:
There are also a number of entries on the File Exchange for PCA:
Image Analyst
Image Analyst 2013 年 4 月 15 日

0 投票

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 件のコメント

Mohamed Moawed
Mohamed Moawed 2013 年 4 月 15 日
what about another images like fMRI cross-sectional images???
Image Analyst
Image Analyst 2013 年 4 月 16 日
Sure, you could do it. Would that be useful to you? Why do you want PCA component images anyway?
Mohamed Moawed
Mohamed Moawed 2013 年 4 月 16 日
i want it to Analyze some fMRI cross-sectional brain images to early diagnosis Alzahimar Disease

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeDimensionality Reduction and Feature Extraction についてさらに検索

質問済み:

2013 年 4 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by