Write to a MAT file. More...
#include <vcl_iosfwd.h>Go to the source code of this file.
Functions | |
| template<class T > | |
| bool | vnl_matlab_write (vcl_ostream &, T const &, char const *variable_name) |
| scalars. | |
| template<class T > | |
| bool | vnl_matlab_write (vcl_ostream &, T const *, unsigned size, char const *variable_name) |
| 1D array. | |
| template<class T > | |
| bool | vnl_matlab_write (vcl_ostream &, T const *const *, unsigned rows, unsigned cols, char const *variable_name) |
| 2D array. | |
Write to a MAT file.
Core code stolen from D. Capel's code. These functions are useful because they allow one to write, say, an image buffer to a MAT file.
NB. with these functions, the variable name must be a non-null and point to a zero-terminated string. otherwise the code will segfault.
Modifications
09 Mar 2000 fsm. changed order of arguments for consistency with \sa vnl_matlab_read.
Definition in file vnl_matlab_write.h.
| bool vnl_matlab_write | ( | vcl_ostream & | , |
| T const & | , | ||
| char const * | variable_name | ||
| ) |
scalars.
Definition at line 98 of file vnl_matlab_write.cxx.
| bool vnl_matlab_write | ( | vcl_ostream & | , |
| T const * | , | ||
| unsigned | size, | ||
| char const * | variable_name | ||
| ) |
1D array.
Definition at line 119 of file vnl_matlab_write.cxx.
| bool vnl_matlab_write | ( | vcl_ostream & | , |
| T const *const * | , | ||
| unsigned | rows, | ||
| unsigned | cols, | ||
| char const * | variable_name | ||
| ) |
2D array.
Definition at line 140 of file vnl_matlab_write.cxx.
1.7.5.1