Aim: Export a 2D and a 3D Image using the Netpbm PPM formats (ASCII mode).
More...
#include <DGtal/io/writers/PPMWriter.h>
template<typename TImage, typename TFunctor = functors::Identity>
struct DGtal::PPMWriter< TImage, TFunctor >
Aim: Export a 2D and a 3D Image using the Netpbm PPM formats (ASCII mode).
Description of template struct 'PPMWriter'
- PPM: grayscale
- PPM3D: 3D variant of PPM
A functor can be specified to convert image values to DGtal::Color values.
- Template Parameters
-
TImage | the Image type. |
TFunctor | the type of functor used in the export. |
- See also
- testPNMRawWriter.cpp
Definition at line 72 of file PPMWriter.h.
◆ Functor
template<typename TImage , typename TFunctor = functors::Identity>
◆ Image
template<typename TImage , typename TFunctor = functors::Identity>
◆ Value
template<typename TImage , typename TFunctor = functors::Identity>
◆ BOOST_CONCEPT_ASSERT()
template<typename TImage , typename TFunctor = functors::Identity>
◆ BOOST_STATIC_ASSERT()
template<typename TImage , typename TFunctor = functors::Identity>
DGtal::PPMWriter< TImage, TFunctor >::BOOST_STATIC_ASSERT |
( |
(TImage::Domain::dimension==2)||(TImage::Domain::dimension==3) |
| ) |
|
◆ exportPPM()
template<typename TImage , typename TFunctor = functors::Identity>
static bool DGtal::PPMWriter< TImage, TFunctor >::exportPPM |
( |
const std::string & |
filename, |
|
|
const Image & |
aImage, |
|
|
const Functor & |
aFunctor = Functor() , |
|
|
bool |
topbottomOrder = true |
|
) |
| |
|
static |
Export an Image with PPM format.
- Parameters
-
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) |
- Returns
- true if no errors occur.
Referenced by testPNMWriter().
◆ exportPPM3D()
template<typename TImage , typename TFunctor = functors::Identity>
Export an Image with PPM3D format.
- Parameters
-
filename | name of the output file |
aImage | the image to export |
aFunctor | functor used to cast image values |
- Returns
- true if no errors occur.
The documentation for this struct was generated from the following file: