Pgm.h File Reference
#include <iostream>
#include <exception>
#include <stdio.h>
#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.

Classes

struct  shark::ImageInformation
 Stores name and size of image externally. More...
 

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::importPGMDir (const std::string &p, T &container, std::vector< ImageInformation > &info)
 Import PGM images scanning a directory recursively. More...
 
template<class T >
void shark::importPGMSet (const std::string &p, Data< T > &set, Data< ImageInformation > &setInfo)
 Import PGM images scanning a directory recursively. More...