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 !
  4 Comments
Priyanka Athawale
Priyanka Athawale on 21 Jan 2014
thank you so much sir , I am sending a part of of my image ,the original image is 815x825x3unit8. I want to separate two different green color(marked by red& yellow resp.) regions which occupy certain area. I want to how to proceed for SVM classification ? and how to write the code for the same as I am a beginner. Regards-Priyanka
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. http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 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!