forked from Mrahman17/mmWave-Radar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdataCollection_OF.m
45 lines (43 loc) · 1.95 KB
/
dataCollection_OF.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
clear; clc; close all; warning off;
seq ='3';
data = ['/mnt/HDD01/rspl-admin/DATASETS/COVID19 Sequential/Output/Sequence ' seq ...
'/rangeDoppler/77ghz/Front/Mahbub/*_gray.avi'];
files = dir(data);
I_MAX = numel(files); % # of files in "files"
for i = 1:I_MAX % for the first 20 iteration
tic
msg = strcat(['Processing file ', int2str(i), ' of ', int2str(I_MAX)]); % loading message
% waitbar(i/I_MAX, w, msg);
disp(msg);
fName = files(i).name;
[foo1, name, foo2] = fileparts(fName);
fIn = fullfile(files(i).folder, files(i).name);
seq = num2str(fName(4));
spect_out = ['/mnt/HDD01/rspl-admin/DATASETS/COVID19 Sequential/Output/frac comp/OF/'];
rd_out = ['/mnt/HDD01/rspl-admin/DATASETS/COVID19 Sequential/Output/Sequence ' seq ...
'/rangeDoppler/77ghz/Front/Mahbub/'];
fOut = strcat(spect_out, name, '.png');
fOut_vid = strcat(rd_out, name, '.avi');
% seq =
% datToImage_Anchortek_No_MTI(fIn, fOut, fName);
% datToImageV1( fIn, fOut, fName )
% datToImage_77( fIn, fOut, fName );
% datToImage_matrix(fIn, fOut, fName );
% datToImage_77_MTI( fIn, fOut, fName );
% rangeDoppler_Anchortech(fIn, fOut_vid, fName);
% debug_CVD(fIn, fOut, fName);
% Xethru_spec(fIn, fOut, fName);
% rangeDopp_Video(fIn, fOut_vid, fName);
% range_Dopp_apart(fIn, fOut_vid, fName);
% optical_flow_auto(fIn, fOut, fName);
% PSD_auto(fIn, fOut, fName);
% vel_est_77(fIn, fOut, fName);
% opt_flow_velocity(fIn, fOut, fName);
% opticalFlow_77_20sec(fIn, fOut, fName);
% microDoppler_AWR1642_bulk_BPM(fIn, fOut)
% rangeDopp_AWR1642(fIn, fOut_vid)
% spect_to_OF(fIn, fOut)
RD_OF_RadarConf(fIn,fOut,fName)
% datToImage_Anchortech(fIn, fOut)
toc
end