aboutsummaryrefslogtreecommitdiffstats
path: root/match/match.h
blob: 8936de47162e7a5dc3300f28a3f9b2746a713383 (plain)
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
#ifndef MATCHER_H
#define MATCHER_H

/**
 * Special implementation of the hungarian algorithm.
 * The maximum number of fingers matches a uint32.
 * Bitmasks are used extensively.
 */

#define DIM_FINGER 16
#define DIM2_FINGER (DIM_FINGER * DIM_FINGER)

#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) < (b) ? (b) : (a))

typedef int bool;

////////////////////////////////////////////////////////

void match_fingers(int index[DIM_FINGER], float A[DIM2_FINGER],
		   int nrow, int ncol);

////////////////////////////////////////////////////////

#endif