Borrar filtros
Borrar filtros

How to give Image as Input to SVM

4 visualizaciones (últimos 30 días)
Tallha Akram
Tallha Akram el 14 de Abr. de 2012
Comentada: Pratik Oak el 4 de Ag. de 2015
Let image is (n*n) matrix. If i change it to (N^2*1) matrix,
the SVMtrain gives error " SVM must have 2 column Matrix". To change the Image into two columns doesnt look logical. I want Face recognition using MultuSVM but unable to get the idea of storing image in format. (X1, X2) with Classes(yi).
  2 comentarios
Ahmed
Ahmed el 18 de Sept. de 2014
Please post the line that calls the 'svmtrain' function, the sizes of your data and label matrix/vector and the exact error message. The line "SVM must have 2 column Matrix" does not sound like literally taken from the command prompt output.
Pratik Oak
Pratik Oak el 4 de Ag. de 2015
You have to give the features of an image as input to svmtrain. Not direct image.

Iniciar sesión para comentar.

Respuestas (1)

Pratik Oak
Pratik Oak el 18 de Sept. de 2014
Hi we cant give image as input to svm. U should calculate feature/features of an image. Give that features matrix as input to svm.
  1 comentario
Ahmed
Ahmed el 18 de Sept. de 2014
Under certain circumstances it is possible to input the images directly. For instance, if the images are registered. However, for face recognition this probably won't work (sufficiently) well.

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by