-
Notifications
You must be signed in to change notification settings - Fork 0
/
convolve.h
36 lines (31 loc) · 963 Bytes
/
convolve.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; File: convolve.h
;;; Author: Simoncelli
;;; Description: Header file for convolve.c
;;; Creation Date:
;;; ----------------------------------------------------------------
;;; Object-Based Vision and Image Understanding System (OBVIUS),
;;; Copyright 1988, Vision Science Group, Media Laboratory,
;;; Massachusetts Institute of Technology.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
*/
#include <stdio.h>
#include <stdlib.h>
#define ABS(x) (((x)>=0) ? (x) : (-(x)))
#define ROOT2 1.4142135623730951
#define REDUCE 0
#define EXPAND 1
#define IS ==
#define ISNT !=
#define AND &&
#define OR ||
typedef int (*fptr)();
typedef struct
{
char *name;
fptr func;
} EDGE_HANDLER;
fptr edge_function();
int internal_reduce(), internal_expand();
int internal_wrap_reduce(), internal_wrap_expand();