Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

vnl_matlab_read.h File Reference

Read from MATLAB files. More...

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)


Detailed Description

Read from MATLAB files.

Author:
fsm@robots.ox.ac.uk

Definition in file vnl_matlab_read.h.


Define Documentation

#define fsm_declare_methods  
 

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.


Function Documentation

template<class T>
void vnl_matlab_read_data vcl_istream &    s,
T *    ptr,
unsigned    n
 

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);

template<class T>
bool vnl_matlab_read_or_die vcl_istream &   ,
vnl_matrix< T > &   ,
char const *    name = 0
 

template<class T>
bool vnl_matlab_read_or_die vcl_istream &   ,
vnl_vector< T > &   ,
char const *    name = 0
 

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.


Generated at Fri May 21 01:16:09 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000