00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef Motion2DImage_RAW_h
00016 #define Motion2DImage_RAW_h
00017
00018 #include <stdio.h>
00019 #include <stdlib.h>
00020
00021 #include <CMotion2DImage.h>
00022
00023 using namespace std;
00024
00025 #if defined (WIN32)
00026 # if defined MOTION2D_DLL_EXPORTS
00027 # define MOTION2D_API __declspec( dllexport )
00028 # elif defined MOTION2D_DLL_IMPORTS
00029 # define MOTION2D_API __declspec( dllimport )
00030 # else
00031 # define MOTION2D_API
00032 # endif
00033 #else
00034 # define MOTION2D_API
00035 #endif
00036
00067 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00068 MOTION2D_API
00069 #endif
00070 bool ReadRAW8(CMotion2DImage<unsigned char> &I,
00071 const char filename[FILENAME_MAX],
00072 unsigned nb_rows, unsigned nb_cols);
00089 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00090 MOTION2D_API
00091 #endif
00092 bool ReadRAW8(CMotion2DImage<short> &I,
00093 const char filename[FILENAME_MAX],
00094 unsigned nb_rows, unsigned nb_cols);
00110 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00111 MOTION2D_API
00112 #endif
00113 bool ReadRAW16(CMotion2DImage<short> &I,
00114 const char filename[FILENAME_MAX],
00115 unsigned nb_rows, unsigned nb_cols);
00116
00130 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00131 MOTION2D_API
00132 #endif
00133 bool WriteRAW8(CMotion2DImage<unsigned char> I, const char *filename);
00150 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00151 MOTION2D_API
00152 #endif
00153 bool WriteRAW8(CMotion2DImage<short> I, const char *filename);
00167 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00168 MOTION2D_API
00169 #endif
00170 bool WriteRAW16(CMotion2DImage<short> I, const char *filename);
00171
00172 #endif