PCA and LDA on a binary black and white image

Hi guys I need a matlab code for PCA and LDA to carry out on binary black and white image. Plz help me with it.

2 commentaires

Sean de Wolski
Sean de Wolski le 5 Avr 2011
What have YOU done so far to solve YOUR homework problem?
wat do you mean?

Connectez-vous pour commenter.

 Réponse acceptée

PCA:
[COEFF,SCORE] = princomp(YourImage);
LDA: use classify

4 commentaires

Hey walter
[COEFF,SCORE] = princomp(YourImage); is showing me error
??? Undefined function or method 'princomp' for input arguments of type 'double'.
Error in ==> algo4 at 3
[COEFF,SCORE] = princomp(b);
even for uint8
Walter Roberson
Walter Roberson le 5 Avr 2011
And do you have the Statistics toolbox installed and licensed?
nope!!
Walter Roberson
Walter Roberson le 6 Avr 2011
The MATLAB routines for PCA and LDA are part of the {optional, extra cost} Statistics Toolbox.
I imagine that if you were to use a search engine, you would be able to find alternative code Files that other people have Contributed for the Exchange of MATLAB ideas.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by