Revision 156,
1016 bytes
checked in by dave, 11 years ago
(diff) 
rename fixes

Line  

1  %module suds 

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" 

12  #include "Geometry.h" 

13  #include "FaceFinder.h" 

14  %} 

15  

16  %include "stl.i" 

17  %include "typemaps.i" 

18  %include "std_vector.i" 

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" 

28  %include "Geometry.h" 

29  %include "FaceFinder.h" 

30  

31  %template(FloatVector) Vector<float>; 

32  %template(FloatMatrix) Matrix<float>; 

33  

34  namespace std 

35  { 

36  %template(RectVector) vector<Rect>; 

37  } 

38  

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.