Functions | |
| void | CBDraw (Matrix &x, Matrix &y, const std::string &f, const int &width=512, const int &height=384, const std::string &format="") |
| void | CBDraw (Matrix &m, const std::string &f, const int &width=512, const int &height=384, const std::string &format="") |
| void | Colorize (const double &xmin, const double &xmax, const double &val1, const int &posterize, unsigned char &r, unsigned char &g, unsigned char &b) |
| Computes the color values in RGB space for assuming blue for minimum and red for maximum. | |
| int | exportPNG (const char *filename, int width, int height, const unsigned int *data) |
| void | Image (const Matrix &m, const string &f, const int &posterize=0) |
| Matrix | MatrixInput (const string &f) |
| void | Output (const Matrix &m, const string &f) |
| void tmath::inout::CBDraw | ( | Matrix & | x, | |
| Matrix & | y, | |||
| const std::string & | f, | |||
| const int & | width = 512, |
|||
| const int & | height = 384, |
|||
| const std::string & | format = "" | |||
| ) |
Write the contents of the matrix to a CBDraw file. CBDraw files must have the extension '.cb'.
| x | contains the abscissa and must be one-dimensional (one row or one columns) | |
| y | contains the ordinates. | |
| format | defines the labelling of the axes according to CBDraw conventions |
| void tmath::inout::CBDraw | ( | Matrix & | m, | |
| const std::string & | f, | |||
| const int & | width = 512, |
|||
| const int & | height = 384, |
|||
| const std::string & | format = "" | |||
| ) |
Write the contents of the matrix to a CBDraw file. CBDraw files must have the extension '.cb'. The abscissa is generated from the indices
| m | contains the ordinates | |
| format | defines the labelling of the axes according to CBDraw conventions |
| void tmath::inout::Image | ( | const Matrix & | m, | |
| const string & | f, | |||
| const int & | posterize = 0 | |||
| ) |
Write the contents of the matrix to a PNG file.
| m | contains the matrix | |
| f | contains the file name | |
| posterize | control the number of different colors actually used. if posterize==0, then colors vary smoothly. |
| Matrix tmath::inout::MatrixInput | ( | const string & | f | ) |
Reads a matrix from a text file or binary file. Binary files must have the extension '.bin'.
| f | contains the file name |
| void tmath::inout::Output | ( | const Matrix & | m, | |
| const string & | f | |||
| ) |
Write the contents of the matrix to a text file ore binary file. Binary files must have the extension '.bin'.
| m | contains the matrix | |
| f | contains the file name |
1.5.6