SVM classifier for image classification
14 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
SWATHY Kakkooth
am 27 Aug. 2021
Kommentiert: SWATHY Kakkooth
am 27 Aug. 2021
I am currently working on an image processing project.I have trained SVM classifier to classify paddy leaf images into 3 categories.What should I do to so that any leaf image other than those corresponding to these three categories when given as input give a result that it doesnt belong to these 3 categories?
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 27 Aug. 2021
First of all I'd convert your image into an N-by-3 matrix.
rgbImage = imread('peppers.png');
[r, g, b] = imsplit(rgbImage);
rgbValues = [r(:), g(:), b(:)];
Then I'd use Classification Learner on the Apps tab of the tool ribbon. Tell it to start a new session using your rgbValues from the workspace. Then train it with the SVM classifier of your choice.
Finally, have the Classification Learner export the code to an m-file.
I'm attaching various demos that you might find interesting.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Deep Learning for Image Processing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!