From 14c854543b1a3cf344a371a5b45595657f95786b Mon Sep 17 00:00:00 2001 From: leochanj105 Date: Tue, 26 Oct 2021 13:22:32 -0400 Subject: add deadlines and costs --- SD-VBS/benchmarks/stitch/src/c/script_stitch.c | 67 -------------------------- 1 file changed, 67 deletions(-) delete mode 100644 SD-VBS/benchmarks/stitch/src/c/script_stitch.c (limited to 'SD-VBS/benchmarks/stitch/src/c/script_stitch.c') diff --git a/SD-VBS/benchmarks/stitch/src/c/script_stitch.c b/SD-VBS/benchmarks/stitch/src/c/script_stitch.c deleted file mode 100644 index ee68e70..0000000 --- a/SD-VBS/benchmarks/stitch/src/c/script_stitch.c +++ /dev/null @@ -1,67 +0,0 @@ -/******************************** -Author: Sravanthi Kota Venkata -********************************/ - -#include "stitch.h" -#include -#include "extra.h" -// Valgrind says we use 250Mb of heap - round up to 512Mb -#define STITCH_MEM 1<<29 -int main(int argc, char* argv[]) -{ - SET_UP - mallopt(M_TOP_PAD, STITCH_MEM); - mallopt(M_MMAP_MAX, 0); - int rows, cols; - F2D *x, *y, *v, *interestPnts, *Fcur, *int1, *int2; - I2D *Icur; - int i, j; - char im1[100], im2[100]; - x = y = v = Fcur = int1 = int2 = interestPnts = NULL; - - scanf("%s", im1); - Icur = readImage(im1); - rows = Icur->height; - cols = Icur->width; - - for_each_job { - fFreeHandle(v); - fFreeHandle(interestPnts); - fFreeHandle(int1); - fFreeHandle(int2); - fFreeHandle(Fcur); - v = harris(Icur); - interestPnts = getANMS(v, 24); - int1 = fMallocHandle(interestPnts->height, 1); - int2 = fSetArray(interestPnts->height, 1, 0); - for(i=0; iheight; i++) - { - asubsref(int1,i) = subsref(interestPnts,i,0); - asubsref(int2,i) = subsref(interestPnts,i,1); - } - - Fcur = extractFeatures(Icur, int1, int2); - } - -#ifdef CHECK - /** Self checking - use expected.txt from data directory **/ - { - int ret=0; - float tol = 0.02; -#ifdef GENERATE_OUTPUT - fWriteMatrix(Fcur, argv[1]); -#endif - ret = fSelfCheck(Fcur, "expected_C.txt", tol); - if (ret == -1) - printf("Error in Stitch\n"); - } -#endif - WRITE_TO_FILE - fFreeHandle(Icur); - fFreeHandle(v); - fFreeHandle(interestPnts); - fFreeHandle(int1); - fFreeHandle(int2); - fFreeHandle(Fcur); - return 0; -} -- cgit v1.2.2