| 
    DGtal
    0.6.devel
    
   | 
 
#include <PGMWriter.h>
Public Types | |
| typedef TImage | Image | 
| typedef TImage::Value | Value | 
| typedef TFunctor | Functor | 
Public Member Functions | |
| BOOST_CONCEPT_ASSERT ((CUnaryFunctor< TFunctor, Value, unsigned char >)) | |
| BOOST_STATIC_ASSERT ((TImage::Domain::dimension==2)||(TImage::Domain::dimension==3)) | |
Static Public Member Functions | |
| static bool | exportPGM (const std::string &filename, const Image &aImage, const Functor &aFunctor=Functor(), bool saveASCII=false, bool topbotomOrder=true) | 
| static bool | exportPGM3D (const std::string &filename, const Image &aImage, const Functor &aFunctor=Functor()) | 
Aim: Export a 2D and a 3D Image using the Netpbm PGM formats (ASCII mode).
Description of template struct 'PGMWriter'
A functor can be specified to convert image values to PGM values (unsigned char).
Usage example:
| TImage | the Image type. | 
| TFunctor | the type of functor used in the export. | 
Definition at line 88 of file PGMWriter.h.
| typedef TFunctor DGtal::PGMWriter< TImage, TFunctor >::Functor | 
Definition at line 93 of file PGMWriter.h.
| typedef TImage DGtal::PGMWriter< TImage, TFunctor >::Image | 
Definition at line 91 of file PGMWriter.h.
| typedef TImage::Value DGtal::PGMWriter< TImage, TFunctor >::Value | 
Definition at line 92 of file PGMWriter.h.
| DGtal::PGMWriter< TImage, TFunctor >::BOOST_CONCEPT_ASSERT | ( | (CUnaryFunctor< TFunctor, Value, unsigned char >) | ) | 
| DGtal::PGMWriter< TImage, TFunctor >::BOOST_STATIC_ASSERT | ( | (TImage::Domain::dimension==2)||(TImage::Domain::dimension==3) | ) | 
      
  | 
  static | 
Export an Image with PGM format.
| filename | name of the output file | 
| aImage | the image to export | 
| aFunctor | functor used to cast image values | 
| saveASCII | used to save image with ASCII pixel value and with white space. (default= false since ASCII mode is not efficient). | 
Definition at line 45 of file PGMWriter.ih.
      
  | 
  static | 
Export an Image with PGM3D format.
| filename | name of the output file | 
| aImage | the image to export | 
| aFunctor | functor used to cast image values | 
Definition at line 113 of file PGMWriter.ih.
 1.8.1.1