Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

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 (최근 30일)
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

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by