31 #if defined(ITKDicomReader_RECURSES)
32 #error Recursive header files inclusion detected in ITKDicomReader.h
35 #define ITKDicomReader_RECURSES
37 #if !defined ITKDicomReader_h
39 #define ITKDicomReader_h
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"
47 #pragma GCC diagnostic push
48 #pragma GCC diagnostic ignored "-Wpedantic"
50 #if defined(__clang__)
51 #pragma clang diagnostic push
52 #pragma clang diagnostic ignored "-Wdocumentation"
54 #include <itkImageFileReader.h>
55 #if defined(__clang__)
56 #pragma clang diagnostic pop
59 #pragma GCC diagnostic pop
80 template <
typename TImage>
88 BOOST_STATIC_ASSERT(( (TImage::Domain::dimension == 3)
89 || (TImage::Domain::dimension == 2) ));
106 template <
typename TFunctor =
109 const TFunctor & aFunctor = TFunctor() );
114 template <
typename Domain,
typename PixelType>
121 template <
typename Image,
typename Domain,
typename OrigValue,
122 typename TFunctor,
typename Value>
127 const TFunctor & aFunctor );
131 template <
typename Domain,
typename OrigValue,
typename TFunctor,
138 const TFunctor & aFunctor );
153 template <
typename TypeDGtalImage,
typename TFunctor>
156 const TFunctor & aFunctor );
162 #include "DGtal/io/readers/ITKDicomReader.ih"
169 #undef ITKDicomReader_RECURSES
Aim: implements a model of CImageContainer using a ITK Image.
DGtal is the top-level namespace which contains all DGtal functions and types.
static ImageContainerByITKImage< Domain, Value > readDGtalImageFromITKtypes(const std::vector< std::string > &filenames, const TFunctor &aFunctor)
static Image readDGtalImageFromITKtypes(const std::vector< std::string > &filenames, const TFunctor &aFunctor)
Aim: Import a 2D/3D DICOM Image from file series.
static Image readDGtalImageFromITKtypes(const std::vector< std::string > &filenames, const TFunctor &aFunctor)
static ImageContainerByITKImage< Domain, PixelType > importDicomFiles(const std::vector< std::string > &filenames)
BOOST_CONCEPT_ASSERT((concepts::CImage< TImage >))
static Image importDICOM(const std::vector< std::string > &filenames, const TFunctor &aFunctor=TFunctor())
ITKIOTrait< Value >::ValueOut ValueOut
Aim: Defines the concept describing a read/write image, having an output iterator.
Aim: Define a simple functor using the static cast operator.
HyperRectDomain< Space > Domain