필터 지우기
필터 지우기

PCA or clustering of an image

조회 수: 7 (최근 30일)
Curious Mind
Curious Mind 2018년 3월 4일
답변: Image Analyst 2018년 3월 4일
I have an image which is a concentration profile of ftir mapped spectra. This said image clearly has certain unique patterns and regions.
My question is how do I use matlab to perform principal component analysis (PCA) on this image to obtain the unique images or regions that make up the full image. Any matlab code on performing PCA or clustering Analysis on the image? Thank you.
  댓글 수: 1
David Fletcher
David Fletcher 2018년 3월 4일
It's a big topic area for a forum question. There are many forms of dimensionality reduction and clustering methods. Even within a single technique, there is still quite a lot of tinkering that needs to be done with such things as different distance metrics. The self-paced Machine Learning course does a good job of going through different methods, though I suspect it's not free to access. At the very least it's worth looking through the documentation for kmeans and pca, and they may lead on to other avenues of investigation. Actually running pca or kmeans on your data is fairly trivial, but to get the most from it you need to have some background knowledge of the process and how to adjust the parameters to optimize it for the data you have.

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2018년 3월 4일
I agree with David's comment. An understanding of all the techniques is good before committing to one. You can try several with the Classification Learner app on the Apps tab of the tool ribbon. Attached is my demo of PCA with an image.
Recently (this year I think), I did a program for somebody who had hyperspectral images. Search the Answers forum for it. But it's a straightforward adaptation of the attached demo that does it in RGB space.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Dimensionality Reduction and Feature Extraction에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by