how to do image clssification using SVM?

3 views (last 30 days)
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 !
Bruno Pop-Stefanov
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:

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 21 Jan 2014
See my color segmentation demos in my File Exchange. They can be adapted to your image.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!