core
vnl
vnl_matlab_write.h
Go to the documentation of this file.
1
// This is core/vnl/vnl_matlab_write.h
2
#ifndef vnl_matlab_write_h_
3
#define vnl_matlab_write_h_
4
//:
5
// \file
6
// \brief Write to a MAT file
7
//
8
// Core code stolen from D. Capel's code. These functions are useful
9
// because they allow one to write, say, an image buffer to a MAT file.
10
//
11
// NB. with these functions, the variable name \e must be a non-null and
12
// point to a zero-terminated string. otherwise the code will segfault.
13
//
14
// \author fsm
15
//
16
// \verbatim
17
// Modifications
18
// 09 Mar 2000 fsm. changed order of arguments for consistency with \sa vnl_matlab_read.
19
// \endverbatim
20
21
#include <iosfwd>
22
#ifdef _MSC_VER
23
# include <vcl_msvc_warnings.h>
24
#endif
25
#include "vnl/vnl_export.h"
26
27
template
<
class
T> VNL_EXPORT
// scalar
28
bool
vnl_matlab_write
(std::ostream &, T
const
&,
char
const
*variable_name);
29
30
template
<
class
T> VNL_EXPORT
// 1D array
31
bool
vnl_matlab_write
(std::ostream &, T
const
*,
unsigned
size,
char
const
*variable_name);
32
33
template
<
class
T> VNL_EXPORT
// 2D array
34
bool
vnl_matlab_write
(std::ostream &, T
const
*
const
*,
unsigned
rows,
unsigned
cols,
char
const
*variable_name);
35
36
#endif // vnl_matlab_write_h_
vnl_matlab_write
VNL_EXPORT bool vnl_matlab_write(std::ostream &, T const &, char const *variable_name)
scalars.
Definition:
vnl_matlab_write.cxx:90
Generated by
1.8.15