summaryrefslogtreecommitdiffstats
path: root/SD-VBS/benchmarks/mser
diff options
context:
space:
mode:
authorleochanj105 <leochanj@live.unc.edu>2021-10-26 13:22:32 -0400
committerleochanj105 <leochanj@live.unc.edu>2021-10-26 13:22:32 -0400
commit14c854543b1a3cf344a371a5b45595657f95786b (patch)
tree70f752880522e5e44669af365754ac0f649dce81 /SD-VBS/benchmarks/mser
parent5e2ccfae0532ddd89bcc04bf14aad451e9c79785 (diff)
add deadlines and costs
Diffstat (limited to 'SD-VBS/benchmarks/mser')
-rwxr-xr-xSD-VBS/benchmarks/mser/.mser.mex.c.swpbin16384 -> 0 bytes
-rw-r--r--SD-VBS/benchmarks/mser/Makefile3
-rw-r--r--SD-VBS/benchmarks/mser/data/Makefile3
-rw-r--r--SD-VBS/benchmarks/mser/data/qcif/1.bmpbin69750 -> 0 bytes
-rw-r--r--SD-VBS/benchmarks/mser/data/qcif/Makefile6
-rwxr-xr-xSD-VBS/benchmarks/mser/data/qcif/VBS_Ver1bin79672 -> 0 bytes
-rw-r--r--SD-VBS/benchmarks/mser/data/qcif/expected.m68
-rw-r--r--SD-VBS/benchmarks/mser/data/qcif/expected_C.txt1
-rw-r--r--SD-VBS/benchmarks/mser/src/c/mser.c714
-rw-r--r--SD-VBS/benchmarks/mser/src/c/mser.h83
-rw-r--r--SD-VBS/benchmarks/mser/src/c/script_mser.c117
11 files changed, 0 insertions, 995 deletions
diff --git a/SD-VBS/benchmarks/mser/.mser.mex.c.swp b/SD-VBS/benchmarks/mser/.mser.mex.c.swp
deleted file mode 100755
index 4f3a21c..0000000
--- a/SD-VBS/benchmarks/mser/.mser.mex.c.swp
+++ /dev/null
Binary files differ
diff --git a/SD-VBS/benchmarks/mser/Makefile b/SD-VBS/benchmarks/mser/Makefile
deleted file mode 100644
index 60cc0ec..0000000
--- a/SD-VBS/benchmarks/mser/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
1include ../../common/makefiles/Makefile.include
2include $(MAKEFILE_COMMON_DIR)/Makefile.recurse
3
diff --git a/SD-VBS/benchmarks/mser/data/Makefile b/SD-VBS/benchmarks/mser/data/Makefile
deleted file mode 100644
index ba33d35..0000000
--- a/SD-VBS/benchmarks/mser/data/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
1include ../../../common/makefiles/Makefile.include
2include $(MAKEFILE_COMMON_DIR)/Makefile.recurse
3
diff --git a/SD-VBS/benchmarks/mser/data/qcif/1.bmp b/SD-VBS/benchmarks/mser/data/qcif/1.bmp
deleted file mode 100644
index f5a4408..0000000
--- a/SD-VBS/benchmarks/mser/data/qcif/1.bmp
+++ /dev/null
Binary files differ
diff --git a/SD-VBS/benchmarks/mser/data/qcif/Makefile b/SD-VBS/benchmarks/mser/data/qcif/Makefile
deleted file mode 100644
index 0c1d924..0000000
--- a/SD-VBS/benchmarks/mser/data/qcif/Makefile
+++ /dev/null
@@ -1,6 +0,0 @@
1INPUT=qcif
2include ../../../../common/makefiles/Makefile.include
3
4BMARK=mser
5include $(MAKEFILE_COMMON_DIR)/Makefile.common
6
diff --git a/SD-VBS/benchmarks/mser/data/qcif/VBS_Ver1 b/SD-VBS/benchmarks/mser/data/qcif/VBS_Ver1
deleted file mode 100755
index a973e58..0000000
--- a/SD-VBS/benchmarks/mser/data/qcif/VBS_Ver1
+++ /dev/null
Binary files differ
diff --git a/SD-VBS/benchmarks/mser/data/qcif/expected.m b/SD-VBS/benchmarks/mser/data/qcif/expected.m
deleted file mode 100644
index 41fc7d7..0000000
--- a/SD-VBS/benchmarks/mser/data/qcif/expected.m
+++ /dev/null
@@ -1,68 +0,0 @@
122308
210162
314251
49500
518683
65669
71501
82813
95180
106119
113731
123939
1322065
142417
155048
1617994
1714159
1815203
1917195
2018926
2113616
222192
232
246900
259794
2611366
2714679
285344
2917471
3011778
3116661
3210323
3312856
3413141
357022
3612740
3711984
3814560
3912982
4019042
4113916
421250
437680
44159
455477
4613909
4715632
487620
496936
5014660
512021
5212466
5316436
546556
5512499
569457
576559
5813998
5917616
609992
6112224
6214654
639572
646970
658661
6618900
673364
688379
diff --git a/SD-VBS/benchmarks/mser/data/qcif/expected_C.txt b/SD-VBS/benchmarks/mser/data/qcif/expected_C.txt
deleted file mode 100644
index e4c467b..0000000
--- a/SD-VBS/benchmarks/mser/data/qcif/expected_C.txt
+++ /dev/null
@@ -1 +0,0 @@
122309 10163 14252 9501 18684 5670 1502 2814 5181 6120 3732 3940 22066 2418 5049 17995 14160 15204 17196 18927 13617 2193 3 6901 9795 11367 14680 5345 17472 11779 16662 10324 12857 13142 7023 12741 11985 14561 12983 19043 13917 1251 7681 160 5478 13910 15633 7621 6937 14661 2022 12467 16437 6557 12500 9458 6560 13999 17617 9993 12225 14655 9573 6971 8662 18901 3365 8380
diff --git a/SD-VBS/benchmarks/mser/src/c/mser.c b/SD-VBS/benchmarks/mser/src/c/mser.c
deleted file mode 100644
index d886d7a..0000000
--- a/SD-VBS/benchmarks/mser/src/c/mser.c
+++ /dev/null
@@ -1,714 +0,0 @@
1/********************************
2Author: Sravanthi Kota Venkata
3********************************/
4
5/***
6% MSER Maximally Stable Extremal Regions
7% R=MSER(I,DELTA) computes the Maximally Stable Extremal Regions
8% (MSER) of image I with stability threshold DELTA. I is any
9% array of class UINT8, while DELTA is a scalar of the same class.
10% R is an index set (of class UINT32) which enumerates the
11% representative pixels of the detected regions.
12%
13% A region R can be recovered from a representative pixel X as the
14% connected component of the level set {Y:I(Y) <= I(X)} which
15% contains X.
16***/
17
18
19#include "mser.h"
20#include <string.h>
21
22/* advance N-dimensional subscript */
23void
24adv(iArray *dims, int ndims, iArray *subs_pt)
25{
26 int d = 0 ;
27 while(d < ndims)
28 {
29 sref(subs_pt,d) = sref(subs_pt,d) + 1;
30 if( sref(subs_pt,d) < sref(dims,d) )
31 return ;
32 sref(subs_pt,d++) = 0 ;
33 }
34}
35
36/** driver **/
37I2D* mser(I2D* I, int in_delta,
38 iArray* subs_pt, iArray* nsubs_pt, iArray* strides_pt, iArray* visited_pt, iArray* dims,
39 uiArray* joins_pt,
40 region_t* regions_pt,
41 pair_t* pairs_pt,
42 node_t* forest_pt,
43 ulliArray* acc_pt, ulliArray* ell_pt,
44 I2D* out)
45{
46 idx_t i, rindex=0;
47 int k;
48 int nout = 1;
49
50 int OUT_REGIONS=0;
51 int OUT_ELL = 1;
52 int OUT_PARENTS = 2;
53 int OUT_AREA = 3;
54 int BUCKETS = 256;
55
56 //I2D* out;
57
58 int IN_I = 0;
59 int IN_DELTA = 1;
60
61 /* configuration */
62 int verbose = 1 ; /* be verbose */
63 int small_cleanup= 1 ; /* remove very small regions */
64 int big_cleanup = 1 ; /* remove very big regions */
65 int bad_cleanup = 0 ; /* remove very bad regions */
66 int dup_cleanup = 1 ; /* remove duplicates */
67 val_t delta ; /* stability delta */
68
69 /* node value denoting a void node */
70 idx_t const node_is_void = 0xffffffff ;
71
72 //iArray* subs_pt ; /* N-dimensional subscript
73 //iArray* nsubs_pt ; /* diff-subscript to point to neigh.
74// uiArray* strides_pt ; /* strides to move in image array
75// uiArray* visited_pt ; /* flag
76
77 int nel ; /* number of image elements (pixels) */
78 int ner = 0 ; /* number of extremal regions */
79 int nmer = 0 ; /* number of maximally stable */
80 int ndims ; /* number of dimensions */
81// iArray* dims ; /* dimensions
82 int njoins = 0 ; /* number of join ops */
83
84 I2D* I_pt ; /* source image */
85 //pair_t* pairs_pt ; /* scratch buffer to sort pixels