Loading [MathJax]/extensions/TeX/AMSsymbols.js
DGtal
2.0.0
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
x
Variables
a
b
d
e
f
h
i
l
m
n
o
p
s
t
v
w
x
Typedefs
a
b
c
d
e
i
k
l
n
o
p
r
s
u
v
z
Enumerations
Enumerator
a
b
c
d
e
g
h
i
j
n
o
p
s
t
u
z
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
c
d
e
f
h
l
m
n
o
p
r
s
t
u
Enumerator
a
b
c
d
e
f
g
l
m
o
p
r
s
t
u
v
x
y
z
Related Symbols
a
b
c
d
e
f
g
i
k
l
m
o
p
s
t
u
Examples
DGtal
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
ITKDicomReader.h
1
16
17
#pragma once
18
30
31
#if defined(ITKDicomReader_RECURSES)
32
#error Recursive header files inclusion detected in ITKDicomReader.h
33
#else
// defined(ITKDicomReader_RECURSES)
35
#define ITKDicomReader_RECURSES
36
37
#if !defined ITKDicomReader_h
39
#define ITKDicomReader_h
40
41
#include "DGtal/base/Common.h"
42
#include "DGtal/base/CUnaryFunctor.h"
43
#include "DGtal/images/CImage.h"
44
#include "DGtal/io/ITKIOTrait.h"
45
#include "DGtal/images/ImageContainerByITKImage.h"
46
#if defined(__GNUG__)
47
#pragma GCC diagnostic push
48
#pragma GCC diagnostic ignored "-Wpedantic"
49
#endif
50
#if defined(__clang__)
51
#pragma clang diagnostic push
52
#pragma clang diagnostic ignored "-Wdocumentation"
53
#endif
54
#include <itkImageFileReader.h>
55
#if defined(__clang__)
56
#pragma clang diagnostic pop
57
#endif
58
#if defined(__GNUG__)
59
#pragma GCC diagnostic pop
60
#endif
61
62
namespace
DGtal
63
{
64
80
template
<
typename
TImage>
81
struct
ITKDicomReader
82
{
83
typedef
TImage
Image
;
84
typedef
typename
TImage::Value
Value
;
85
typedef
typename
ITKIOTrait<Value>::ValueOut
ValueOut
;
86
87
BOOST_CONCEPT_ASSERT
((
concepts::CImage<TImage>
));
88
BOOST_STATIC_ASSERT(( (TImage::Domain::dimension == 3)
89
|| (TImage::Domain::dimension == 2) ));
90
106
template
<
typename
TFunctor =
107
typename
ITKIOTrait<typename TImage::Value>::DefaultReadFunctor
>
108
static
Image
importDICOM
(
const
std::vector<std::string> & filenames,
109
const
TFunctor & aFunctor = TFunctor() );
110
111
112
private
:
113
114
template
<
typename
Domain,
typename
PixelType>
115
static
inline
116
ImageContainerByITKImage<Domain, PixelType>
117
importDicomFiles
(
const
std::vector<std::string> & filenames );
118
119
120
121
template
<
typename
Image
,
typename
Domain
,
typename
OrigValue,
122
typename
TFunctor,
typename
Value
>
123
struct
Aux
124
{
125
static
inline
Image
126
readDGtalImageFromITKtypes
(
const
std::vector<std::string> & filenames,
127
const
TFunctor & aFunctor );
128
};
123
struct
Aux
{
…
};
129
130
//specialization
131
template
<
typename
Domain
,
typename
OrigValue,
typename
TFunctor,
132
typename
Value
>
133
struct
Aux
<
ImageContainerByITKImage
<
Domain
,
Value
>,
Domain
, OrigValue,
134
TFunctor,
Value
>
135
{
136
static
inline
ImageContainerByITKImage<Domain, Value>
137
readDGtalImageFromITKtypes
(
const
std::vector<std::string> & filenames,
138
const
TFunctor & aFunctor );
139
};
133
struct
Aux
<
ImageContainerByITKImage
<
Domain
,
Value
>,
Domain
, OrigValue, {
…
};
140
141
153
template
<
typename
TypeDGtalImage,
typename
TFunctor>
154
static
Image
155
readDGtalImageFromITKtypes
(
const
std::vector<std::string> & filenames,
156
const
TFunctor & aFunctor );
157
};
81
struct
ITKDicomReader
{
…
};
158
}
//namespace
159
161
// Includes inline functions.
162
#include "DGtal/io/readers/ITKDicomReader.ih"
163
164
// //
166
167
#endif
// !defined ITKDicomReader_h
168
169
#undef ITKDicomReader_RECURSES
170
#endif
// else defined(ITKDicomReader_RECURSES)
DGtal::ImageContainerByITKImage
Aim: implements a model of CImageContainer using a ITK Image.
Definition
ImageContainerByITKImage.h:94
DGtal::Domain
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
DGtal::ITKDicomReader::Aux< ImageContainerByITKImage< Domain, Value >, Domain, OrigValue, TFunctor, Value >::readDGtalImageFromITKtypes
static ImageContainerByITKImage< Domain, Value > readDGtalImageFromITKtypes(const std::vector< std::string > &filenames, const TFunctor &aFunctor)
DGtal::ITKDicomReader::Aux
Definition
ITKDicomReader.h:124
DGtal::ITKDicomReader::Aux::readDGtalImageFromITKtypes
static Image readDGtalImageFromITKtypes(const std::vector< std::string > &filenames, const TFunctor &aFunctor)
DGtal::ITKDicomReader
Aim: Import a 2D/3D DICOM Image from file series.
Definition
ITKDicomReader.h:82
DGtal::ITKDicomReader::readDGtalImageFromITKtypes
static Image readDGtalImageFromITKtypes(const std::vector< std::string > &filenames, const TFunctor &aFunctor)
DGtal::ITKDicomReader::importDicomFiles
static ImageContainerByITKImage< Domain, PixelType > importDicomFiles(const std::vector< std::string > &filenames)
DGtal::ITKDicomReader::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CImage< TImage >))
DGtal::ITKDicomReader::importDICOM
static Image importDICOM(const std::vector< std::string > &filenames, const TFunctor &aFunctor=TFunctor())
DGtal::ITKDicomReader::Image
TImage Image
Definition
ITKDicomReader.h:83
DGtal::ITKDicomReader::ValueOut
ITKIOTrait< Value >::ValueOut ValueOut
Definition
ITKDicomReader.h:85
DGtal::ITKDicomReader::Value
TImage::Value Value
Definition
ITKDicomReader.h:84
DGtal::ITKIOTrait::DefaultReadFunctor
functors::Cast< Value > DefaultReadFunctor
Definition
ITKIOTrait.h:65
DGtal::ITKIOTrait::ValueOut
Value ValueOut
Definition
ITKIOTrait.h:63
DGtal::concepts::CImage
Aim: Defines the concept describing a read/write image, having an output iterator.
Definition
CImage.h:103
src
DGtal
io
readers
ITKDicomReader.h
Generated on
for DGtal by
1.14.0