-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathutils.h~
64 lines (57 loc) · 1.36 KB
/
utils.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef __UTILS_H__
#define __UTILS_H__
typedef unsigned char u8_int ;
typedef unsigned short u16_int;
typedef unsigned int u32_int;
typedef signed char s8_int ;
typedef signed short s16_int;
typedef signed int s32_int;
typedef float s32_float;
#include <SDL2/SDL.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <assert.h>
#include <stdint.h>
#define DEBUG 0
#define OUT_PATT 0
#define WEBCAM 1
#define DISPLAY 1
#define PI 3.14159265
#define RADIINO 58
#define SMALL_RAD 10
#define WIDTH 320
#define HEIGHT 240
#define P_WIDTH 360
#define R_WIDTH 256 //max 256
#define R_HEIGHT 64 //max 256
#define DP 32 //drawn points
#define HOR_SHIFT 5
#define VER_SHIFT 5
#define HD_THR 820 //0.4 hamming distance
#define _CRT_SECURE_NO_WARNINGS
#define limW(x) ((x >= 0) && (x < WIDTH))?1:0
#define limH(x) ((x >= 0) && (x < HEIGHT))?1:0
#define lim(x, a, b) ((x>= a) && (x <= b))?1:0
#define IRIS_ADD 1
#define IRIS_CHK 0
#define DB_TXT "users.txt"
#define DB_RAW "irisdb.raw"
#ifdef __cplusplus
extern "C"
{
#endif
#include "irisTop.h"
#include "sobel.h"
#include "hough.h"
#include "segIris.h"
#include "resIris.h"
#include "SDL_display.h"
#include "haarEncode.h"
#include "hamMatching.h"
#include "capturev4l2.h"
#ifdef __cplusplus
}
#endif
#endif //__UTILS_H_