diff options
Diffstat (limited to 'SD-VBS/benchmarks/texture_synthesis/src/matlab/MEX/convolve.h')
| -rwxr-xr-x | SD-VBS/benchmarks/texture_synthesis/src/matlab/MEX/convolve.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/SD-VBS/benchmarks/texture_synthesis/src/matlab/MEX/convolve.h b/SD-VBS/benchmarks/texture_synthesis/src/matlab/MEX/convolve.h new file mode 100755 index 0000000..48d55f7 --- /dev/null +++ b/SD-VBS/benchmarks/texture_synthesis/src/matlab/MEX/convolve.h | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | /* | ||
| 2 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
| 3 | ;;; File: convolve.h | ||
| 4 | ;;; Author: Simoncelli | ||
| 5 | ;;; Description: Header file for convolve.c | ||
| 6 | ;;; Creation Date: | ||
| 7 | ;;; ---------------------------------------------------------------- | ||
| 8 | ;;; Object-Based Vision and Image Understanding System (OBVIUS), | ||
| 9 | ;;; Copyright 1988, Vision Science Group, Media Laboratory, | ||
| 10 | ;;; Massachusetts Institute of Technology. | ||
| 11 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
| 12 | */ | ||
| 13 | |||
| 14 | #include <stdio.h> | ||
| 15 | #include <stdlib.h> | ||
| 16 | |||
| 17 | #define ABS(x) (((x)>=0) ? (x) : (-(x))) | ||
| 18 | #define ROOT2 1.4142135623730951 | ||
| 19 | #define REDUCE 0 | ||
| 20 | #define EXPAND 1 | ||
| 21 | #define IS == | ||
| 22 | #define ISNT != | ||
| 23 | #define AND && | ||
| 24 | #define OR || | ||
| 25 | |||
| 26 | typedef int (*fptr)(); | ||
| 27 | |||
| 28 | typedef struct | ||
| 29 | { | ||
| 30 | char *name; | ||
| 31 | fptr func; | ||
| 32 | } EDGE_HANDLER; | ||
| 33 | |||
| 34 | typedef double image_type; | ||
| 35 | |||
| 36 | fptr edge_function(char *edges); | ||
| 37 | int internal_reduce(image_type *image, int x_idim, int y_idim, | ||
| 38 | image_type *filt, image_type *temp, int x_fdim, int y_fdim, | ||
| 39 | int x_start, int x_step, int x_stop, | ||
| 40 | int y_start, int y_step, int y_stop, | ||
| 41 | image_type *result, char *edges); | ||
| 42 | int internal_expand(image_type *image, | ||
| 43 | image_type *filt, image_type *temp, int x_fdim, int y_fdim, | ||
| 44 | int x_start, int x_step, int x_stop, | ||
| 45 | int y_start, int y_step, int y_stop, | ||
| 46 | image_type *result, int x_rdim, int y_rdim, char *edges); | ||
| 47 | int internal_wrap_reduce(image_type *image, int x_idim, int y_idim, | ||
| 48 | image_type *filt, int x_fdim, int y_fdim, | ||
| 49 | int x_start, int x_step, int x_stop, | ||
| 50 | int y_start, int y_step, int y_stop, | ||
| 51 | image_type *result); | ||
| 52 | int internal_wrap_expand(image_type *image, image_type *filt, int x_fdim, int y_fdim, | ||
| 53 | int x_start, int x_step, int x_stop, | ||
| 54 | int y_start, int y_step, int y_stop, | ||
| 55 | image_type *result, int x_rdim, int y_rdim); | ||
