diff options
Diffstat (limited to 'SD-VBS/benchmarks/mser')
| -rwxr-xr-x | SD-VBS/benchmarks/mser/.mser.mex.c.swp | bin | 16384 -> 0 bytes | |||
| -rw-r--r-- | SD-VBS/benchmarks/mser/Makefile | 3 | ||||
| -rw-r--r-- | SD-VBS/benchmarks/mser/data/Makefile | 3 | ||||
| -rw-r--r-- | SD-VBS/benchmarks/mser/data/qcif/1.bmp | bin | 69750 -> 0 bytes | |||
| -rw-r--r-- | SD-VBS/benchmarks/mser/data/qcif/Makefile | 6 | ||||
| -rwxr-xr-x | SD-VBS/benchmarks/mser/data/qcif/VBS_Ver1 | bin | 79672 -> 0 bytes | |||
| -rw-r--r-- | SD-VBS/benchmarks/mser/data/qcif/expected.m | 68 | ||||
| -rw-r--r-- | SD-VBS/benchmarks/mser/data/qcif/expected_C.txt | 1 | ||||
| -rw-r--r-- | SD-VBS/benchmarks/mser/src/c/mser.c | 714 | ||||
| -rw-r--r-- | SD-VBS/benchmarks/mser/src/c/mser.h | 83 | ||||
| -rw-r--r-- | SD-VBS/benchmarks/mser/src/c/script_mser.c | 117 |
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 @@ | |||
| 1 | include ../../common/makefiles/Makefile.include | ||
| 2 | include $(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 @@ | |||
| 1 | include ../../../common/makefiles/Makefile.include | ||
| 2 | include $(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 @@ | |||
| 1 | INPUT=qcif | ||
| 2 | include ../../../../common/makefiles/Makefile.include | ||
| 3 | |||
| 4 | BMARK=mser | ||
| 5 | include $(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 @@ | |||
| 1 | 22308 | ||
| 2 | 10162 | ||
| 3 | 14251 | ||
| 4 | 9500 | ||
| 5 | 18683 | ||
| 6 | 5669 | ||
| 7 | 1501 | ||
| 8 | 2813 | ||
| 9 | 5180 | ||
| 10 | 6119 | ||
| 11 | 3731 | ||
| 12 | 3939 | ||
| 13 | 22065 | ||
| 14 | 2417 | ||
| 15 | 5048 | ||
| 16 | 17994 | ||
| 17 | 14159 | ||
| 18 | 15203 | ||
| 19 | 17195 | ||
| 20 | 18926 | ||
| 21 | 13616 | ||
| 22 | 2192 | ||
| 23 | 2 | ||
| 24 | 6900 | ||
| 25 | 9794 | ||
| 26 | 11366 | ||
| 27 | 14679 | ||
| 28 | 5344 | ||
| 29 | 17471 | ||
| 30 | 11778 | ||
| 31 | 16661 | ||
| 32 | 10323 | ||
| 33 | 12856 | ||
| 34 | 13141 | ||
| 35 | 7022 | ||
| 36 | 12740 | ||
| 37 | 11984 | ||
| 38 | 14560 | ||
| 39 | 12982 | ||
| 40 | 19042 | ||
| 41 | 13916 | ||
| 42 | 1250 | ||
| 43 | 7680 | ||
| 44 | 159 | ||
| 45 | 5477 | ||
| 46 | 13909 | ||
| 47 | 15632 | ||
| 48 | 7620 | ||
| 49 | 6936 | ||
| 50 | 14660 | ||
| 51 | 2021 | ||
| 52 | 12466 | ||
| 53 | 16436 | ||
| 54 | 6556 | ||
| 55 | 12499 | ||
| 56 | 9457 | ||
| 57 | 6559 | ||
| 58 | 13998 | ||
| 59 | 17616 | ||
| 60 | 9992 | ||
| 61 | 12224 | ||
| 62 | 14654 | ||
| 63 | 9572 | ||
| 64 | 6970 | ||
| 65 | 8661 | ||
| 66 | 18900 | ||
| 67 | 3364 | ||
| 68 | 8379 | ||
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 @@ | |||
| 1 | 22309 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 | /******************************** | ||
| 2 | Author: 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 */ | ||
| 23 | void | ||
| 24 | adv(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 **/ | ||
| 37 | I2D* 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 | ||
| 86 | // node_t* forest_pt ; /* the extremal regions forest | ||
| 87 | // region_t* regions_pt ; /* list of extremal regions found | ||
