#include <string>
#include <fstream>
#include <utility>
Include dependency graph for pnm_io.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| istream& | eatcomments (istream& is) |
| Swallows comments from the given stream, where a comment is defined as a line whose first non-whitespace character is a pound sign (#). More... | |
| template<classArray2D> bool | pgm_read (const string& filename, Array2D& image) |
| Read the specified PGM file into the given matrix in column-major order. More... | |
| pair<int,int> | pnm_size (const string& filename) |
| Utility routine which returns the size of the given PNM file as a (width,height) if found and readable, or else (0,0). More... | |
Definition in file pnm_io.h.
|
|
Swallows comments from the given stream, where a comment is defined as a line whose first non-whitespace character is a pound sign (#).
|
|
||||||
|
Read the specified PGM file into the given matrix in column-major order. Any 2D array type which supports a (width,height) constructor should work, e.g. TNT's Matrix. Returns false if there was a problem reading the file. Definition at line 45 of file pnm_io.h. Referenced by KernelFactory::create(). |
|
|
Utility routine which returns the size of the given PNM file as a (width,height) if found and readable, or else (0,0).
|
1.2.1 written by Dimitri van Heesch,
© 1997-2000