Update to 2.0.0 tree from current Fremantle build
[opencv] / interfaces / swig / general / memory.i
1 /*M///////////////////////////////////////////////////////////////////////////////////////
2 //
3 //  IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
4 //
5 //  By downloading, copying, installing or using the software you agree to this license.
6 //  If you do not agree to this license, do not download, install,
7 //  copy or use the software.
8 //
9 //
10 //                        Intel License Agreement
11 //                For Open Source Computer Vision Library
12 //
13 // Copyright (C) 2000, Intel Corporation, all rights reserved.
14 // Third party copyrights are property of their respective owners.
15 //
16 // Redistribution and use in source and binary forms, with or without modification,
17 // are permitted provided that the following conditions are met:
18 //
19 //   * Redistribution's of source code must retain the above copyright notice,
20 //     this list of conditions and the following disclaimer.
21 //
22 //   * Redistribution's in binary form must reproduce the above copyright notice,
23 //     this list of conditions and the following disclaimer in the documentation
24 //     and/or other materials provided with the distribution.
25 //
26 //   * The name of Intel Corporation may not be used to endorse or promote products
27 //     derived from this software without specific prior written permission.
28 //
29 // This software is provided by the copyright holders and contributors "as is" and
30 // any express or implied warranties, including, but not limited to, the implied
31 // warranties of merchantability and fitness for a particular purpose are disclaimed.
32 // In no event shall the Intel Corporation or contributors be liable for any direct,
33 // indirect, incidental, special, exemplary, or consequential damages
34 // (including, but not limited to, procurement of substitute goods or services;
35 // loss of use, data, or profits; or business interruption) however caused
36 // and on any theory of liability, whether in contract, strict liability,
37 // or tort (including negligence or otherwise) arising in any way out of
38 // the use of this software, even if advised of the possibility of such damage.
39 //
40 //M*/
41
42
43 // 2004-03-16, Gabriel Schreiber <schreiber@ient.rwth-aachen.de>
44 //             Mark Asbach       <asbach@ient.rwth-aachen.de>
45 //             Institute of Communications Engineering, RWTH Aachen University
46 // 2008-05-15, Xavier Delacour   <xavier.delacour@gmail.com>
47
48
49 /****************************************************************************************\
50 *          Array allocation, deallocation, initialization and access to elements         *
51 \****************************************************************************************/
52
53 %nodefault _IplImage;
54 %newobject cvCreateImage;
55 %newobject cvCreateImageMat;
56 %newobject cvCreateImageHeader;
57 %newobject cvCloneImage;
58 %newobject cvCloneImageMat;
59
60 %nodefault CvMat;
61 %newobject cvCreateMat;
62 %newobject cvCreateMatHeader;
63 %newobject cvCloneMat;
64 %newobject cvGetSubRect;
65 %newobject cvGetRow;
66 %newobject cvGetRows;
67 %newobject cvGetCol;
68 %newobject cvGetCols;
69 %newobject cvGetDiag;
70
71 %nodefault CvMatND;
72 %newobject cvCreateMatND;
73 %newobject cvCreateMatHeaderND;
74 %newobject cvCloneMatND;
75
76 %nodefault CvSparseMat;
77 %newobject cvCreateSparseMat;
78 %newobject cvCloneSparseMat;
79
80
81 /****************************************************************************************\
82 *                              Dynamic data structures                                   *
83 \****************************************************************************************/
84
85 %nodefault CvMemStorage;
86 %newobject cvCreateMemStorage;
87 %newobject cvCreateChildMemStorage;
88
89 %nodefault CvGraphScanner;
90 %newobject cvCreateGraphScanner;
91
92
93 /****************************************************************************************\
94 *                                    Data Persistence                                    *
95 \****************************************************************************************/
96
97 %nodefault CvFileStorage;
98 %newobject cvOpenFileStorage;
99
100
101
102 /// cv.h
103
104 /****************************************************************************************\
105 *                                    Image Processing                                    *
106 \****************************************************************************************/
107
108 %nodefault _IplConvKernel;
109 %newobject cvCreateStructuringElement;
110
111
112 /****************************************************************************************\
113 *                                   Structural Analysis                                  *
114 \****************************************************************************************/
115
116 %newobject cvFitEllipse2;
117
118
119 /****************************************************************************************\
120 *                                       Tracking                                         *
121 \****************************************************************************************/
122
123 %nodefault CvKalman;
124 %newobject cvCreateKalman;
125
126 %nodefault CvConDensation;
127 %newobject cvCreateConDensation;
128
129
130 /****************************************************************************************\
131 *                                  Histogram functions                                   *
132 \****************************************************************************************/
133
134 %nodefault CvHistogram;
135 %newobject cvCreateHist;
136
137
138 /****************************************************************************************\
139 *                         Haar-like Object Detection functions                           *
140 \****************************************************************************************/
141
142 %nodefault CvHaarClassifierCascade;
143 %newobject cvLoadHaarClassifierCascade;
144
145 %nodefault CvPOSITObject;
146 %newobject cvCreatePOSITObject;
147
148 %nodefault CvFeatureTree;
149 %newobject cvCreateFeatureTree;
150
151 %nodefault CvLSH;
152 %newobject cvCreateLSH;
153 %newobject cvCreateMemoryLSH;
154
155
156
157 /// This hides all members of the IplImage which OpenCV doesn't use.
158 %ignore _IplImage::nSize;
159 %ignore _IplImage::alphaChannel;
160 %ignore _IplImage::colorModel;
161 %ignore _IplImage::channelSeq;
162 %ignore _IplImage::maskROI;
163 %ignore _IplImage::imageId;
164 %ignore _IplImage::tileInfo;
165 %ignore _IplImage::BorderMode;
166 %ignore _IplImage::BorderConst;
167 %ignore _IplImage::imageDataOrigin;
168
169 /**
170  * imageData is hidden because the accessors produced by SWIG are not 
171  * working correct. Use imageData_set and imageData_get instead 
172  * (they are defined in "imagedata.i")
173  */
174 %ignore _IplImage::imageData;