DGtal 1.3.0
|
Export a 2D/3D Image using the ITK formats. More...
#include <DGtal/io/writers/ITKWriter.h>
Public Types | |
typedef TImage | Image |
typedef TImage::Value | Value |
typedef ITKIOTrait< Value >::ValueOut | ValueOut |
typedef itk::ImageBase< TImage::Domain::dimension >::SpacingValueType | ITKSpacingType |
typedef PointVector< dimension, double > | SpacingType |
typedef TFunctor | Functor |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CConstImage< TImage >)) | |
BOOST_CONCEPT_ASSERT ((concepts::CUnaryFunctor< TFunctor, Value, ValueOut >)) | |
BOOST_STATIC_ASSERT (((dimension==3)||(dimension==2))) | |
Static Public Member Functions | |
static bool | exportITK (const std::string &filename, const Image &aImage, const Functor &aFunctor=Functor()) |
static bool | exportITK (const std::string &filename, const Image &aImage, const SpacingType &anImgSpacing, const Functor &aFunctor=Functor()) |
Static Public Attributes | |
static const TImage::Domain::Dimension | dimension = TImage::Domain::dimension |
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.
TImage | the Image type. |
TFunctor | the type of functor used in the export. |
Definition at line 64 of file ITKWriter.h.
typedef TFunctor DGtal::ITKWriter< TImage, TFunctor >::Functor |
Definition at line 74 of file ITKWriter.h.
typedef TImage DGtal::ITKWriter< TImage, TFunctor >::Image |
Definition at line 68 of file ITKWriter.h.
typedef itk::ImageBase<TImage::Domain::dimension>::SpacingValueType DGtal::ITKWriter< TImage, TFunctor >::ITKSpacingType |
Definition at line 71 of file ITKWriter.h.
typedef PointVector<dimension, double> DGtal::ITKWriter< TImage, TFunctor >::SpacingType |
Definition at line 72 of file ITKWriter.h.
typedef TImage::Value DGtal::ITKWriter< TImage, TFunctor >::Value |
Definition at line 69 of file ITKWriter.h.
typedef ITKIOTrait<Value>::ValueOut DGtal::ITKWriter< TImage, TFunctor >::ValueOut |
Definition at line 70 of file ITKWriter.h.
DGtal::ITKWriter< TImage, TFunctor >::BOOST_CONCEPT_ASSERT | ( | (concepts::CConstImage< TImage >) | ) |
DGtal::ITKWriter< TImage, TFunctor >::BOOST_CONCEPT_ASSERT | ( | (concepts::CUnaryFunctor< TFunctor, Value, ValueOut >) | ) |
DGtal::ITKWriter< TImage, TFunctor >::BOOST_STATIC_ASSERT | ( | ((dimension==3)||(dimension==2)) | ) |
|
static |
Export an Image with a format supported by ITK.
filename | name of the output file |
aImage | the image to export |
aFunctor | functor used to cast image values |
Referenced by testITKSpacingIO().
|
static |
Export an Image with a format supported by ITK.
filename | name of the output file |
aImage | the image to export |
anImgSpacing | the custom spacing represented by a point. |
aFunctor | functor used to cast image values |
|
static |
Definition at line 66 of file ITKWriter.h.