#include <cstring>
#include <sys/time.h>
Go to the source code of this file.
Namespaces | |
namespace | motld |
Functions | |
int | motld::getTime () |
returns time value in milliseconds | |
float | motld::randFloat (float min, float max) |
returns random float x with min <= x <= max | |
int | motld::randInt (int min, int max) |
returns random integer n with min <= n <= max | |
template<class T > | |
T * | motld::readFromPGM (const char *filename, int &xSize, int &ySize) |
reads from PGM file into array of something | |
template<class T > | |
T * | motld::readFromPPM (const char *aFilename, int &xSize, int &ySize, int &zSize) |
reads from PPM file into array of something | |
template<class T > | |
T * | motld::toGray (T *rgb, int size) |
reduces array with 3 sequential color channels to 1 channel array | |
template<class T > | |
void | motld::writeToPGM (const char *filename, T *data, int xSize, int ySize) |
writes from array of something into PGM file | |
template<class T > | |
void | motld::writeToPPM (const char *aFilename, T *data, int xSize, int ySize) |
writes from array of something into PPM file |