-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdollar1.h
More file actions
31 lines (27 loc) · 1.14 KB
/
Copy pathdollar1.h
File metadata and controls
31 lines (27 loc) · 1.14 KB
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
#ifndef _DOLLAR1
#define _DOLLAR1
#include "struct.h"
#include "traitement.h"
#include <string.h>
#define int_max 32767
#define SIZE 1000
#define min2(x, y) (((x) < (y)) ? (x) : (y))
char** tokenize(char* line, char* token, int sizeTab);
void printTemplate(Template* t);
void saveTemplate(linked_List* points, char* name, Template** templates);
Template** loadTemplates();
double distance(Point a, Point b);
double path_distance(linked_List* a, linked_List* b);
double path_length(linked_List *points);
linked_List *resample(linked_List *points, int n);
Point centroid(linked_List *points);
double indicative_angle(linked_List *points);
linked_List *rotate_by(linked_List *points, double w);
linked_List *scale_to(linked_List *points);
linked_List* translate_to(linked_List* points, Point k);
double distance_at_angle(linked_List* points, Template* t, double teta);
int recognize(linked_List* points, Template** templates, double* score);
linked_List* format(linked_List* points);
void printMatch(linked_List* points, Template** templates, int diffX, int diffY, int color);
char* getMatch(linked_List* points, Template** templates, int diffX, int diffY);
#endif