|
a |
|
b/src/readImage.h |
|
|
1 |
#ifndef ANTSPYREADIMAGE_H |
|
|
2 |
#define ANTSPYREADIMAGE_H |
|
|
3 |
|
|
|
4 |
#include <nanobind/nanobind.h> |
|
|
5 |
#include <nanobind/stl/vector.h> |
|
|
6 |
#include <nanobind/stl/string.h> |
|
|
7 |
#include <nanobind/stl/tuple.h> |
|
|
8 |
#include <nanobind/ndarray.h> |
|
|
9 |
|
|
|
10 |
#include <tuple> |
|
|
11 |
#include "itkImageFileWriter.h" |
|
|
12 |
#include "itkImageIOBase.h" |
|
|
13 |
#include "itkNiftiImageIOFactory.h" |
|
|
14 |
#include "itkMetaImageIOFactory.h" |
|
|
15 |
#include "itkImageFileReader.h" |
|
|
16 |
#include "itkImage.h" |
|
|
17 |
#include "itkPyBuffer.h" |
|
|
18 |
|
|
|
19 |
#include "antsImage.h" |
|
|
20 |
|
|
|
21 |
namespace nb = nanobind; |
|
|
22 |
using namespace nb::literals; |
|
|
23 |
|
|
|
24 |
template <typename ImageType> |
|
|
25 |
AntsImage<ImageType> fromNumpy( nb::ndarray<nb::numpy> data, nb::tuple datashape ); |
|
|
26 |
|
|
|
27 |
|
|
|
28 |
#endif // ANTSPYREADIMAGE_H |