DGtal  1.4.beta
DGtal::GenericWriter< TContainer, 2, DGtal::Color, TFunctor > Struct Template Reference

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

Public Member Functions

 BOOST_CONCEPT_ASSERT ((concepts::CConstImage< TContainer >))
 

Static Public Member Functions

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

Detailed Description

template<typename TContainer, typename TFunctor>
struct DGtal::GenericWriter< TContainer, 2, DGtal::Color, TFunctor >

GenericWriter Template partial specialisation for images of dimension 2 with image value DGtal::Color

Definition at line 209 of file GenericWriter.h.

Member Function Documentation

◆ BOOST_CONCEPT_ASSERT()

template<typename TContainer , typename TFunctor >
DGtal::GenericWriter< TContainer, 2, DGtal::Color, TFunctor >::BOOST_CONCEPT_ASSERT ( (concepts::CConstImage< TContainer >)  )

◆ exportFile()

template<typename TContainer , typename TFunctor >
static bool DGtal::GenericWriter< TContainer, 2, DGtal::Color, TFunctor >::exportFile ( const std::string &  filename,
const TContainer &  anImage,
const TFunctor &  aFunctor = TFunctor() 
)
static

Export the 2D image file.

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

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