diff options
author | leochanj105 <leochanj@live.unc.edu> | 2020-10-19 23:09:30 -0400 |
---|---|---|
committer | leochanj105 <leochanj@live.unc.edu> | 2020-10-20 02:40:39 -0400 |
commit | f618466c25d43f3bae9e40920273bf77de1e1149 (patch) | |
tree | 460e739e2165b8a9c37a9c7ab1b60f5874903543 /SD-VBS/benchmarks/stitch/src/matlab/script_run_profile.m | |
parent | 47ced4e96bbb782b9e780e8f2cfc637b2c21ff44 (diff) |
initial sd-vbs
initial sd-vbs
add sd-vbs
sd-vbs
Diffstat (limited to 'SD-VBS/benchmarks/stitch/src/matlab/script_run_profile.m')
-rwxr-xr-x | SD-VBS/benchmarks/stitch/src/matlab/script_run_profile.m | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/SD-VBS/benchmarks/stitch/src/matlab/script_run_profile.m b/SD-VBS/benchmarks/stitch/src/matlab/script_run_profile.m new file mode 100755 index 0000000..f2ca68b --- /dev/null +++ b/SD-VBS/benchmarks/stitch/src/matlab/script_run_profile.m | |||
@@ -0,0 +1,38 @@ | |||
1 | function script_run_profile(dataDir, resultDir, type, common, toolDir) | ||
2 | |||
3 | path(path, common); | ||
4 | image_list = 1; | ||
5 | |||
6 | elapsed = zeros(1,2); | ||
7 | for i=1:image_list | ||
8 | Icur = readImage([dataDir, '/', num2str(i) ,'.bmp']); | ||
9 | rows = size(Icur,1); | ||
10 | cols = size(Icur,2); | ||
11 | fprintf(1,'Input size\t\t- (%dx%d)\n', rows, cols); | ||
12 | |||
13 | %% Self check params | ||
14 | tol = 1; | ||
15 | |||
16 | %% Timing | ||
17 | start = photonStartTiming; | ||
18 | |||
19 | [x y v]=harris(Icur,dataDir); | ||
20 | interestPntsCur=getANMS(x, y, v, 24, dataDir); | ||
21 | Fcur=extractFeatures(Icur, interestPntsCur(:,1), interestPntsCur(:,2), dataDir); | ||
22 | |||
23 | %% Timing | ||
24 | stop = photonEndTiming; | ||
25 | |||
26 | temp = photonReportTiming(start, stop); | ||
27 | elapsed(1) = elapsed(1) + temp(1); | ||
28 | elapsed(2) = elapsed(2) + temp(2); | ||
29 | |||
30 | |||
31 | end | ||
32 | |||
33 | %% Self checking | ||
34 | fWriteMatrix(Fcur, dataDir); | ||
35 | |||
36 | %% Timing | ||
37 | photonPrintTiming(elapsed); | ||
38 | |||