我正在使用以下代码。
close all; clear variable; clc;
dbstop if error
dirData = dir('F:\MATLAB\R2017a\bin\Project\project\pashto\actual proj\New folder\proo\Numbers\*.bmp');
for k = 1:length(dirData)
%% read no. of images from folder
filename = dirData(k).name;
im1 = im2single(im2bw(imread(filename)));
%% Detect the MSERF Features
points1 = detectMSERFeatures(im1);
%% Extract the MSERF Features
[features2, valid_points1] = extractFeatures(im1, points1);
figure; imshow(im1); hold on;
plot(valid_points1.selectStrongest(10),'showOrientation',true);
end
现在,我必须获得用于分类目的的特征向量。
featureVector = [theMean, area, perimeter, stdDev];
这是特征向量吗?
请告诉我我是否有错或任何其他建议。 获得功能Vector后如何在数据库中存储。
保存mser_FeatureVect featureVector