This question is closed. Reopen it to edit or answer.

How to Show that which actor do you resemble for each value of k. You can use majority voting scheme for k=3 and for k=5.

1 view (last 30 days)
The dataset consists of 50 32x32 color images of actors in 10 classes, with 5 images per class.
Data -- a 50x3072 array of uint8s. Each row of the array stores a 32x32 colour image. The first 1024 entries contain the red channel values, the next 1024 the green, and the final 1024 the blue. The image is stored in row-major order, so that the first 32 entries of the array are the red channel values of the first row of the image.
labels -- a list of 50 names. The names at index i indicates the label of the ith image in the array data
Here are the 20 random images shown in attached file.
You want to check that which actor or actress you resemble. It is easier than you thought. Following are the steps that might help you to build your matlab code.
The code for reading dataset and showing some sample images is given in .m file. You have to give your image as an input and perform k-nearest neighbour (k=1,3,5) using the Euclidian distance

Answers (0)

Community Treasure Hunt

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

Start Hunting!