-
Notifications
You must be signed in to change notification settings - Fork 11
/
init.cpp
executable file
·60 lines (50 loc) · 1.22 KB
/
init.cpp
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
extern "C" {
#include "TH.h"
#include "luaT.h"
}
#include "stdint.h"
extern "C" {
#include "mccodimage.h"
#include "mcimage.h"
#include "jcgraphes.h"
#include "jcimage.h"
#include "jccodimage.h"
#include "jccomptree.h"
#include "llabelextrema.h"
#include "lwshedtopo.h"
#include "lsaliency.h"
#include "lhierarchie.h"
#include "lattribheight.h"
#include "MSF_utils.h"
#include "llpeGA.h"
#include "lga2khalimsky.h"
#include "lppm2GA.h"
#include "mcweightgraph.h"
#include "sjcomptree.h"
#include "overlap.h"
}
#include "powerwatershed.h"
#include "set.h"
#include "mergetree.h"
#include "maxflow.h"
#include <vector>
#include <map>
#include <boost/pending/disjoint_sets.hpp>
#define torch_(NAME) TH_CONCAT_3(torch_, Real, NAME)
#define torch_Tensor TH_CONCAT_STRING_3(torch., Real, Tensor)
#define imgraph_(NAME) TH_CONCAT_3(imgraph_, Real, NAME)
#define nn_(NAME) TH_CONCAT_3(nn_, Real, NAME)
#include "generic/imgraph.c"
#include "THGenerateFloatTypes.h"
#include "generic/MalisCriterion.c"
#include "THGenerateFloatTypes.h"
extern "C" {
DLL_EXPORT int luaopen_libimgraph(lua_State *L)
{
imgraph_FloatInit(L);
imgraph_DoubleInit(L);
nn_FloatMalisCriterion_init(L);
nn_DoubleMalisCriterion_init(L);
return 1;
}
}