Classes | |
class | image |
class | pnm_error |
struct | rgb |
Typedefs | |
typedef unsigned char | uchar |
Functions | |
template<class T > | |
T | abs (const T &x) |
template<class T > | |
T | bound (const T &x, const T &min, const T &max) |
template<class T > | |
bool | check_bound (const T &x, const T &min, const T &max) |
static float * | dt (float *f, int n) |
static void | dt (image< float > *im) |
static image< float > * | dt (image< uchar > *im, uchar on=1) |
double | gaussian (double val, double sigma) |
static image< uchar > * | imageFLOATtoUCHAR (image< float > *input, float min, float max) |
static image< uchar > * | imageFLOATtoUCHAR (image< float > *input) |
static image< rgb > * | imageGRAYtoRGB (image< uchar > *input) |
static image< float > * | imageINTtoFLOAT (image< int > *input) |
static image< uchar > * | imageLONGtoUCHAR (image< long > *input, long min, long max) |
static image< uchar > * | imageLONGtoUCHAR (image< long > *input) |
static image< uchar > * | imageRGBtoGRAY (image< rgb > *input) |
static image< uchar > * | imageSHORTtoUCHAR (image< short > *input, short min, short max) |
static image< uchar > * | imageSHORTtoUCHAR (image< short > *input) |
static image< float > * | imageUCHARtoFLOAT (image< uchar > *input) |
static image< long > * | imageUCHARtoLONG (image< uchar > *input) |
template<class T > | |
void | load_image (image< T > **im, const char *name) |
static image< uchar > * | loadPBM (const char *name) |
static image< uchar > * | loadPGM (const char *name) |
static image< rgb > * | loadPPM (const char *name) |
template<class T > | |
void | min_max (image< T > *im, T *ret_min, T *ret_max) |
bool | operator== (const rgb &a, const rgb &b) |
static void | pnm_read (std::ifstream &file, char *buf) |
static void | read_packed (unsigned char *data, int size, std::ifstream &f) |
template<class T > | |
void | save_image (image< T > *im, const char *name) |
static void | savePBM (image< uchar > *im, const char *name) |
static void | savePGM (image< uchar > *im, const char *name) |
static void | savePPM (image< rgb > *im, const char *name) |
template<class T > | |
int | sign (const T &x) |
template<class T > | |
T | square (const T &x) |
template<class T > | |
image< uchar > * | threshold (image< T > *src, int t) |
int | vlib_round (float x) |
int | vlib_round (double x) |
static void | write_packed (unsigned char *data, int size, std::ofstream &f) |
Variables | |
const double | BLUE_WEIGHT = 0.114 |
const short | BUF_SIZE = 256 |
const double | GREEN_WEIGHT = 0.584 |
const double | INF = 1E20 |
const double | RED_WEIGHT = 0.299 |
typedef unsigned char distance_transform::uchar |
T distance_transform::abs | ( | const T & | x | ) | [inline] |
T distance_transform::bound | ( | const T & | x, |
const T & | min, | ||
const T & | max | ||
) | [inline] |
bool distance_transform::check_bound | ( | const T & | x, |
const T & | min, | ||
const T & | max | ||
) | [inline] |
static float* distance_transform::dt | ( | float * | f, |
int | n | ||
) | [static] |
static void distance_transform::dt | ( | image< float > * | im | ) | [static] |
static image<float>* distance_transform::dt | ( | image< uchar > * | im, |
uchar | on = 1 |
||
) | [static] |
double distance_transform::gaussian | ( | double | val, |
double | sigma | ||
) | [inline] |
static image<uchar>* distance_transform::imageFLOATtoUCHAR | ( | image< float > * | input, |
float | min, | ||
float | max | ||
) | [static] |
static image<uchar>* distance_transform::imageFLOATtoUCHAR | ( | image< float > * | input | ) | [static] |
static image<rgb>* distance_transform::imageGRAYtoRGB | ( | image< uchar > * | input | ) | [static] |
static image<float>* distance_transform::imageINTtoFLOAT | ( | image< int > * | input | ) | [static] |
static image<uchar>* distance_transform::imageLONGtoUCHAR | ( | image< long > * | input, |
long | min, | ||
long | max | ||
) | [static] |
static image<uchar>* distance_transform::imageLONGtoUCHAR | ( | image< long > * | input | ) | [static] |
static image<uchar>* distance_transform::imageRGBtoGRAY | ( | image< rgb > * | input | ) | [static] |
static image<uchar>* distance_transform::imageSHORTtoUCHAR | ( | image< short > * | input, |
short | min, | ||
short | max | ||
) | [static] |
static image<uchar>* distance_transform::imageSHORTtoUCHAR | ( | image< short > * | input | ) | [static] |
static image<float>* distance_transform::imageUCHARtoFLOAT | ( | image< uchar > * | input | ) | [static] |
static image<long>* distance_transform::imageUCHARtoLONG | ( | image< uchar > * | input | ) | [static] |
void distance_transform::load_image | ( | image< T > ** | im, |
const char * | name | ||
) |
static image<uchar>* distance_transform::loadPBM | ( | const char * | name | ) | [static] |
static image<uchar>* distance_transform::loadPGM | ( | const char * | name | ) | [static] |
static image<rgb>* distance_transform::loadPPM | ( | const char * | name | ) | [static] |
void distance_transform::min_max | ( | image< T > * | im, |
T * | ret_min, | ||
T * | ret_max | ||
) |
bool distance_transform::operator== | ( | const rgb & | a, |
const rgb & | b | ||
) | [inline] |
static void distance_transform::pnm_read | ( | std::ifstream & | file, |
char * | buf | ||
) | [static] |
static void distance_transform::read_packed | ( | unsigned char * | data, |
int | size, | ||
std::ifstream & | f | ||
) | [static] |
void distance_transform::save_image | ( | image< T > * | im, |
const char * | name | ||
) |
static void distance_transform::savePBM | ( | image< uchar > * | im, |
const char * | name | ||
) | [static] |
static void distance_transform::savePGM | ( | image< uchar > * | im, |
const char * | name | ||
) | [static] |
static void distance_transform::savePPM | ( | image< rgb > * | im, |
const char * | name | ||
) | [static] |
int distance_transform::sign | ( | const T & | x | ) | [inline] |
T distance_transform::square | ( | const T & | x | ) | [inline] |
image<uchar>* distance_transform::threshold | ( | image< T > * | src, |
int | t | ||
) |
int distance_transform::vlib_round | ( | float | x | ) | [inline] |
int distance_transform::vlib_round | ( | double | x | ) | [inline] |
static void distance_transform::write_packed | ( | unsigned char * | data, |
int | size, | ||
std::ofstream & | f | ||
) | [static] |
const double distance_transform::BLUE_WEIGHT = 0.114 |
const short distance_transform::BUF_SIZE = 256 |
const double distance_transform::GREEN_WEIGHT = 0.584 |
const double distance_transform::INF = 1E20 |
const double distance_transform::RED_WEIGHT = 0.299 |