KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Macros | Functions
matlab.h File Reference
#include "l/l_sys_def.h"
#include "wrap_dtlib_cpp/img.h"
#include <stdio.h>
#include <string.h>

Go to the source code of this file.

Classes

struct  DTLib::MATFILE
 

Namespaces

 DTLib
 

Macros

#define MAX_CHARS   2000 /* max characters allowed per filename/mat-variable */
 
#define MACH_PC   0
 
#define MACH_MOTOROLA   1
 
#define MACH_VAXD   2
 
#define MACH_VADG   3
 
#define MACH_CRAY   4
 
#define TYPE_FLOAT   1
 
#define TYPE_LONG   2
 
#define TYPE_BYTE   5
 
#define TYPE_DOUBLE   0
 
#define TYPE_SHORT   3
 
#define TYPE_USHORT   4
 
#define MATRIX_NUM   0
 
#define MATRIX_TEXT   1
 
#define MATRIX_SPARSE   2
 

Functions

template<class T >
T * DTLib::ReadBufferFromMatfile (const char *strFilename, T *pBuffer, int &Width, int &Height)
 
template<class T >
bool DTLib::WriteBufferToMatfile (T *pBuffer, const int Width, const int Height, const char *strMatName, const char *strFilename)
 
template<class T >
bool DTLib::ReadMatfile (CImg< T > *pInImg, const char *strFilename)
 
void DTLib::ReadMatheader (const char *strFilename)
 
template<class T >
bool DTLib::WriteMatfile (CImg< T > &InImg, const char *strMatname, const char *strFilename)
 
template<class T >
bool DTLib::WriteMatfile (CImg< T > &InImg, const char *strMatname)
 
template<class T >
bool DTLib::ReadMatfiles (CImgVec< T > &InVec, const char *strPrefix)
 
template<class T >
bool DTLib::WriteMatfiles (CImgVec< T > &InVec, const char *strPrefix)
 
template<class T >
bool DTLib::WriteMatfiles (const vector< CImg< T > * > &InVec, const char *strPrefix)
 
int DTLib::MatlabTypeID (float *pBuffer)
 
int DTLib::MatlabTypeID (unsigned char *pBuffer)
 
int DTLib::MatlabTypeID (int *pBuffer)
 
template<class T >
bool DTLib::ReadMatfile (CImg< T > &InImg, const char *strFilename)
 

Macro Definition Documentation

#define MACH_CRAY   4
#define MACH_MOTOROLA   1
#define MACH_PC   0
#define MACH_VADG   3
#define MACH_VAXD   2
#define MATRIX_NUM   0
#define MATRIX_SPARSE   2
#define MATRIX_TEXT   1
#define MAX_CHARS   2000 /* max characters allowed per filename/mat-variable */
#define TYPE_BYTE   5
#define TYPE_DOUBLE   0
#define TYPE_FLOAT   1
#define TYPE_LONG   2
#define TYPE_SHORT   3
#define TYPE_USHORT   4