How to use the K-NN classifier with sample represented as a matrix by 4 * 256

2 views (last 30 days)
Hi All,
firstly:
1-I have training images each one of them represented by four centers (4 * 256 each) using K-means
2-I want to give these training images to K-NN classifier as training matrix as Matlab help says:
Class = knnclassify(Sample, Training, Group)
3-How to use the K-NN classifier to test an unknown image also represented by four centers using K-means as sample image represented as a matrix by 4 * 256
secondly : I want to say thank you in advance for your time and support.

Answers (0)

Community Treasure Hunt

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

Start Hunting!