#include <cstdlib>
#include <climits>
#include <cstring>
#include <fstream>
Go to the source code of this file.
|
| #define | imRef(im, x, y) (im->access[y][x]) |
| |
| #define | imPtr(im, x, y) &(im->access[y][x]) |
| |
| #define | BUF_SIZE 256 |
| |
|
| typedef unsigned char | uchar |
| |
| #define imPtr |
( |
|
im, |
|
|
|
x, |
|
|
|
y |
|
) |
| &(im->access[y][x]) |
| #define imRef |
( |
|
im, |
|
|
|
x, |
|
|
|
y |
|
) |
| (im->access[y][x]) |
| typedef unsigned char uchar |
| bool operator== |
( |
const rgb & |
a, |
|
|
const rgb & |
b |
|
) |
| |
|
inline |
| void pnm_read |
( |
std::ifstream & |
file, |
|
|
char * |
buf |
|
) |
| |
| void savePGM |
( |
image< uchar > * |
im, |
|
|
const char * |
name |
|
) |
| |