|
a |
|
b/src/WRAP_LabelClustersUniquely.cxx |
|
|
1 |
#include <nanobind/nanobind.h> |
|
|
2 |
#include <nanobind/stl/vector.h> |
|
|
3 |
#include <nanobind/stl/string.h> |
|
|
4 |
|
|
|
5 |
#include "antscore/LabelClustersUniquely.h" |
|
|
6 |
|
|
|
7 |
namespace nb = nanobind; |
|
|
8 |
using namespace nb::literals; |
|
|
9 |
|
|
|
10 |
using StrVector = std::vector<std::string>; |
|
|
11 |
|
|
|
12 |
int LabelClustersUniquely( StrVector instring ) |
|
|
13 |
{ |
|
|
14 |
return ants::LabelClustersUniquely(instring, NULL); |
|
|
15 |
} |
|
|
16 |
|
|
|
17 |
void wrap_LabelClustersUniquely(nb::module_ &m) { |
|
|
18 |
m.def("LabelClustersUniquely", &LabelClustersUniquely); |
|
|
19 |
} |