can I apply CCA to thePCA features of two different images.

1 view (last 30 days)
I am trying to obtain PCA features of two images of same size. My question is can i find correlation of the two PCA features using CCA.

Answers (1)

Aashray
Aashray on 7 Feb 2025
Edited: Aashray on 27 Feb 2025
Hello!
To find CCA (Canonical Correlation Analysis) using two PCA (Principal Component Analysis) features of two images, you need to load the desired images first into MATLAB, and then flatten those images using the “reshape” function into 1 dimensional vector.
After that, find the PCA coefficient and the score of both the images using “pca” function.
These scores can then be fed to “canoncorr” function for finding out the desired CCA result.
For more information regarding the “pca” and “canoncorr” function, kindly refer to the following MATLAB documentation:

Categories

Find more on Dimensionality Reduction and Feature Extraction in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!