Before executing the project, please add all folders and subfolders to the MATLAB path, and then execute the corresponding files.
- For Image1 (
chromo.txt
), the main function file isProject1.m
in folderProject1
. - For Image2 (
hello_world.jpg
), the main function file isProject2.m
in folderProject2
.
KNN, SOM, and SVM methods are implemented in image classification, and the source code is placed in the folder Project2/classification
.
The dataset is in the folder Project2/classification/p_dataset_26
.
The main code of SVM Classifier for execution is :
classification_svm.m
The main code of kNN Classifier for execution is :
classification_knn.m
The main code of SOM Classifier for execution is :
classification_som.m