diff options
| author | leochanj105 <leochanj@live.unc.edu> | 2021-10-26 13:22:32 -0400 |
|---|---|---|
| committer | leochanj105 <leochanj@live.unc.edu> | 2021-10-26 13:22:32 -0400 |
| commit | 14c854543b1a3cf344a371a5b45595657f95786b (patch) | |
| tree | 70f752880522e5e44669af365754ac0f649dce81 /SD-VBS/benchmarks/disparity/src/c/finalSAD.c | |
| parent | 5e2ccfae0532ddd89bcc04bf14aad451e9c79785 (diff) | |
add deadlines and costs
Diffstat (limited to 'SD-VBS/benchmarks/disparity/src/c/finalSAD.c')
| -rw-r--r-- | SD-VBS/benchmarks/disparity/src/c/finalSAD.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/SD-VBS/benchmarks/disparity/src/c/finalSAD.c b/SD-VBS/benchmarks/disparity/src/c/finalSAD.c deleted file mode 100644 index 8155820..0000000 --- a/SD-VBS/benchmarks/disparity/src/c/finalSAD.c +++ /dev/null | |||
| @@ -1,28 +0,0 @@ | |||
| 1 | /******************************** | ||
| 2 | Author: Sravanthi Kota Venkata | ||
| 3 | ********************************/ | ||
| 4 | |||
| 5 | #include <stdio.h> | ||
| 6 | #include <stdlib.h> | ||
| 7 | #include "disparity.h" | ||
| 8 | |||
| 9 | void finalSAD(F2D* integralImg, int win_sz, F2D* retSAD) | ||
| 10 | { | ||
| 11 | int endR, endC; | ||
| 12 | int i, j, k; | ||
| 13 | |||
| 14 | endR = integralImg->height; | ||
| 15 | endC = integralImg->width; | ||
| 16 | |||
| 17 | k = 0; | ||
| 18 | for(j=0; j<(endC-win_sz); j++) | ||
| 19 | { | ||
| 20 | for(i=0; i<(endR-win_sz); i++) | ||
| 21 | { | ||
| 22 | subsref(retSAD,i,j) = subsref(integralImg,(win_sz+i),(j+win_sz)) + subsref(integralImg,(i+1) ,(j+1)) - subsref(integralImg,(i+1),(j+win_sz)) - subsref(integralImg,(win_sz+i),(j+1)); | ||
| 23 | } | ||
| 24 | } | ||
| 25 | |||
| 26 | return; | ||
| 27 | } | ||
| 28 | |||
