- Use the Import Data optiom in the variable section on the home tab, and choose the output type as 'Numeric matrix'
- Use the below code snippet
How to extract HOG and EHD features from '.txt' files?
1 ビュー (過去 30 日間)
表示 古いコメント
santhosh kumar buddepu
2021 年 10 月 26 日
回答済み: Alamanda Ponappa Poovaya
2021 年 11 月 10 日
I have '.txt' files and I want to extract HOG and EHD features from these files and I want to classify the targets using SVM and random forest classifiers.
0 件のコメント
採用された回答
Alamanda Ponappa Poovaya
2021 年 11 月 10 日
Hi,
The first step would be to import the txt file into MATLAB. You can do so in 2 ways.
A = readtable('metalpipe_er1_h5_d2.txt');
B = table2array(A);
In order to extract the HOG features, you can use the extractHOGFeatures function. The documentation is linked below:
There is no inbuilt function to extract EHD features, but you can refer to the Answer linked below, it describes extracting EHD features
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Find more on Text Analytics Toolbox 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!