DGtal  1.2.0
Public Types | Public Member Functions | Static Public Member Functions
DGtal::ITKWriter< ImageContainerByITKImage< TDomain, TValue >, TFunctor > Struct Template Reference

#include <DGtal/io/writers/ITKWriter.h>

Public Types

typedef ImageContainerByITKImage< TDomain, TValue > Image
 
typedef TValue Value
 
typedef ITKIOTrait< Value >::ValueOut ValueOut
 
typedef TFunctor Functor
 

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

template<typename TDomain, typename TValue, typename TFunctor>
struct DGtal::ITKWriter< ImageContainerByITKImage< TDomain, TValue >, TFunctor >

ITKWriter Template partial specialisation for ImageContainerByITKImage. This specialisation is usefull to export image including image spacing.

Definition at line 110 of file ITKWriter.h.

Member Typedef Documentation

◆ Functor

template<typename TDomain , typename TValue , typename TFunctor >
typedef TFunctor DGtal::ITKWriter< ImageContainerByITKImage< TDomain, TValue >, TFunctor >::Functor

Definition at line 115 of file ITKWriter.h.

◆ Image

template<typename TDomain , typename TValue , typename TFunctor >
typedef ImageContainerByITKImage<TDomain, TValue> DGtal::ITKWriter< ImageContainerByITKImage< TDomain, TValue >, TFunctor >::Image

Definition at line 112 of file ITKWriter.h.

◆ Value

template<typename TDomain , typename TValue , typename TFunctor >
typedef TValue DGtal::ITKWriter< ImageContainerByITKImage< TDomain, TValue >, TFunctor >::Value

Definition at line 113 of file ITKWriter.h.

◆ ValueOut

template<typename TDomain , typename TValue , typename TFunctor >
typedef ITKIOTrait<Value>::ValueOut DGtal::ITKWriter< ImageContainerByITKImage< TDomain, TValue >, TFunctor >::ValueOut

Definition at line 114 of file ITKWriter.h.

Member Function Documentation

◆ BOOST_CONCEPT_ASSERT()

template<typename TDomain , typename TValue , typename TFunctor >
DGtal::ITKWriter< ImageContainerByITKImage< TDomain, TValue >, TFunctor >::BOOST_CONCEPT_ASSERT ( (concepts::CUnaryFunctor< TFunctor, Value, ValueOut >)  )

◆ BOOST_STATIC_ASSERT()

template<typename TDomain , typename TValue , typename TFunctor >
DGtal::ITKWriter< ImageContainerByITKImage< TDomain, TValue >, TFunctor >::BOOST_STATIC_ASSERT ( ((Image::Domain::dimension==3)||(Image::Domain::dimension==2))  )

◆ exportITK()

template<typename TDomain , typename TValue , typename TFunctor >
static bool DGtal::ITKWriter< ImageContainerByITKImage< TDomain, TValue >, TFunctor >::exportITK ( const std::string &  filename,
const Image aImage,
const Functor aFunctor = Functor() 
)
static

Export an ImageContainerByITKImage with a format supported by ITK. Thanks to this specialized class, the specific ITK image parameters can be exported (like in particular the image spacing).

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: