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/disparity/src/c/disparity.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/disparity/src/c/disparity.h')
-rw-r--r-- | SD-VBS/benchmarks/disparity/src/c/disparity.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/SD-VBS/benchmarks/disparity/src/c/disparity.h b/SD-VBS/benchmarks/disparity/src/c/disparity.h new file mode 100644 index 0000000..8617a87 --- /dev/null +++ b/SD-VBS/benchmarks/disparity/src/c/disparity.h | |||
@@ -0,0 +1,24 @@ | |||
1 | /******************************** | ||
2 | Author: Sravanthi Kota Venkata | ||
3 | ********************************/ | ||
4 | |||
5 | #ifndef _DISP_ | ||
6 | #define _DISP_ | ||
7 | |||
8 | #include "sdvbs_common.h" | ||
9 | void computeSAD(I2D *Ileft, I2D* Iright_moved, F2D* SAD); | ||
10 | I2D* getDisparity(I2D* Ileft, I2D* Iright, int win_sz, int max_shift, | ||
11 | I2D* minSAD, I2D* retDisp, I2D* halfWin, | ||
12 | I2D* IrightPadded, I2D* IleftPadded, I2D* Iright_moved, | ||
13 | F2D* retSAD, F2D* SAD, F2D* integralImg, | ||
14 | I2D* range); | ||
15 | void finalSAD(F2D* integralImg, int win_sz, F2D* retSAD); | ||
16 | void findDisparity(F2D* retSAD, F2D* minSAD, I2D* retDisp, int level, int nr, int nc); | ||
17 | void integralImage2D2D(F2D* SAD, F2D* integralImg); | ||
18 | void correlateSAD_2D(I2D* Ileft, I2D* Iright, I2D* Iright_moved, int win_sz, int disparity, F2D* SAD, F2D* integralImg, F2D* retSAD, I2D* range); | ||
19 | I2D* padarray2(I2D* inMat, I2D* borderMat); | ||
20 | void padarray4(I2D* inMat, I2D* borderMat, int dir, I2D* paddedArray); | ||
21 | |||
22 | #endif | ||
23 | |||
24 | |||