how to do image clssification using SVM?
3 views (last 30 days)
Show older comments
Priyanka Athawale
on 20 Jan 2014
Answered: Image Analyst
on 21 Jan 2014
I am going to separate two different regions from the same image. For this I am using SVM . As m a beginner, I am not getting to use the image samples for training SVM . Basically I want to know how to start , If I have .tif image with me. Please hepl. Thank u !
4 Comments
Bruno Pop-Stefanov
on 21 Jan 2014
I don't think you need to use something as complex as an SVM for that problem. If you really want to use an SVM, you will have to mark every pixel belonging to one shade or the other in order to train your classifier. That sounds like a pain to me.
I would suggest to write a simple color thresholding in HSV or L*a*b* space after trying out thresholds that effectively segment the two shades of green.
Here is an example in L*a*b* space:
There is also a built-in algorithm in the Computer Vision System Toolbox:
Accepted Answer
Image Analyst
on 21 Jan 2014
See my color segmentation demos in my File Exchange. http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 They can be adapted to your image.
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!