필터 지우기
필터 지우기

Info

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

How to prepare data for using in 'svmclassify'?

조회 수: 1 (최근 30일)
sasikala
sasikala 2013년 2월 6일
마감: MATLAB Answer Bot 2021년 8월 20일
I am working on classification of images based my features extracted from wavelet transform of my images. I have computed the mean and energy of the two class of images. For each image I have about 6 feature values. ie., mean and energy of the detail subimages of wavelet transform. Totally I have 5 images in each class. I have extracted features from all the 10 images. I donot know how to feed my features to svm for training and testing?

답변 (1개)

Jeff E
Jeff E 2013년 2월 6일
For detailed help, see the "Input Arguments" section of svmtrain: http://www.mathworks.com/help/bioinfo/ref/svmtrain.html
But translated to your case, the "Training" input will be a 10 by "about 6" matrix. Each row contains the "about 6" measurements you have made from a single image.
The "Group" input will be a 10x1 vector that identifies the class of each image in the corresponding "Training" matrix. For simplicity, you can just make this a logical vector.

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by