DGtal  1.5.beta
DGtal::GenericWriter< TContainer, 3, unsigned char, TFunctor > Struct Template Reference

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

Public Member Functions

 BOOST_CONCEPT_ASSERT ((concepts::CUnaryFunctor< TFunctor, typename TContainer::Value, unsigned char >))
 
 BOOST_CONCEPT_ASSERT ((concepts::CConstImage< TContainer >))
 

Static Public Member Functions

static bool exportFile (const std::string &filename, const TContainer &anImage, const std::string &datasetName="UInt8Array3D", const TFunctor &aFunctor=TFunctor())
 

Detailed Description

template<typename TContainer, typename TFunctor>
struct DGtal::GenericWriter< TContainer, 3, unsigned char, TFunctor >

GenericWriter Template partial specialisation for volume images of dimension 3 and unsigned char value type (which allows to export vol, pgm3D, h5 and raw file format).

Definition at line 114 of file GenericWriter.h.

Member Function Documentation

◆ BOOST_CONCEPT_ASSERT() [1/2]

template<typename TContainer , typename TFunctor >
DGtal::GenericWriter< TContainer, 3, unsigned char, TFunctor >::BOOST_CONCEPT_ASSERT ( (concepts::CConstImage< TContainer >)  )

◆ BOOST_CONCEPT_ASSERT() [2/2]

template<typename TContainer , typename TFunctor >
DGtal::GenericWriter< TContainer, 3, unsigned char, TFunctor >::BOOST_CONCEPT_ASSERT ( (concepts::CUnaryFunctor< TFunctor, typename TContainer::Value, unsigned char >)  )

◆ exportFile()

template<typename TContainer , typename TFunctor >
static bool DGtal::GenericWriter< TContainer, 3, unsigned char, TFunctor >::exportFile ( const std::string &  filename,
const TContainer &  anImage,
const std::string &  datasetName = "UInt8Array3D",
const TFunctor &  aFunctor = TFunctor() 
)
static

Export a volume image.

Parameters
filenamethe filename of the saved image (with a extension name).
anImagethe image to be saved.
datasetNamethe dataset name to export.
aFunctorto apply image transformation before saving.

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