Multi-Dimensional Data for SVM
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello,
I hope this is the right place to ask a question like this.
I would like to compare two classes of images: yellow flower and non-yellow flower using the libSVM package. I don't think I can use the built-in SVM package that comes with Matlab because it doesn't support multi-dimensional data, which is what I need I think.
What I would like to do is compare feature points (SURF or SIFT) and other things like colour histogram, etc. per image. For the training of the SVM, libSVM needs two matrices: a 'label' vector like this:
[1 % yellow flower image
1
-1 % non-yellow flower image
-1];
and the data vector like this:
[feature points for img1 (MxN), colour histogram information (RGB space, 1x3), other information about img1
feature points for img2, etc....
feature points for img3, etc....
feature points for img4, etc.... ]
where each row corresponds to one image ('1' or '-1' in the 'label' vector above). The data is multi-dimensional because there are multiple feature points for each image. I don't think my design works because the number of feature points is different for each image :/ some images have 130+ salient feature points and some have less so the size of the final multi-dimensional row is different for each image.
Can anyone help me with this problem? How else can I design my data for this to work and avoid my problem? Maybe I can use the built-in Matlab package if I shift my data around in some way?
I'm sorry if this is not the right place to ask a question like this. libSVM does not have a forum of its own and this problem is, I guess, more about data design than the libsvm package itself.
Many thanks for any help received,
Ziggy
0 Commenti
Risposte (2)
Richard Willey
il 3 Mag 2011
Hi Ziggy
First: Statistics Toolbox has a number of good classification algorithms. The 11a release includes a variety of different boosted decision trees including adaboost - this is a very popular classification algorithm within the image processing field.
Second: From the sounds of things, your problem isn't with the classification algorithm, but rather with what's called "feature extraction". How can you transform your image into raw data that the classification algorithm can work with.
MathWorks gave a webinar a couple weeks back titled "Computer Vision with MATLAB" which included an applied feature extraction / classification example.
0 Commenti
Vedere anche
Categorie
Scopri di più su Statistics and Machine Learning Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!