DGtal 1.3.0
|
Aim: Export a 2D and a 3D Image using the Netpbm PPM formats (ASCII mode). More...
#include <DGtal/io/writers/PPMWriter.h>
Public Types | |
typedef TImage | Image |
typedef TImage::Value | Value |
typedef TFunctor | Functor |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CUnaryFunctor< TFunctor, Value, DGtal::Color >)) | |
BOOST_STATIC_ASSERT ((TImage::Domain::dimension==2)||(TImage::Domain::dimension==3)) | |
Static Public Member Functions | |
static bool | exportPPM (const std::string &filename, const Image &aImage, const Functor &aFunctor=Functor(), bool topbottomOrder=true) |
static bool | exportPPM3D (const std::string &filename, const Image &aImage, const Functor &aFunctor=Functor()) |
Aim: Export a 2D and a 3D Image using the Netpbm PPM formats (ASCII mode).
Description of template struct 'PPMWriter'
A functor can be specified to convert image values to DGtal::Color values.
TImage | the Image type. |
TFunctor | the type of functor used in the export. |
Definition at line 72 of file PPMWriter.h.
typedef TFunctor DGtal::PPMWriter< TImage, TFunctor >::Functor |
Definition at line 77 of file PPMWriter.h.
typedef TImage DGtal::PPMWriter< TImage, TFunctor >::Image |
Definition at line 75 of file PPMWriter.h.
typedef TImage::Value DGtal::PPMWriter< TImage, TFunctor >::Value |
Definition at line 76 of file PPMWriter.h.
DGtal::PPMWriter< TImage, TFunctor >::BOOST_CONCEPT_ASSERT | ( | (concepts::CUnaryFunctor< TFunctor, Value, DGtal::Color >) | ) |
DGtal::PPMWriter< TImage, TFunctor >::BOOST_STATIC_ASSERT | ( | (TImage::Domain::dimension==2)||(TImage::Domain::dimension==3) | ) |
|
static |
Export an Image with PPM format.
filename | name of the output file |
aImage | the image to export |
aFunctor | functor used to cast image values |
topbottomOrder | true if top to bottom order is prefered (default: true) |
Referenced by TEST_CASE(), testHDF5Reader(), and testPNMWriter().
|
static |
Export an Image with PPM3D format.
filename | name of the output file |
aImage | the image to export |
aFunctor | functor used to cast image values |