diff options
author | Leo Chan <leochanj@live.unc.edu> | 2020-10-22 01:53:21 -0400 |
---|---|---|
committer | Joshua Bakita <jbakita@cs.unc.edu> | 2020-10-22 01:56:35 -0400 |
commit | d17b33131c14864bd1eae275f49a3f148e21cf29 (patch) | |
tree | 0d8f77922e8d193cb0f6edab83018f057aad64a0 /SD-VBS/benchmarks/sift/src/c/sift.h | |
parent | 601ed25a4c5b66cb75315832c15613a727db2c26 (diff) |
Squashed commit of the sb-vbs branch.
Includes the SD-VBS benchmarks modified to:
- Use libextra to loop as realtime jobs
- Preallocate memory before starting their main computation
- Accept input via stdin instead of via argc
Does not include the SD-VBS matlab code.
Fixes libextra execution in LITMUS^RT.
Diffstat (limited to 'SD-VBS/benchmarks/sift/src/c/sift.h')
-rw-r--r-- | SD-VBS/benchmarks/sift/src/c/sift.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/SD-VBS/benchmarks/sift/src/c/sift.h b/SD-VBS/benchmarks/sift/src/c/sift.h new file mode 100644 index 0000000..e8a4ee0 --- /dev/null +++ b/SD-VBS/benchmarks/sift/src/c/sift.h | |||
@@ -0,0 +1,27 @@ | |||
1 | /******************************** | ||
2 | Author: Sravanthi Kota Venkata | ||
3 | ********************************/ | ||
4 | |||
5 | #ifndef _SIFT_ | ||
6 | #define _SIFT_ | ||
7 | |||
8 | #include "sdvbs_common.h" | ||
9 | #include <assert.h> | ||
10 | |||
11 | #define GREATER(a,b) ((a) > (b)) | ||
12 | #define MAX(a,b) (((a)>(b))?(a):(b)) | ||
13 | #define MIN(a,b) (((a)<(b))?(a):(b)) | ||
14 | |||
15 | F2D* sift(F2D* I); | ||
16 | F2D* halveSize(F2D* I); | ||
17 | F2D** gaussianss(F2D* I, float sigman, int O, int S, int omin, int smin, int smax, float sigma0); | ||
18 | F2D** diffss(F2D** ss, int O, int intervals); | ||
19 | F2D* doubleSize(F2D* I); | ||
20 | void imsmooth(F2D* I_pt, float dsigma, F2D* out); | ||
21 | F2D* siftlocalmax(F2D* in, float thresh, int intervals, int M, int N); | ||
22 | F2D* filterBoundaryPoints(int M, int N, F2D* oframes); | ||
23 | F2D* siftrefinemx(F2D* oframes, F2D* dogss, int smin, float thresh, int rin, int M, int N, int intervals); | ||
24 | |||
25 | #endif | ||
26 | |||
27 | |||