Aim: Import a 2D/3D Image using the ITK formats.
More...
#include <DGtal/io/readers/ITKReader.h>
|
template<typename TFunctor = typename ITKIOTrait<typename TImage::Value>::DefaultReadFunctor> |
static Image | importITK (const std::string &filename, const TFunctor &aFunctor=TFunctor(), bool shiftDomainUsingOrigin=true) |
|
static Image | importITK (const std::string &filename, bool shiftDomainUsingOrigin) |
|
static itk::ImageIOBase::IOComponentType | getITKComponentType (const std::string &filename) |
|
template<typename TImage>
struct DGtal::ITKReader< TImage >
Aim: Import a 2D/3D Image using the ITK formats.
Description of template class 'ITKReader'
- Template Parameters
-
- See also
- ITKWriter
-
ITKIOTrait
Definition at line 79 of file ITKReader.h.
◆ Image
template<typename TImage >
◆ Value
template<typename TImage >
◆ ValueOut
template<typename TImage >
◆ BOOST_CONCEPT_ASSERT()
template<typename TImage >
◆ getITKComponentType()
template<typename TImage >
static itk::ImageIOBase::IOComponentType DGtal::ITKReader< TImage >::getITKComponentType |
( |
const std::string & |
filename | ) |
|
|
static |
Get the type of the ITK image.
- Parameters
-
filename | name of the input file. |
- Returns
- the ITK image component type.
◆ importITK() [1/2]
template<typename TImage >
static Image DGtal::ITKReader< TImage >::importITK |
( |
const std::string & |
filename, |
|
|
bool |
shiftDomainUsingOrigin |
|
) |
| |
|
static |
Import an Image with a format supported by ITK.
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 a default ITKIOTrait::DefaultReadFunctor.
- Parameters
-
filename | name of the input file. |
shiftDomainUsingOrigin | shift the image domain according to the physical information of the source image) |
- Returns
- read image
◆ importITK() [2/2]
template<typename TImage >
template<typename TFunctor = typename ITKIOTrait<typename TImage::Value>::DefaultReadFunctor>
static Image DGtal::ITKReader< TImage >::importITK |
( |
const std::string & |
filename, |
|
|
const TFunctor & |
aFunctor = TFunctor() , |
|
|
bool |
shiftDomainUsingOrigin = true |
|
) |
| |
|
static |
◆ readDGtalImageFromITKtypes()
template<typename TImage >
template<typename TypeDGtalImage , typename TFunctor >
static Image DGtal::ITKReader< TImage >::readDGtalImageFromITKtypes |
( |
const std::string & |
filename, |
|
|
const TFunctor & |
aFunctor, |
|
|
bool |
shiftDomainUsingOrigin = true |
|
) |
| |
|
staticprivate |
Read an DGtal image of type TypeDGtalImage with a format supported by ITK. (used by importITK)
- Parameters
-
filename | name of the input file |
aFunctor | functor used to cast image values |
shiftDomainUsingOrigin | shift the image domain according to the physical information of the source image) |
- Template Parameters
-
TFunctor | the type of functor used in the export. |
- Returns
- read image
◆ readDGtalITKImage()
template<typename TImage >
template<typename Domain , typename PixelType >
The documentation for this struct was generated from the following file: