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/sift/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/sift/src/matlab/script_run_profile.m')
-rw-r--r-- | SD-VBS/benchmarks/sift/src/matlab/script_run_profile.m | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/SD-VBS/benchmarks/sift/src/matlab/script_run_profile.m b/SD-VBS/benchmarks/sift/src/matlab/script_run_profile.m new file mode 100644 index 0000000..c157507 --- /dev/null +++ b/SD-VBS/benchmarks/sift/src/matlab/script_run_profile.m | |||
@@ -0,0 +1,23 @@ | |||
1 | function script_run_profile(dataDir, resultDir, type, common, tooldir) | ||
2 | |||
3 | path(path,common); | ||
4 | sift_compile; | ||
5 | |||
6 | I1=readImage([dataDir, '/1.bmp']) ; | ||
7 | |||
8 | rows = size(I1,1); | ||
9 | cols = size(I1,2); | ||
10 | fprintf(1,'Input size\t\t- (%dx%d)\n', rows, cols); | ||
11 | |||
12 | I1=I1-min(I1(:)) ; | ||
13 | I1=I1/max(I1(:)) ; | ||
14 | |||
15 | %% Timing | ||
16 | start = photonStartTiming; | ||
17 | frames1 = sift( I1) ; | ||
18 | stop = photonEndTiming; | ||
19 | elapsed = photonReportTiming(start, stop); | ||
20 | photonPrintTiming(elapsed); | ||
21 | |||
22 | fWriteMatrix(frames1, dataDir); | ||
23 | |||