extracting HOG features from .mat files and usage of "fitcecoc"

2 ビュー (過去 30 日間)
santhosh kumar buddepu
santhosh kumar buddepu 2021 年 10 月 30 日
回答済み: Pratyush Roy 2021 年 11 月 2 日
I have '.mat files' for different objects and I want to extract HOG features from the mat files, and I want to apply those features on "fitcecoc" SVM one vs one classifier. I have written a code but giving the error like this:
filePattern=fullfile(traindb, '*.mat');
matFiles = dir(filePattern);
for i = 1:length(matFiles)
baseFileName = fullfile(traindb, matFiles(i).name);
ref_files{i} = load(baseFileName);
Dot indexing is not supported for variables of this type.
how to give labels and is it correct way to follow?


Pratyush Roy
Pratyush Roy 2021 年 11 月 2 日
Hi Santhosh,
The traindb variable in the code refers to a string and not a struct. Hence the dot indexing does not work in this case.
As a workaround, you can use Image DataStore to store the image data, since it supports dot indexing.
Hope this helps!

その他の回答 (0 件)


Find more on Machine Learning and Deep Learning for Signals in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by