## MATLAB: How to give elliptical fourier coefficients as input to Principal Component Analysis(PCA)

elliptical fourier descriptorsimage processingMATLABprincipal component analysis

I am using Elliptical fourier descriptors as feature for classification of plant species. I am using 18 leaves for each specie and have 3 such species making total of 54 leaves. I am done with EF descriptors and have coefficients (an,bn,cn,dn) for all leaves. I have calculated 30 harmonics. For each leaf I have a matrix(30×4) of coeficients. Now I want to use principal component analysis (PCA) . According to what I have read about PCA, the input should have rows correspond to observations and columns to variables. Now I am not able to understand which ones are the observation and which are variable. According to me the 30 harmonics would be rows and a,b,c,d would be the columns for each leaf. I have 54 leaves making the columns (4*54= 216). So the input to PCA would be a matrix of size 30X216 (30 rows and 216 columns). Am I right in doing this, as the largest eigenvalue I get after calculations is 2.4746 and second largest is 0.0494. I am trying to implement PCA myself in Matlab.

## Best Answer