フィルターのクリア

Image detection using SVM classifier from wavelets features extraction

1 回表示 (過去 30 日間)
Rafid Mustafiz
Rafid Mustafiz 2018 年 3 月 18 日
コメント済み: Rafid Mustafiz 2018 年 3 月 19 日
I have extracted wavelet features from a set of images and stored as following: cov_features = [R4_f1 R4_f2 R4_f3 R4_f4 R5_f1 R5_f2 R5_f3 R5_f4 R6_f1 R6_f2 R6_f3 R6_f4 G4_f1 G4_f2 G4_f3 G4_f4 G5_f1 G5_f2 G5_f3 G5_f4 G6_f1 G6_f2 G6_f3 G6_f4 B4_f1 B4_f2 B4_f3 B4_f4 B5_f1 B5_f2 B5_f3 B5_f4 B6_f1 B6_f2 B6_f3 B6_f4]
% cov_features = wavelet(im);
for j = 1: 144
wavelet_Training_Feature(j, i) = cov_features(j); % for each image 144 wavelet features here
%i=total_number_of_image
end
But I can not train and classify using SVM. I want to classify images in two classes polyp or nonpolyp. I know there is a builtin function in MATLAB but I don't know to adapt it to be used in this job,any help or suggestion will be helpful to me. Thank to All

回答 (1 件)

Abhishek Ballaney
Abhishek Ballaney 2018 年 3 月 19 日
https://in.mathworks.com/help/stats/support-vector-machine-classification.html
  2 件のコメント
Rafid Mustafiz
Rafid Mustafiz 2018 年 3 月 19 日
Thank you. Actually I can't use these functions. "Features=wavelet_Training_Feature(:,:)" has extracted feature values from image set and "trainLabels = trainingSet.Labels" indicates the training labels. Now how can I use SVM to train and classify?
Rafid Mustafiz
Rafid Mustafiz 2018 年 3 月 19 日
I have found those errors when run "classifie = fitcecoc(Features, trainingLabels)"
Error using classreg.learning.FullClassificationRegressionModel.prepareDataCR (line 201) X and Y do not have the same number of observations.
Error in classreg.learning.classif.FullClassificationModel.prepareData (line 487) classreg.learning.FullClassificationRegressionModel.prepareDataCR(...
Error in classreg.learning.FitTemplate/fit (line 213) this.PrepareData(X,Y,this.BaseFitObjectArgs{:});
Error in ClassificationECOC.fit (line 116) this = fit(temp,X,Y);
Error in fitcecoc (line 383) obj = ClassificationECOC.fit(X,Y,ecocArgs{:});

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAI for Signals and Images についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by