summaryrefslogtreecommitdiffstats
path: root/SD-VBS/benchmarks/sift
diff options
context:
space:
mode:
authorLeo Chan <leochanj@live.unc.edu>2020-10-22 01:53:21 -0400
committerJoshua Bakita <jbakita@cs.unc.edu>2020-10-22 01:56:35 -0400
commitd17b33131c14864bd1eae275f49a3f148e21cf29 (patch)
tree0d8f77922e8d193cb0f6edab83018f057aad64a0 /SD-VBS/benchmarks/sift
parent601ed25a4c5b66cb75315832c15613a727db2c26 (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')
-rw-r--r--SD-VBS/benchmarks/sift/Makefile3
-rw-r--r--SD-VBS/benchmarks/sift/data/Makefile3
-rw-r--r--SD-VBS/benchmarks/sift/data/cif/1.bmpbin0 -> 248886 bytes
-rw-r--r--SD-VBS/benchmarks/sift/data/cif/Makefile7
-rw-r--r--SD-VBS/benchmarks/sift/data/cif/expected.m3
-rw-r--r--SD-VBS/benchmarks/sift/data/cif/expected_C.txt3
-rw-r--r--SD-VBS/benchmarks/sift/data/cif/test0.txt15
-rw-r--r--SD-VBS/benchmarks/sift/data/fullhd/1.bmpbin0 -> 3499254 bytes
-rw-r--r--SD-VBS/benchmarks/sift/data/fullhd/Makefile7
-rw-r--r--SD-VBS/benchmarks/sift/data/fullhd/expected.m3
-rw-r--r--SD-VBS/benchmarks/sift/data/fullhd/expected_C.txt3
-rw-r--r--SD-VBS/benchmarks/sift/data/fullhd/out22344
-rw-r--r--SD-VBS/benchmarks/sift/data/qcif/1.bmpbin0 -> 62262 bytes
-rw-r--r--SD-VBS/benchmarks/sift/data/qcif/Makefile8
-rwxr-xr-xSD-VBS/benchmarks/sift/data/qcif/VBS_Ver1bin0 -> 97049 bytes
-rw-r--r--SD-VBS/benchmarks/sift/data/qcif/expected.m3
-rw-r--r--SD-VBS/benchmarks/sift/data/qcif/expected_C.txt3
-rwxr-xr-xSD-VBS/benchmarks/sift/data/qcif/im1_qcif.tifbin0 -> 76338 bytes
-rw-r--r--SD-VBS/benchmarks/sift/data/sim/1.bmpbin0 -> 3126 bytes
-rw-r--r--SD-VBS/benchmarks/sift/data/sim/Makefile7
-rw-r--r--SD-VBS/benchmarks/sift/data/sim/c.txt64
-rw-r--r--SD-VBS/benchmarks/sift/data/sim/c1.txt132
-rw-r--r--SD-VBS/benchmarks/sift/data/sim/c_run.txt1
-rw-r--r--SD-VBS/benchmarks/sift/data/sim/expected.m3
-rw-r--r--SD-VBS/benchmarks/sift/data/sim/expected_C.txt3
-rw-r--r--SD-VBS/benchmarks/sift/data/sim/m.txt143
-rw-r--r--SD-VBS/benchmarks/sift/data/sim/m_run.txt22
-rw-r--r--SD-VBS/benchmarks/sift/data/sim/out64
-rw-r--r--SD-VBS/benchmarks/sift/data/sim/outpt3
-rw-r--r--SD-VBS/benchmarks/sift/data/sim_fast/1.bmpbin0 -> 822 bytes
-rw-r--r--SD-VBS/benchmarks/sift/data/sim_fast/Makefile7
-rw-r--r--SD-VBS/benchmarks/sift/data/sim_fast/expected.m3
-rw-r--r--SD-VBS/benchmarks/sift/data/sim_fast/expected_C.txt3
-rw-r--r--SD-VBS/benchmarks/sift/data/sqcif/1.bmpbin0 -> 27702 bytes
-rw-r--r--SD-VBS/benchmarks/sift/data/sqcif/Makefile7
-rw-r--r--SD-VBS/benchmarks/sift/data/sqcif/expected.m3
-rw-r--r--SD-VBS/benchmarks/sift/data/sqcif/expected_C.txt3
-rw-r--r--SD-VBS/benchmarks/sift/data/test/1.bmpbin0 -> 246 bytes
-rw-r--r--SD-VBS/benchmarks/sift/data/test/Makefile6
-rw-r--r--SD-VBS/benchmarks/sift/data/test/expected.m0
-rw-r--r--SD-VBS/benchmarks/sift/data/test/expected_C.txt1
-rw-r--r--SD-VBS/benchmarks/sift/data/vga/1.bmpbin0 -> 691254 bytes
-rw-r--r--SD-VBS/benchmarks/sift/data/vga/Makefile7
-rw-r--r--SD-VBS/benchmarks/sift/data/vga/expected.m3
-rw-r--r--SD-VBS/benchmarks/sift/data/vga/expected_C.txt3
-rw-r--r--SD-VBS/benchmarks/sift/src/c/diffss.c53
-rw-r--r--SD-VBS/benchmarks/sift/src/c/doubleSize.c55
-rw-r--r--SD-VBS/benchmarks/sift/src/c/filterBoundaryPoints.c61
-rw-r--r--SD-VBS/benchmarks/sift/src/c/gaussianss.c185
-rw-r--r--SD-VBS/benchmarks/sift/src/c/halveSize.c35
-rw-r--r--SD-VBS/benchmarks/sift/src/c/imsmooth.c104
-rw-r--r--SD-VBS/benchmarks/sift/src/c/script_sift.c83
-rw-r--r--SD-VBS/benchmarks/sift/src/c/sift.c314
-rw-r--r--SD-VBS/benchmarks/sift/src/c/sift.h27
-rw-r--r--SD-VBS/benchmarks/sift/src/c/siftlocalmax.c247
-rw-r--r--SD-VBS/benchmarks/sift/src/c/siftrefinemx.c196
56 files changed, 24253 insertions, 0 deletions
diff --git a/SD-VBS/benchmarks/sift/Makefile b/SD-VBS/benchmarks/sift/Makefile
new file mode 100644
index 0000000..60cc0ec
--- /dev/null
+++ b/SD-VBS/benchmarks/sift/Makefile
@@ -0,0 +1,3 @@
1include ../../common/makefiles/Makefile.include
2include $(MAKEFILE_COMMON_DIR)/Makefile.recurse
3
diff --git a/SD-VBS/benchmarks/sift/data/Makefile b/SD-VBS/benchmarks/sift/data/Makefile
new file mode 100644
index 0000000..ba33d35
--- /dev/null
+++ b/SD-VBS/benchmarks/sift/data/Makefile
@@ -0,0 +1,3 @@
1include ../../../common/makefiles/Makefile.include
2include $(MAKEFILE_COMMON_DIR)/Makefile.recurse
3
diff --git a/SD-VBS/benchmarks/sift/data/cif/1.bmp b/SD-VBS/benchmarks/sift/data/cif/1.bmp
new file mode 100644
index 0000000..510ee1e
--- /dev/null
+++ b/SD-VBS/benchmarks/sift/data/cif/1.bmp
Binary files differ
diff --git a/SD-VBS/benchmarks/sift/data/cif/Makefile b/SD-VBS/benchmarks/sift/data/cif/Makefile
new file mode 100644
index 0000000..f9f69ad
--- /dev/null
+++ b/SD-VBS/benchmarks/sift/data/cif/Makefile
@@ -0,0 +1,7 @@
1INPUT=cif
2include ../../../../common/makefiles/Makefile.include
3
4BMARK=sift
5include $(MAKEFILE_COMMON_DIR)/Makefile.common
6
7
diff --git a/SD-VBS/benchmarks/sift/data/cif/expected.m b/SD-VBS/benchmarks/sift/data/cif/expected.m
new file mode 100644
index 0000000..af2bf0d
--- /dev/null
+++ b/SD-VBS/benchmarks/sift/data/cif/expected.m
@@ -0,0 +1,3 @@
1136.999167 77.000720 83.999729 112.000277 121.000620 39.000176 51.001094 43.999857 61.998244 13.999880 25.000228 47.997497 33.001164 55.999991 20.001724 54.000010 3.999342 5.000423 20.000317 43.000814 14.996794 15.002251 26.996749 19.002418
2112.999914 76.000321 129.999754 130.999869 109.999693 139.999571 14.999954 8.999146 17.000011 60.999649 13.999972 50.998759 37.000079 49.999613 52.000721 20.998285 4.001589 67.002178 28.000061 31.999063 14.997124 26.998721 15.996770 21.000680
30.000541 2.000809 2.000690 1.999219 1.999901 1.999766 -0.000501 1.001493 0.997885 2.002503 2.001009 2.000486 0.000857 0.000447 0.999257 1.001282 1.999210 2.004933 1.998901 2.002017 0.000844 0.002754 0.003280 0.999702
diff --git a/SD-VBS/benchmarks/sift/data/cif/expected_C.txt b/SD-VBS/benchmarks/sift/data/cif/expected_C.txt
new file mode 100644
index 0000000..75e4acd
--- /dev/null
+++ b/SD-VBS/benchmarks/sift/data/cif/expected_C.txt
@@ -0,0 +1,3 @@
1136.999161 77.000717 83.999725 112.000275 121.000618 39.000175 51.001095 43.999855 61.998245 13.999880 25.000229 47.997498 33.001163 55.999992 20.001724 54.000011 3.999342 5.000423 20.000317 43.000813 14.996795 15.002251 26.996750 19.002419
2112.999916 76.000320 129.999756 130.999863 109.999695 139.999573 14.999953 8.999146 17.000011 60.999649 13.999972 50.998760 37.000080 49.999615 52.000721 20.998285 4.001589 67.002174 28.000061 31.999063 14.997125 26.998720 15.996770 21.000681
30.000540 2.000809 2.000690 1.999218 1.999901 1.999766 -0.000501 1.001493 0.997885 2.002503 2.001009 2.000486 0.000857 0.000447 0.999257 1.001282 1.999210 2.004933 1.998901 2.002017 0.000844 0.002754 0.003280 0.999702
diff --git a/SD-VBS/benchmarks/sift/data/cif/test0.txt b/SD-VBS/benchmarks/sift/data/cif/test0.txt
new file mode 100644
index 0000000..437c8b0
--- /dev/null
+++ b/SD-VBS/benchmarks/sift/data/cif/test0.txt
@@ -0,0 +1,15 @@
1sift none 7 none 5 99041712 test0 0 0 0
2sift none 7 none 5 93074416 test0 1 0 0
3sift none 7 none 5 92964760 test0 2 0 0
4sift none 7 none 5 93140184 test0 3 0 0
5sift none 7 none 5 93194536 test0 4 0 0
6sift none 4 none 5 98194184 test0 0 0 0
7sift none 4 none 5 92283064 test0 1 0 0
8sift none 4 none 5 91846712 test0 2 0 0
9sift none 4 none 5 92315824 test0 3 0 0
10sift none 4 none 5 92186408 test0 4 0 0
11sift none 12 none 5 106681616 test0 0 0 0
12sift none 12 none 5 99012232 test0 1 0 0
13sift none 12 none 5 103506616 test0 2 0 0
14sift none 12 none 5 97303072 test0 3 0 0
15sift none 12 none 5 97633920 test0 4 0 0
diff --git a/SD-VBS/benchmarks/sift/data/fullhd/1.bmp b/SD-VBS/benchmarks/sift/data/fullhd/1.bmp
new file mode 100644
index 0000000..a9113a9
--- /dev/null
+++ b/SD-VBS/benchmarks/sift/data/fullhd/1.bmp
Binary files differ
diff --git a/SD-VBS/benchmarks/sift/data/fullhd/Makefile b/SD-VBS/benchmarks/sift/data/fullhd/Makefile
new file mode 100644
index 0000000..0a2f146
--- /dev/null
+++ b/SD-VBS/benchmarks/sift/data/fullhd/Makefile
@@ -0,0 +1,7 @@
1INPUT=fullhd
2include ../../../../common/makefiles/Makefile.include
3
4BMARK=sift
5include $(MAKEFILE_COMMON_DIR)/Makefile.common
6
7
diff --git a/SD-VBS/benchmarks/sift/data/fullhd/expected.m b/SD-VBS/benchmarks/sift/data/fullhd/expected.m
new file mode 100644
index 0000000..186fa90
--- /dev/null
+++ b/SD-VBS/benchmarks/sift/data/fullhd/expected.m
@@ -0,0 +1,3 @@
1414.999928 4.000992 4.001288 123.000042 71.999940 78.999870 104.999905 112.999724 48.002433 12.999701 42.000432 59.002691 23.000113 28.000855 46.001861 31.000996 52.998290 19.001083 50.999850 3.998759 4.998837 18.999829 40.999310 24.995970 18.001268
22156.000398 535.996659 265.997001 73.999950 70.999681 121.999948 123.000221 104.000345 13.999844 58.000118 8.999411 14.999927 14.000431 51.000060 47.999387 35.000137 46.000387 49.000452 19.002464 4.001419 62.999499 26.000252 29.000954 16.000873 19.999109
31.000357 1.997461 1.997128 0.999547 2.002183 2.002401 2.001073 2.000907 0.000804 0.997062 1.001759 1.000496 2.001831 1.997246 2.000260 0.000086 -0.000249 0.998226 0.997202 1.998000 2.001326 1.997402 2.001034 0.002951 0.995889
diff --git a/SD-VBS/benchmarks/sift/data/fullhd/expected_C.txt b/SD-VBS/benchmarks/sift/data/fullhd/expected_C.txt
new file mode 100644
index 0000000..fcf2a1a
--- /dev/null
+++ b/SD-VBS/benchmarks/sift/data/fullhd/expected_C.txt
@@ -0,0 +1,3 @@
1414.999939 4.000992 4.001288 123.000038 71.999939 78.999870 104.999901 112.999725 48.002434 12.999701 42.000431 59.002689 23.000113 28.000854 46.001862 31.000996 52.998291 19.001083 50.999851 3.998759 4.998837 18.999830 40.999310 24.995970 18.001268
22156.000488 535.996643 265.997009 73.999947 70.999680 121.999947 123.000221 104.000343 13.999844 58.000118 8.999411 14.999927 14.000431 51.000061 47.999386 35.000137 46.000385 49.000454 19.002464 4.001420 62.999500 26.000252 29.000954 16.000874 19.999109
31.000357 1.997461 1.997128 0.999547 2.002183 2.002401 2.001073 2.000907 0.000804 0.997062 1.001759 1.000496 2.001831 1.997246 2.000260 0.000086 -0.000249 0.998226 0.997202 1.998000 2.001326 1.997402 2.001034 0.002951 0.995889
diff --git a/SD-VBS/benchmarks/sift/data/fullhd/out b/SD-VBS/benchmarks/sift/data/fullhd/out
new file mode 100644
index 0000000..39c7bad
--- /dev/null
+++ b/SD-VBS/benchmarks/sift/data/fullhd/out
@@ -0,0 +1,22344 @@
1
2Benchmark - sift
3Data set - fullhd
4 BEFORE OFRAMES PRINT = 3 20369 3840 2160
530 5.000000 9905.000000
631 5.000000 9943.000000
732 5.000000 9951.000000
833 5.000000 9954.000000
934 5.000000 9969.000000
1035 5.000000 9981.000000
1136 5.000000 9985.000000
1237 5.000000 10001.000000
1338 5.000000 10005.000000
1439 5.000000 10081.000000
1540 5.000000 11404.000000
1641 5.000000 11423.000000
1742 5.000000 11425.000000
1843 5.000000 11430.000000
1944 5.000000 11452.000000
2045 5.000000 11462.000000
2146 5.000000 11467.000000
2247 5.000000 11471.000000
2348 5.000000 11481.000000
2449 5.000000 11486.000000
2550 5.000000 11500.000000