Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

ExportMatlab.h

Go to the documentation of this file.
00001 #ifndef Impala_Core_Array_ExportMatlab_h
00002 #define Impala_Core_Array_ExportMatlab_h
00003 
00004 #include "Core/Array/Arrays.h"
00005 
00006 namespace Impala
00007 {
00008 namespace Core
00009 {
00010 namespace Array
00011 {
00012 
00013 
00014 inline void
00015 ExportMatlab(double* mData, Array2dScalarReal64* im)
00016 {
00017     int width = im->CW();
00018     int height = im->CH();
00019     double* imPtr = im->CPB();
00020     for (int y=0 ; y<height ; y++)
00021     {
00022         double* p = mData + y;
00023         for (int x=0 ; x<width ; x++)
00024         {
00025             *p = *imPtr++;
00026             p += height;
00027         }
00028     }
00029 }
00030 
00031 } // namespace Array
00032 } // namespace Core
00033 } // namespace Impala
00034 
00035 #endif

Generated on Fri Mar 19 09:30:46 2010 for ImpalaSrc by  doxygen 1.5.1