필터 지우기
필터 지우기

SVM classifier for image classification

조회 수: 14 (최근 30일)
SWATHY Kakkooth
SWATHY Kakkooth 2021년 8월 27일
댓글: SWATHY Kakkooth 2021년 8월 27일
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?

채택된 답변

Image Analyst
Image Analyst 2021년 8월 27일
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.
  댓글 수: 1
SWATHY Kakkooth
SWATHY Kakkooth 2021년 8월 27일
My current SVM classifier works well in classifying rice leaf image into 3 categories. My problem is if any other image other than those belonging to these three is inputted how could I give a result that this leaf doesnt belong to those 3 categories?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deep Learning for Image Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by