how to save feature vector of SURF for each image and train, test it for classification to svm?
現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
古いコメントを表示
output for image 1: 322*64
output for image 2: 593*64
and so on the value*64 changes for each image. can anyone please help me how to save so many features and then use it for training.
採用された回答
KALYAN ACHARJYA
2019 年 8 月 2 日
編集済み: KALYAN ACHARJYA
2019 年 8 月 2 日
"output for image 1: 322*64
output for image 2: 593*64
and so on the value*64 changes for each image. can anyone please help me how to save so many features and then use it for training"
I am assuming you are calling Images
result=cells(1,total_images);
%................^Total result images
for i=1:total_images
%image read
result{i}= output result;
end
7 件のコメント
Preallocate the cell array properly.
Sir how to feed them for testing.
KALYAN ACHARJYA
2019 年 8 月 2 日
編集済み: KALYAN ACHARJYA
2019 年 8 月 2 日
Comment to @Madhan, As I have no idea the number of iteration?? Any Clue?
Thanks
KALYAN ACHARJYA
2019 年 8 月 2 日
編集済み: KALYAN ACHARJYA
2019 年 8 月 2 日
@Chetna, that part I have no idea, I never worked on it, but certainly it seems easy steps. it would be better open new question, and experts will answer on it.
for i = 1 : total_images
Ok @Madhan Thanks
- SOB_B_A-14-22549AB-400-001.png
- SOB_B_F-14-9133-400-001.png
- SOB_B_PT-14-21998AB-400-001.png
- SOB_B_TA-14-3411F-400-001.png
- SOB_B_A-14-22549AB-400-001.png
- SOB_B_F-14-9133-400-001.png
- SOB_B_PT-14-21998AB-400-001.png
- SOB_B_TA-14-3411F-400-001.png
- SOB_M_DC-14-2523-400-005.png
- SOB_M_LC-14-12204-400-025.png
- SOB_M_MC-14-10147-400-002.png
- SOB_M_PC-14-9146-400-002.png
training = 'image';
filenames = dir(fullfile(training_female, '*.png'));
total_images = numel(filenames);
featureMatrix = [];
for n = 1:total_images
full_name= fullfile(training, filenames(n).name);
training_images = imread(full_name);
training_images=rgb2gray(training_images);
Fpoints = detectSURFFeatures(training_images);
[features, validPoints] = extractFeatures(training_images,Fpoints);
featurematrix{n} = [featureMatrix; features];
suppose I have 8 images.
The featuematrix has 8 cell struct. with different values in a 64 column for each image.
how do i now label them and then use them for classification. how do i call them for testing.
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Get Started with Statistics and Machine Learning Toolbox についてさらに検索
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
