Go to the source code of this file.
Compounds | |
class | vnl_matlab_readhdr |
Defines | |
#define | fsm_declare_methods(T) |
Functions | |
template<class T> bool | vnl_matlab_read_or_die (vcl_istream &, vnl_vector< T > &, char const *name=0) |
template<class T> bool | vnl_matlab_read_or_die (vcl_istream &, vnl_matrix< T > &, char const *name=0) |
template<class T> void | vnl_matlab_read_data (vcl_istream &s, T *ptr, unsigned n) |
Definition in file vnl_matlab_read.h.
|
Value: private: \ bool type_chck(T &); \ public: \ bool read_data(T &); \ bool read_data(T *); \ bool read_data(T * const *) Definition at line 60 of file vnl_matlab_read.h. |
|
MATLAB stores its data as a real block followed by an imaginary block. This function will read both blocks and interleave them into the area pointed to by ptr. For real T, it is equivalent to s.read(ptr, sizeof(T)*n); |
|
|
|
Attempt to read vector or matrix.\ If the MATLAB header cannot be. read, return false. Else, if a name is given, and it doesn't match what's in the file, abort(). If the data in the file cannot reasonably be read into the destination, abort(). The vector/matrix will be resized if necessary. |