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 Comments

What have YOU done so far to solve YOUR homework problem?

Sign in to comment.

 Accepted Answer

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

4 Comments

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
And do you have the Statistics toolbox installed and licensed?
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.

Sign in to comment.

More Answers (0)

Categories

Products

Community Treasure Hunt

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

Start Hunting!