Aim: Import a 2D/3D DICOM Image from file series.
More...
#include <DGtal/io/readers/ITKDicomReader.h>
|
template<typename TFunctor = typename ITKIOTrait<typename TImage::Value>::DefaultReadFunctor> |
static Image | importDICOM (const std::vector< std::string > &filenames, const TFunctor &aFunctor=TFunctor()) |
|
template<typename TImage>
struct DGtal::ITKDicomReader< TImage >
Aim: Import a 2D/3D DICOM Image from file series.
Description of template class 'ITKDicomReader'
This class requires ITK installation (http://www.itk.org/ITK/resources/software.html) and to compile DGtal with -DWITH_ITK option.
Simple example: (extract from test/io/readers/testITKDicomReader.cpp)
- Template Parameters
-
- See also
- ITKWriter
-
ITKIOTrait
Definition at line 81 of file ITKDicomReader.h.
◆ Image
template<typename TImage >
◆ Value
template<typename TImage >
◆ ValueOut
template<typename TImage >
◆ BOOST_CONCEPT_ASSERT()
template<typename TImage >
◆ importDICOM()
template<typename TImage >
template<typename TFunctor = typename ITKIOTrait<typename TImage::Value>::DefaultReadFunctor>
static Image DGtal::ITKDicomReader< TImage >::importDICOM |
( |
const std::vector< std::string > & | filenames, |
|
|
const TFunctor & | aFunctor = TFunctor() ) |
|
static |
Import an Image from files belonging to the same DICOM serie.
First an ImageContainerByITKImage is constructed by using the source type of the input ITK image, and in a second step the resulting image type is adapted to the TImage type with the use of the given Functor.
- Parameters
-
filenames | fullnames of file of a DICOM serie. They may be gathered with an itk::GDCMSeriesFileNames instance. |
aFunctor | functor used to cast image values. |
- Template Parameters
-
TFunctor | the type of functor used in the export. |
- Returns
- read image
Referenced by TEST_CASE(), testImportDICOM(), and testSpatialInformation().
◆ importDicomFiles()
template<typename TImage >
template<typename
Domain , typename PixelType >
◆ readDGtalImageFromITKtypes()
template<typename TImage >
template<typename TypeDGtalImage , typename TFunctor >
static Image DGtal::ITKDicomReader< TImage >::readDGtalImageFromITKtypes |
( |
const std::vector< std::string > & | filenames, |
|
|
const TFunctor & | aFunctor ) |
|
staticprivate |
Read an DGtal image of type TypeDGtalImage from files belonging to the same DICOM serie.
- Parameters
-
filenames | fullnames of file of a DICOM serie. They may be gathered with an itk::GDCMSeriesFileNames instance. |
aFunctor | functor used to cast image values |
- Template Parameters
-
TFunctor | the type of functor used in the export. |
- Returns
- read image
The documentation for this struct was generated from the following file: