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

#include <DGtal/io/writers/ITKWriter.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::CConstImage< TImage >))
 
 BOOST_CONCEPT_ASSERT ((concepts::CUnaryFunctor< TFunctor, Value, ValueOut >))
 
 BOOST_STATIC_ASSERT (((TImage::Domain::dimension==3)||(TImage::Domain::dimension==2)))
 

Static Public Member Functions

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

Detailed Description

template<typename TImage, typename TFunctor = typename ITKIOTrait<typename TImage::Value>::DefaultWriteFunctor>
struct DGtal::ITKWriter< TImage, TFunctor >

Export a 2D/3D Image using the ITK formats.

Description of template class 'ITKWriter' A functor can be specified to convert image values to ITK file values. ITKIOTrait is used to determine the actual value type used when saving the image.

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

Definition at line 63 of file ITKWriter.h.

Member Typedef Documentation

template<typename TImage , typename TFunctor = typename ITKIOTrait<typename TImage::Value>::DefaultWriteFunctor>
typedef TFunctor DGtal::ITKWriter< TImage, TFunctor >::Functor

Definition at line 68 of file ITKWriter.h.

template<typename TImage , typename TFunctor = typename ITKIOTrait<typename TImage::Value>::DefaultWriteFunctor>
typedef TImage DGtal::ITKWriter< TImage, TFunctor >::Image

Definition at line 65 of file ITKWriter.h.

template<typename TImage , typename TFunctor = typename ITKIOTrait<typename TImage::Value>::DefaultWriteFunctor>
typedef TImage::Value DGtal::ITKWriter< TImage, TFunctor >::Value

Definition at line 66 of file ITKWriter.h.

template<typename TImage , typename TFunctor = typename ITKIOTrait<typename TImage::Value>::DefaultWriteFunctor>
typedef ITKIOTrait<Value>::ValueOut DGtal::ITKWriter< TImage, TFunctor >::ValueOut

Definition at line 67 of file ITKWriter.h.

Member Function Documentation

template<typename TImage , typename TFunctor = typename ITKIOTrait<typename TImage::Value>::DefaultWriteFunctor>
DGtal::ITKWriter< TImage, TFunctor >::BOOST_CONCEPT_ASSERT ( (concepts::CConstImage< TImage >)  )
template<typename TImage , typename TFunctor = typename ITKIOTrait<typename TImage::Value>::DefaultWriteFunctor>
DGtal::ITKWriter< TImage, TFunctor >::BOOST_CONCEPT_ASSERT ( (concepts::CUnaryFunctor< TFunctor, Value, ValueOut >)  )
template<typename TImage , typename TFunctor = typename ITKIOTrait<typename TImage::Value>::DefaultWriteFunctor>
DGtal::ITKWriter< TImage, TFunctor >::BOOST_STATIC_ASSERT ( ((TImage::Domain::dimension==3)||(TImage::Domain::dimension==2))  )
template<typename TImage , typename TFunctor = typename ITKIOTrait<typename TImage::Value>::DefaultWriteFunctor>
static bool DGtal::ITKWriter< TImage, TFunctor >::exportITK ( const std::string &  filename,
const Image aImage,
const Functor aFunctor = Functor() 
)
throw (DGtal::IOException
)
static

Export an Image with a format supported by ITK.

Parameters
filenamename of the output file
aImagethe image to export
aFunctorfunctor used to cast image values
Returns
true if no errors occur.

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