A simple reader class for the Netpbm format (https://en.wikipedia.org/wiki/Netpbm_format). So far, only black and white (*.pbm) and grayscale (*pgm) images are supported.  
#include <dumux/io/rasterimagewriter.hh>
|  | 
| template<class ValueType> | 
| static void | write (const std::string &writeFileName, Result< ValueType > &img, const bool useDuneGridOrdering=true) | 
|  | 
| template<class ValueType> | 
| static void | write (const std::string &writeFileName, const std::size_t &nCols, const std::size_t &nRows, const std::string &magicNumber, const std::string &type, const std::string &encoding, const std::vector< ValueType > &img, const bool useDuneGridOrdering=true) | 
|  | 
| template<class T> | 
| static void | applyDuneGridOrdering (Result< T > &result) | 
|  | Change the ordering of the pixels according to Dune's convention, shifting the origin from upper left to lower left. 
 | 
|  | 
◆ applyDuneGridOrdering()
template<class T> 
  
  | 
        
          | static void Dumux::NetPBMWriter::applyDuneGridOrdering | ( | Result< T > & | result | ) |  |  | inlinestatic | 
 
- Parameters
- 
  
    | result | The image's pixel values ordered from top to bottom. |  
 
 
 
◆ write() [1/2]
template<class ValueType> 
  
  | 
        
          | static void Dumux::NetPBMWriter::write | ( | const std::string & | writeFileName, |  
          |  |  | const std::size_t & | nCols, |  
          |  |  | const std::size_t & | nRows, |  
          |  |  | const std::string & | magicNumber, |  
          |  |  | const std::string & | type, |  
          |  |  | const std::string & | encoding, |  
          |  |  | const std::vector< ValueType > & | img, |  
          |  |  | const bool | useDuneGridOrdering = true ) |  | inlinestatic | 
 
 
◆ write() [2/2]
template<class ValueType> 
  
  | 
        
          | static void Dumux::NetPBMWriter::write | ( | const std::string & | writeFileName, |  
          |  |  | Result< ValueType > & | img, |  
          |  |  | const bool | useDuneGridOrdering = true ) |  | inlinestatic | 
 
 
The documentation for this class was generated from the following file: