Revision 206,
1.0 KB
checked in by dave, 10 years ago
(diff) 
rename and removed some big stuff

Rev  Line  

[206]  1  %module magicsquares 

[112]  2  %{ 

 3  #include "PCA.h" 

 4  #include "Classifier.h" 

 5  #include "LDAClassifier.h" 

 6  #include "Matrix.h" 

 7  #include "Vector.h" 

 8  #include "Image.h" 

 9  #include "PCAClassifier.h" 

 10  #include "SVD.h" 

 11  #include "FileTools.h" 

[113]  12  #include "Geometry.h" 

 13  #include "FaceFinder.h" 

[112]  14  %} 

 15  

[113]  16  %include "stl.i" 

 17  %include "typemaps.i" 

 18  %include "std_vector.i" 

[112]  19  %include "PCA.h" 

 20  %include "Classifier.h" 

 21  %include "LDAClassifier.h" 

 22  %include "Matrix.h" 

 23  %include "Vector.h" 

 24  %include "Image.h" 

 25  %include "PCAClassifier.h" 

 26  %include "SVD.h" 

 27  %include "FileTools.h" 

[113]  28  %include "Geometry.h" 

 29  %include "FaceFinder.h" 

[112]  30  

 31  %template(FloatVector) Vector<float>; 

 32  %template(FloatMatrix) Matrix<float>; 

 33  

[113]  34  namespace std 

 35  { 

 36  %template(RectVector) vector<Rect>; 

 37  } 

 38  

[112]  39  %extend Vector<float> { 

 40  float __getitem__(long int i) 

 41  { 

 42  return (*self)[i]; 

 43  } 

 44  void __setitem__(long int i, float s) 

 45  { 

 46  (*self)[i]=s; 

 47  } 

 48  } 

 49  

 50  %extend Matrix<float> { 

 51  float Get(long int r, long int c) 

 52  { 

 53  return (*self)[r][c]; 

 54  } 

 55  void Set(long int r, long int c, float s) 

 56  { 

 57  (*self)[r][c]=s; 

 58  } 

 59  } 

 60  

 61  

Note: See
TracBrowser
for help on using the repository browser.