#include <cstdlib>
#include <climits>
#include <cstring>
#include <fstream>
#include "image.h"
#include "misc.h"
Go to the source code of this file.
Classes | |
class | distance_transform::pnm_error |
Namespaces | |
namespace | distance_transform |
Functions | |
template<class T > | |
void | distance_transform::load_image (image< T > **im, const char *name) |
static image< uchar > * | distance_transform::loadPBM (const char *name) |
static image< uchar > * | distance_transform::loadPGM (const char *name) |
static image< rgb > * | distance_transform::loadPPM (const char *name) |
static void | distance_transform::pnm_read (std::ifstream &file, char *buf) |
static void | distance_transform::read_packed (unsigned char *data, int size, std::ifstream &f) |
template<class T > | |
void | distance_transform::save_image (image< T > *im, const char *name) |
static void | distance_transform::savePBM (image< uchar > *im, const char *name) |
static void | distance_transform::savePGM (image< uchar > *im, const char *name) |
static void | distance_transform::savePPM (image< rgb > *im, const char *name) |
static void | distance_transform::write_packed (unsigned char *data, int size, std::ofstream &f) |
Variables | |
const short | distance_transform::BUF_SIZE = 256 |