The C++ Template Image Processing Library.
Initially developped in the Odyssée Lab, at the INRIA-Sophia Antipolis.

[Introduction]- [Latest News]- [Download]- [Screenshots]- [Tutorial]- [Forums]- [Library Reference]- [SourceForge Repository ]

Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

This namespace some low-level functions and variables of the CImg library. More...


Keycodes.

const uint keyESC = 27
 Keycodes are used to detect keyboard events occuring on display windows CImgDisplay. The field key of the CImgDisplay structure is updated at real-time with the corresponding keycode of the pressed key (or 0 if no key has been pressed). The keycodes values are given by the variables whose names are of the form cimg::key*. Above is the keycode for the 'ESC' key, but almost all keycodes thus are defined.

Functions

const bool CPU_endian ()
 Return CPU endian type (true = Little-endian (Intel), false= Big-endian).
void info ()
 Display informations about CImg compilation variables, on the standart error output (stderr).
long int time ()
 Get the value of the system timer with a millisecond precision.
void sleep (const int milliseconds)
 Sleep for a certain numbers of milliseconds.
long int wait_sync (const int milliseconds=20, long int reference_time=-1)
 Wait a certain number of milliseconds since the last call of wait_sync(). If the desired delay has expired, this function returns immediately.
template<typename T> const T abs (const T &a)
 Return the absolute value of a.
template<typename T> const T & min (const T &a, const T &b)
 Return the minimum between a and b.
template<typename T> const T & min (const T &a, const T &b, const T &c)
 Return the minimum between a,b and c.
template<typename T> const T & min (const T &a, const T &b, const T &c, const T &d)
 Return the minimum between a,b,c and d.
template<typename T> const T & max (const T &a, const T &b)
 Return the maximum between a and b.
template<typename T> const T & max (const T &a, const T &b, const T &c)
 Return the maximum between a,b and c.
template<typename T> const T & max (const T &a, const T &b, const T &c, const T &d)
 Return the maximum between a,b,c and d.
template<typename T> T sign (const T &x)
 Return the sign of x.
template<typename T> T mod (const T &x, const T &m)
 Return x modulo m (generic modulo).
int modi (const int x, const int m)
 Return x modulo m (integer-only modulo).
template<typename T> T minmod (const T &a, const T &b)
 Return minmod(a,b).
double rand ()
 Return a random variable between [0,1] (uniform distribution).
double crand ()
 Return a random variable between [-1,1] (uniform distribution).
double grand ()
 Return a random variable (gaussian distribution, with a variance of 1).
const char * convert_path ()
 Return the path of the ImageMagick convert tool (if found). If you have installed the ImageMagick package (http://www.imagemagick.org) in a standart directory, this function should return the correct path of the 'convert' tool. Conversely, if the path is not auto-detected, you must define the macro cimg_convert_path with the correct path of the convert executable, before including CImg.h in your program.
const char * temporary_path ()
 Return a path to store temporary files (if found). If you are running on a standart Unix or Windows system, this function should return a correct path. If the path is not auto-detected, you must define the macro cimg_temporary_path, before including CImg.h in your program.

Variables

const double PI = 3.14159265358979323846
 Definition of the mathematical constant PI.


Detailed Description

This namespace some low-level functions and variables of the CImg library.
Generated on Tue Aug 10 17:35:47 2004 for The CImg Library by doxygen 1.3.8