フィルターのクリア

how to save feature vector of SURF for each image and train, test it for classification to svm?

1 回表示 (過去 30 日間)
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
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"
Use cell array, I am answering the question to save different sizes/types results data
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 件のコメント
chetna kaushal
chetna kaushal 2019 年 8 月 2 日
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 件)

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by