Pgm.h File Reference
#include <fstream>
#include <boost/format.hpp>
#include <boost/filesystem.hpp>
#include <boost/archive/text_oarchive.hpp>
#include <shark/LinAlg/Base.h>
#include <shark/Data/Dataset.h>

Go to the source code of this file.

Namespaces

 shark
 AbstractMultiObjectiveOptimizer.
 

Functions

template<class T >
void shark::importPGM (std::string const &fileName, T &data, std::size_t &sx, std::size_t &sy)
 Import a PGM image from file. More...
 
template<class T >
void shark::exportPGM (std::string const &fileName, T const &data, std::size_t sx, std::size_t sy, bool normalize=false)
 Export a PGM image to file. More...
 
void shark::exportFiltersToPGMGrid (std::string const &basename, RealMatrix const &filters, std::size_t width, std::size_t height)
 Exports a set of filters as a grid image. More...
 
void shark::exportFiltersToPGMGrid (std::string const &basename, Data< RealVector > const &filters, std::size_t width, std::size_t height)
 Exports a set of filters as a grid image. More...
 
template<class T >
void shark::importPGMSet (std::string const &p, Data< T > &set)
 Import PGM images scanning a directory recursively. More...