DGtal  0.9.3beta
Public Types | Public Member Functions | Static Public Member Functions
DGtal::ITKReader< TImage, TFunctor > Struct Template Reference

#include <DGtal/io/readers/ITKReader.h>

Public Types

typedef TImage Image
 
typedef TImage::Value Value
 
typedef ITKIOTrait< Value >::ValueOut ValueOut
 
typedef TFunctor Functor
 

Public Member Functions

 BOOST_CONCEPT_ASSERT ((concepts::CImage< TImage >))
 
 BOOST_CONCEPT_ASSERT ((concepts::CUnaryFunctor< TFunctor, ValueOut, Value >))
 
 BOOST_STATIC_ASSERT (((TImage::Domain::dimension==3)||(TImage::Domain::dimension==2)))
 

Static Public Member Functions

static Image importITK (const std::string &filename, const Functor &aFunctor=Functor()) throw (DGtal::IOException)
 

Detailed Description

template<typename TImage, typename TFunctor = typename ITKIOTrait<typename TImage::Value>::DefaultReadFunctor>
struct DGtal::ITKReader< TImage, TFunctor >

Aim: Import a 2D/3D Image using the ITK formats.

Description of template class 'ITKReader'

Template Parameters
TImagethe Image type.
TFunctorthe type of functor used in the export.
See also
ITKWriter
ITKIOTrait

Definition at line 60 of file ITKReader.h.

Member Typedef Documentation

template<typename TImage , typename TFunctor = typename ITKIOTrait<typename TImage::Value>::DefaultReadFunctor>
typedef TFunctor DGtal::ITKReader< TImage, TFunctor >::Functor

Definition at line 65 of file ITKReader.h.

template<typename TImage , typename TFunctor = typename ITKIOTrait<typename TImage::Value>::DefaultReadFunctor>
typedef TImage DGtal::ITKReader< TImage, TFunctor >::Image

Definition at line 62 of file ITKReader.h.

template<typename TImage , typename TFunctor = typename ITKIOTrait<typename TImage::Value>::DefaultReadFunctor>
typedef TImage::Value DGtal::ITKReader< TImage, TFunctor >::Value

Definition at line 63 of file ITKReader.h.

template<typename TImage , typename TFunctor = typename ITKIOTrait<typename TImage::Value>::DefaultReadFunctor>
typedef ITKIOTrait<Value>::ValueOut DGtal::ITKReader< TImage, TFunctor >::ValueOut

Definition at line 64 of file ITKReader.h.

Member Function Documentation

template<typename TImage , typename TFunctor = typename ITKIOTrait<typename TImage::Value>::DefaultReadFunctor>
DGtal::ITKReader< TImage, TFunctor >::BOOST_CONCEPT_ASSERT ( (concepts::CImage< TImage >)  )
template<typename TImage , typename TFunctor = typename ITKIOTrait<typename TImage::Value>::DefaultReadFunctor>
DGtal::ITKReader< TImage, TFunctor >::BOOST_CONCEPT_ASSERT ( (concepts::CUnaryFunctor< TFunctor, ValueOut, Value >)  )
template<typename TImage , typename TFunctor = typename ITKIOTrait<typename TImage::Value>::DefaultReadFunctor>
DGtal::ITKReader< TImage, TFunctor >::BOOST_STATIC_ASSERT ( ((TImage::Domain::dimension==3)||(TImage::Domain::dimension==2))  )
template<typename TImage , typename TFunctor = typename ITKIOTrait<typename TImage::Value>::DefaultReadFunctor>
static Image DGtal::ITKReader< TImage, TFunctor >::importITK ( const std::string &  filename,
const Functor aFunctor = Functor() 
)
throw (DGtal::IOException
)
static

Import an Image with a format supported by ITK.

Parameters
filenamename of the output file
aFunctorfunctor used to cast image values
Returns
read image

Referenced by DGtal::GenericReader< TContainer, 3, TValue >::importWithValueFunctor(), and DGtal::GenericReader< TContainer, 3, DGtal::uint32_t >::importWithValueFunctor().


The documentation for this struct was generated from the following file: