Skip to content
This repository
Browse code

Commit the (re)moved files also.

  • Loading branch information...
commit 5ccb0a9702e9a27f487043f8da03c09a1a54b9f5 1 parent dbfb65e
authored December 27, 2010

Showing 45 changed files with 0 additions and 33,033 deletions. Show diff stats Hide diff stats

  1. 276  Android.mk
  2. 3  Application.mk
  3. 12  LICENSE_Android_NDK
  4. 36  LICENSE_OpenCV
  5. 150  WLNonFileByteStream.cpp
  6. 51  WLNonFileByteStream.h
  7. 1,482  cv/include/cv.h
  8. 409  cv/include/cv.hpp
  9. 1,080  cv/include/cvcompat.h
  10. 93  cv/include/cvstreams.h
  11. 386  cv/include/cvtypes.h
  12. 118  cv/src/_cv.h
  13. 93  cv/src/_cvgeom.h
  14. 123  cv/src/_cvimgproc.h
  15. 759  cv/src/_cvipp.h
  16. 461  cv/src/_cvkdtree.hpp
  17. 373  cv/src/_cvlist.h
  18. 405  cv/src/_cvmatrix.h
  19. 786  cv/src/cvaccum.cpp
  20. 144  cv/src/cvadapthresh.cpp
  21. 1,064  cv/src/cvapprox.cpp
  22. 385  cv/src/cvcalccontrasthistogram.cpp
  23. 120  cv/src/cvcalcimagehomography.cpp
  24. 2,091  cv/src/cvcalibinit.cpp
  25. 2,683  cv/src/cvcalibration.cpp
  26. 300  cv/src/cvcamshift.cpp
  27. 357  cv/src/cvcanny.cpp
  28. 2,551  cv/src/cvcolor.cpp
  29. 284  cv/src/cvcondens.cpp
  30. 1,557  cv/src/cvcontours.cpp
  31. 804  cv/src/cvcontourtree.cpp
  32. 851  cv/src/cvconvhull.cpp
  33. 706  cv/src/cvcorner.cpp
  34. 268  cv/src/cvcornersubpix.cpp
  35. 879  cv/src/cvderiv.cpp
  36. 859  cv/src/cvdistransform.cpp
  37. 407  cv/src/cvdominants.cpp
  38. 1,164  cv/src/cvemd.cpp
  39. 234  cv/src/cvfeatureselect.cpp
  40. 2,710  cv/src/cvfilter.cpp
  41. 1,160  cv/src/cvfloodfill.cpp
  42. 1,438  cv/src/cvfundam.cpp
  43. 593  cv/src/cvgeometry.cpp
  44. 2,328  cv/src/cvhaar.cpp
276  Android.mk
... ...
@@ -1,276 +0,0 @@
1  
-LOCAL_PATH:= $(call my-dir)
2  
-
3  
-include $(CLEAR_VARS)
4  
-
5  
-LOCAL_MODULE    := cxcore
6  
-LOCAL_C_INCLUDES := \
7  
-        $(LOCAL_PATH)/cxcore/include 
8  
-LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%)
9  
-LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -ldl
10  
-
11  
-LOCAL_SRC_FILES := \
12  
-        cxcore/src/cxalloc.cpp \
13  
-        cxcore/src/cxarithm.cpp \
14  
-        cxcore/src/cxarray.cpp \
15  
-        cxcore/src/cxcmp.cpp \
16  
-        cxcore/src/cxconvert.cpp \
17  
-        cxcore/src/cxcopy.cpp \
18  
-        cxcore/src/cxdatastructs.cpp \
19  
-        cxcore/src/cxdrawing.cpp \
20  
-        cxcore/src/cxdxt.cpp \
21  
-        cxcore/src/cxerror.cpp \
22  
-        cxcore/src/cximage.cpp \
23  
-        cxcore/src/cxjacobieigens.cpp \
24  
-        cxcore/src/cxlogic.cpp \
25  
-        cxcore/src/cxlut.cpp \
26  
-        cxcore/src/cxmathfuncs.cpp \
27  
-        cxcore/src/cxmatmul.cpp \
28  
-        cxcore/src/cxmatrix.cpp \
29  
-        cxcore/src/cxmean.cpp \
30  
-        cxcore/src/cxmeansdv.cpp \
31  
-        cxcore/src/cxminmaxloc.cpp \
32  
-        cxcore/src/cxnorm.cpp \
33  
-        cxcore/src/cxouttext.cpp \
34  
-        cxcore/src/cxpersistence.cpp \
35  
-        cxcore/src/cxprecomp.cpp \
36  
-        cxcore/src/cxrand.cpp \
37  
-        cxcore/src/cxsumpixels.cpp \
38  
-        cxcore/src/cxsvd.cpp \
39  
-        cxcore/src/cxswitcher.cpp \
40  
-        cxcore/src/cxtables.cpp \
41  
-        cxcore/src/cxutils.cpp
42  
-
43  
-include $(BUILD_STATIC_LIBRARY)
44  
-
45  
-
46  
-
47  
-include $(CLEAR_VARS)
48  
-
49  
-LOCAL_MODULE    := cv
50  
-LOCAL_C_INCLUDES := \
51  
-        $(LOCAL_PATH)/cxcore/include \
52  
-        $(LOCAL_PATH)/cxcore/src \
53  
-        $(LOCAL_PATH)/cv/include 
54  
-LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%)
55  
-LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -ldl
56  
-
57  
-LOCAL_SRC_FILES := \
58  
-        cv/src/cvaccum.cpp \
59  
-        cv/src/cvadapthresh.cpp \
60  
-        cv/src/cvapprox.cpp \
61  
-        cv/src/cvcalccontrasthistogram.cpp \
62  
-        cv/src/cvcalcimagehomography.cpp \
63  
-        cv/src/cvcalibinit.cpp \
64  
-        cv/src/cvcalibration.cpp \
65  
-        cv/src/cvcamshift.cpp \
66  
-        cv/src/cvcanny.cpp \
67  
-        cv/src/cvcolor.cpp \
68  
-        cv/src/cvcondens.cpp \
69  
-        cv/src/cvcontours.cpp \
70  
-        cv/src/cvcontourtree.cpp \
71  
-        cv/src/cvconvhull.cpp \
72  
-        cv/src/cvcorner.cpp \
73  
-        cv/src/cvcornersubpix.cpp \
74  
-        cv/src/cvderiv.cpp \
75  
-        cv/src/cvdistransform.cpp \
76  
-        cv/src/cvdominants.cpp \
77  
-        cv/src/cvemd.cpp \
78  
-        cv/src/cvfeatureselect.cpp \
79  
-        cv/src/cvfilter.cpp \
80  
-        cv/src/cvfloodfill.cpp \
81  
-        cv/src/cvfundam.cpp \
82  
-        cv/src/cvgeometry.cpp \
83  
-        cv/src/cvhaar.cpp \
84  
-        cv/src/cvhistogram.cpp \
85  
-        cv/src/cvhough.cpp \
86  
-        cv/src/cvimgwarp.cpp \
87  
-        cv/src/cvinpaint.cpp \
88  
-        cv/src/cvkalman.cpp \
89  
-        cv/src/cvlinefit.cpp \
90  
-        cv/src/cvlkpyramid.cpp \
91  
-        cv/src/cvmatchcontours.cpp \
92  
-        cv/src/cvmoments.cpp \
93  
-        cv/src/cvmorph.cpp \
94  
-        cv/src/cvmotempl.cpp \
95  
-        cv/src/cvoptflowbm.cpp \
96  
-        cv/src/cvoptflowhs.cpp \
97  
-        cv/src/cvoptflowlk.cpp \
98  
-        cv/src/cvpgh.cpp \
99  
-        cv/src/cvposit.cpp \
100  
-        cv/src/cvprecomp.cpp \
101  
-        cv/src/cvpyramids.cpp \
102  
-        cv/src/cvpyrsegmentation.cpp \
103  
-        cv/src/cvrotcalipers.cpp \
104  
-        cv/src/cvsamplers.cpp \
105  
-        cv/src/cvsegmentation.cpp \
106  
-        cv/src/cvshapedescr.cpp \
107  
-        cv/src/cvsmooth.cpp \
108  
-        cv/src/cvsnakes.cpp \
109  
-        cv/src/cvstereobm.cpp \
110  
-        cv/src/cvstereogc.cpp \
111  
-        cv/src/cvsubdivision2d.cpp \
112  
-        cv/src/cvsumpixels.cpp \
113  
-        cv/src/cvsurf.cpp \
114  
-        cv/src/cvswitcher.cpp \
115  
-        cv/src/cvtables.cpp \
116  
-        cv/src/cvtemplmatch.cpp \
117  
-        cv/src/cvthresh.cpp \
118  
-        cv/src/cvundistort.cpp \
119  
-        cv/src/cvutils.cpp \
120  
-        cv/src/mycvHaarDetectObjects.cpp
121  
-#        cv/src/cvkdtree.cpp \
122  
-
123  
-include $(BUILD_STATIC_LIBRARY)
124  
-
125  
-
126  
-
127  
-include $(CLEAR_VARS)
128  
-
129  
-LOCAL_MODULE    := cvaux
130  
-LOCAL_C_INCLUDES := \
131  
-        $(LOCAL_PATH)/cv/src \
132  
-        $(LOCAL_PATH)/cv/include \
133  
-        $(LOCAL_PATH)/cxcore/include \
134  
-        $(LOCAL_PATH)/cvaux/include 
135  
-LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%)
136  
-LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -ldl
137  
-
138  
-LOCAL_SRC_FILES := \
139  
-        cvaux/src/camshift.cpp \
140  
-        cvaux/src/cvaux.cpp \
141  
-        cvaux/src/cvauxutils.cpp \
142  
-        cvaux/src/cvbgfg_acmmm2003.cpp \
143  
-        cvaux/src/cvbgfg_codebook.cpp \
144  
-        cvaux/src/cvbgfg_common.cpp \
145  
-        cvaux/src/cvbgfg_gaussmix.cpp \
146  
-        cvaux/src/cvcalibfilter.cpp \
147  
-        cvaux/src/cvclique.cpp \
148  
-        cvaux/src/cvcorrespond.cpp \
149  
-        cvaux/src/cvcorrimages.cpp \
150  
-        cvaux/src/cvcreatehandmask.cpp \
151  
-        cvaux/src/cvdpstereo.cpp \
152  
-        cvaux/src/cveigenobjects.cpp \
153  
-        cvaux/src/cvepilines.cpp \
154  
-        cvaux/src/cvface.cpp \
155  
-        cvaux/src/cvfacedetection.cpp \
156  
-        cvaux/src/cvfacetemplate.cpp \
157  
-        cvaux/src/cvfindface.cpp \
158  
-        cvaux/src/cvfindhandregion.cpp \
159  
-        cvaux/src/cvhmm.cpp \
160  
-        cvaux/src/cvhmm1d.cpp \
161  
-        cvaux/src/cvhmmobs.cpp \
162  
-        cvaux/src/cvlcm.cpp \
163  
-        cvaux/src/cvlee.cpp \
164  
-        cvaux/src/cvlevmar.cpp \
165  
-        cvaux/src/cvlevmarprojbandle.cpp \
166  
-        cvaux/src/cvlevmartrif.cpp \
167  
-        cvaux/src/cvlines.cpp \
168  
-        cvaux/src/cvlmeds.cpp \
169  
-        cvaux/src/cvmat.cpp \
170  
-        cvaux/src/cvmorphcontours.cpp \
171  
-        cvaux/src/cvmorphing.cpp \
172  
-        cvaux/src/cvprewarp.cpp \
173  
-        cvaux/src/cvscanlines.cpp \
174  
-        cvaux/src/cvsegment.cpp \
175  
-        cvaux/src/cvsubdiv2.cpp \
176  
-        cvaux/src/cvtexture.cpp \
177  
-        cvaux/src/cvtrifocal.cpp \
178  
-        cvaux/src/cvvecfacetracking.cpp \
179  
-        cvaux/src/cvvideo.cpp \
180  
-        cvaux/src/decomppoly.cpp \
181  
-        cvaux/src/enmin.cpp \
182  
-        cvaux/src/extendededges.cpp \
183  
-        cvaux/src/precomp.cpp
184  
-#        cvaux/src/cv3dtracker.cpp \
185  
-
186  
-include $(BUILD_STATIC_LIBRARY)
187  
-
188  
-
189  
-
190  
-include $(CLEAR_VARS)
191  
-
192  
-LOCAL_MODULE    := cvml
193  
-LOCAL_C_INCLUDES := \
194  
-        $(LOCAL_PATH)/cv/src \
195  
-        $(LOCAL_PATH)/cv/include \
196  
-        $(LOCAL_PATH)/cxcore/include \
197  
-        $(LOCAL_PATH)/ml/include
198  
-LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%)
199  
-LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -ldl
200  
-
201  
-LOCAL_SRC_FILES := \
202  
-        ml/src/ml.cpp \
203  
-        ml/src/mlann_mlp.cpp \
204  
-        ml/src/mlboost.cpp \
205  
-        ml/src/mlcnn.cpp \
206  
-        ml/src/mlem.cpp \
207  
-        ml/src/mlestimate.cpp \
208  
-        ml/src/mlknearest.cpp \
209  
-        ml/src/mlnbayes.cpp \
210  
-        ml/src/mlrtrees.cpp \
211  
-        ml/src/mlsvm.cpp \
212  
-        ml/src/mltestset.cpp \
213  
-        ml/src/mltree.cpp \
214  
-        ml/src/ml_inner_functions.cpp
215  
-
216  
-include $(BUILD_STATIC_LIBRARY)
217  
-
218  
-
219  
-
220  
-include $(CLEAR_VARS)
221  
-
222  
-LOCAL_MODULE    := cvhighgui
223  
-LOCAL_C_INCLUDES := \
224  
-        $(LOCAL_PATH)/cv/src \
225  
-        $(LOCAL_PATH)/cv/include \
226  
-        $(LOCAL_PATH)/cxcore/include \
227  
-        $(LOCAL_PATH)/otherlibs/highgui
228  
-LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%)
229  
-LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -ldl
230  
-
231  
-LOCAL_SRC_FILES := \
232  
-        otherlibs/highgui/bitstrm.cpp \
233  
-        otherlibs/highgui/grfmt_base.cpp \
234  
-        otherlibs/highgui/grfmt_bmp.cpp \
235  
-        otherlibs/highgui/grfmt_exr.cpp \
236  
-        otherlibs/highgui/grfmt_imageio.cpp \
237  
-        otherlibs/highgui/grfmt_jpeg.cpp \
238  
-        otherlibs/highgui/grfmt_jpeg2000.cpp \
239  
-        otherlibs/highgui/grfmt_png.cpp \
240  
-        otherlibs/highgui/grfmt_pxm.cpp \
241  
-        otherlibs/highgui/grfmt_sunras.cpp \
242  
-        otherlibs/highgui/grfmt_tiff.cpp \
243  
-        otherlibs/highgui/image.cpp \
244  
-        otherlibs/highgui/loadsave.cpp \
245  
-        otherlibs/highgui/precomp.cpp \
246  
-        otherlibs/highgui/utils.cpp \
247  
-        otherlibs/highgui/cvcap.cpp \
248  
-        otherlibs/highgui/cvcap_socket.cpp
249  
-
250  
-include $(BUILD_STATIC_LIBRARY)
251  
-
252  
-include $(CLEAR_VARS)
253  
-
254  
-LOCAL_MODULE    := opencv
255  
-LOCAL_C_INCLUDES := \
256  
-        $(LOCAL_PATH)/cv/src \
257  
-        $(LOCAL_PATH)/cv/include \
258  
-        $(LOCAL_PATH)/cxcore/include \
259  
-        $(LOCAL_PATH)/cvaux/src \
260  
-        $(LOCAL_PATH)/cvaux/include \
261  
-        $(LOCAL_PATH)/ml/include \
262  
-        $(LOCAL_PATH)/otherlibs/highgui
263  
-LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%)
264  
-LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -ldl -llog \
265  
-                -L$(TARGET_OUT) -lcxcore -lcv -lcvaux -lcvml -lcvhighgui
266  
-
267  
-
268  
-LOCAL_SRC_FILES := \
269  
-        WLNonFileByteStream.cpp \
270  
-        cvjni.cpp
271  
-
272  
-
273  
-LOCAL_STATIC_LIBRARIES := cxcore cv cvaux cvml cvhighgui
274  
-
275  
-include $(BUILD_SHARED_LIBRARY)
276  
-
3  Application.mk
... ...
@@ -1,3 +0,0 @@
1  
-APP_BUILD_SCRIPT := $(call my-dir)/Android.mk
2  
-APP_PROJECT_PATH := $(call my-dir)/tests/VideoEmulation
3  
-APP_MODULES      := cxcore cv cvaux cvml cvhighgui opencv
12  LICENSE_Android_NDK
... ...
@@ -1,12 +0,0 @@
1  
-OpenCV for Android NDK
2  
-Copyright (c) 2006-2009 SIProp Project http://www.siprop.org/
3  
-
4  
-This software is provided 'as-is', without any express or implied warranty.
5  
-In no event will the authors be held liable for any damages arising from the use of this software.
6  
-Permission is granted to anyone to use this software for any purpose,
7  
-including commercial applications, and to alter it and redistribute it freely,
8  
-subject to the following restrictions:
9  
-
10  
-1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
11  
-2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
12  
-3. This notice may not be removed or altered from any source distribution.
36  LICENSE_OpenCV
... ...
@@ -1,36 +0,0 @@
1  
-IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 
2  
-
3  
-By downloading, copying, installing or using the software you agree to this license.
4  
-If you do not agree to this license, do not download, install,
5  
-copy or use the software.
6  
-
7  
-
8  
-                       Intel License Agreement 
9  
-               For Open Source Computer Vision Library 
10  
-
11  
-Copyright (C) 2000-2006, Intel Corporation, all rights reserved.
12  
-Third party copyrights are property of their respective owners. 
13  
-
14  
-Redistribution and use in source and binary forms, with or without modification,
15  
-are permitted provided that the following conditions are met:
16  
-
17  
-  * Redistribution's of source code must retain the above copyright notice,
18  
-    this list of conditions and the following disclaimer.
19  
-
20  
-  * Redistribution's in binary form must reproduce the above copyright notice,
21  
-    this list of conditions and the following disclaimer in the documentation
22  
-    and/or other materials provided with the distribution.
23  
-
24  
-  * The name of Intel Corporation may not be used to endorse or promote products
25  
-    derived from this software without specific prior written permission.
26  
-
27  
-This software is provided by the copyright holders and contributors "as is" and
28  
-any express or implied warranties, including, but not limited to, the implied
29  
-warranties of merchantability and fitness for a particular purpose are disclaimed.
30  
-In no event shall the Intel Corporation or contributors be liable for any direct,
31  
-indirect, incidental, special, exemplary, or consequential damages
32  
-(including, but not limited to, procurement of substitute goods or services;
33  
-loss of use, data, or profits; or business interruption) however caused
34  
-and on any theory of liability, whether in contract, strict liability,
35  
-or tort (including negligence or otherwise) arising in any way out of
36  
-the use of this software, even if advised of the possibility of such damage.  
150  WLNonFileByteStream.cpp
... ...
@@ -1,150 +0,0 @@
1  
-/*
2  
-OpenCV for Android NDK
3  
-Copyright (c) 2006-2009 SIProp Project http://www.siprop.org/
4  
-
5  
-This software is provided 'as-is', without any express or implied warranty.
6  
-In no event will the authors be held liable for any damages arising from the use of this software.
7  
-Permission is granted to anyone to use this software for any purpose,
8  
-including commercial applications, and to alter it and redistribute it freely,
9  
-subject to the following restrictions:
10  
-
11  
-1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
12  
-2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
13  
-3. This notice may not be removed or altered from any source distribution.
14  
-*/
15  
-#include "WLNonFileByteStream.h"
16  
-
17  
-///////////////////////////// WLNonFileByteStream /////////////////////////////////// 
18  
-
19  
-WLNonFileByteStream::WLNonFileByteStream()
20  
-{
21  
-    m_start = m_end = m_current = 0;
22  
-    _size = 0;
23  
-    m_is_opened = false;
24  
-}
25  
-
26  
-
27  
-WLNonFileByteStream::~WLNonFileByteStream()
28  
-{
29  
-	Deallocate();
30  
-}
31  
-
32  
-
33  
-void  WLNonFileByteStream::Allocate(int data_size)
34  
-{
35  
-	if(!m_start)
36  
-    	m_start = new uchar[data_size];
37  
-
38  
-    m_end = m_start + data_size;
39  
-    m_current = m_start;
40  
-}
41  
-
42  
-void  WLNonFileByteStream::Deallocate()
43  
-{
44  
-	if(m_start)
45  
-	{
46  
-		delete [] m_start;
47  
-		m_start = 0;
48  
-	}
49  
-}
50  
-
51  
-bool  WLNonFileByteStream::Open(int data_size)
52  
-{
53  
-    Close();
54  
-    Allocate(data_size);
55  
-    
56  
-    m_is_opened = true;
57  
-    m_current = m_start;
58  
-    _size = data_size;
59  
-    
60  
-    return true;
61  
-}
62  
-
63  
-
64  
-void  WLNonFileByteStream::Close()
65  
-{
66  
-    m_is_opened = false;
67  
-	Deallocate();
68  
-}
69  
-
70  
-
71  
-void WLNonFileByteStream::PutByte( int val )
72  
-{
73  
-    *m_current++ = (uchar)val;
74  
-}
75  
-
76  
-
77  
-void WLNonFileByteStream::PutBytes( const void* buffer, int count )
78  
-{
79  
-    uchar* data = (uchar*)buffer;
80  
-    
81  
-    assert( data && m_current && count >= 0 );
82  
-
83  
-    while( count )
84  
-    {
85  
-        int l = (int)(m_end - m_current);
86  
-        
87  
-        if( l > count )
88  
-            l = count;
89  
-        
90  
-        if( l > 0 )
91  
-        {
92  
-            memcpy( m_current, data, l );
93  
-            m_current += l;
94  
-            data += l;
95  
-            count -= l;
96  
-        }
97  
-    }
98  
-}
99  
-
100  
-
101  
-void WLNonFileByteStream::PutWord( int val )
102  
-{
103  
-    uchar *current = m_current;
104  
-
105  
-    if( current+1 < m_end )
106  
-    {
107  
-        current[0] = (uchar)val;
108  
-        current[1] = (uchar)(val >> 8);
109  
-        m_current = current + 2;
110  
-    }
111  
-    else
112  
-    {
113  
-        PutByte(val);
114  
-        PutByte(val >> 8);
115  
-    }
116  
-}
117  
-
118  
-
119  
-void WLNonFileByteStream::PutDWord( int val )
120  
-{
121  
-    uchar *current = m_current;
122  
-
123  
-    if( current+3 < m_end )
124  
-    {
125  
-        current[0] = (uchar)val;
126  
-        current[1] = (uchar)(val >> 8);
127  
-        current[2] = (uchar)(val >> 16);
128  
-        current[3] = (uchar)(val >> 24);
129  
-        m_current = current + 4;
130  
-    }
131  
-    else
132  
-    {
133  
-        PutByte(val);
134  
-        PutByte(val >> 8);
135  
-        PutByte(val >> 16);
136  
-        PutByte(val >> 24);
137  
-    }
138  
-}
139  
-
140  
-
141  
-uchar* WLNonFileByteStream::GetByte()
142  
-{
143  
-	return m_start;
144  
-}
145  
-
146  
-int WLNonFileByteStream::GetSize()
147  
-{
148  
-	return _size;
149  
-}
150  
-
51  WLNonFileByteStream.h
... ...
@@ -1,51 +0,0 @@
1  
-/*
2  
-OpenCV for Android NDK
3  
-Copyright (c) 2006-2009 SIProp Project http://www.siprop.org/
4  
-
5  
-This software is provided 'as-is', without any express or implied warranty.
6  
-In no event will the authors be held liable for any damages arising from the use of this software.
7  
-Permission is granted to anyone to use this software for any purpose,
8  
-including commercial applications, and to alter it and redistribute it freely,
9  
-subject to the following restrictions:
10  
-
11  
-1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
12  
-2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
13  
-3. This notice may not be removed or altered from any source distribution.
14  
-*/
15  
-#ifndef _WLNonFileByteStream_H_
16  
-#define _WLNonFileByteStream_H_
17  
-
18  
-#include <stdio.h>
19  
-#include "cv.h"
20  
-#include "cxcore.h"
21  
-#include "cvaux.h"
22  
-#include "highgui.h"
23  
-#include "ml.h"
24  
-#include "utils.h"
25  
-
26  
-class WLNonFileByteStream {
27  
-public:
28  
-    WLNonFileByteStream();
29  
-    ~WLNonFileByteStream();
30  
-
31  
-    bool    Open(int data_size);
32  
-    void    Close();
33  
-    void    PutByte( int val );
34  
-    void    PutBytes( const void* buffer, int count );
35  
-    void    PutWord( int val );
36  
-    void    PutDWord( int val ); 
37  
-    uchar*  GetByte(); 
38  
-    int     GetSize(); 
39  
-
40  
-protected:
41  
-    void    Allocate(int data_size);
42  
-	void    Deallocate();
43  
-    int     _size;
44  
-    uchar*  m_start;
45  
-    uchar*  m_end;
46  
-    uchar*  m_current;
47  
-    bool    m_is_opened;
48  
-
49  
-};
50  
-
51  
-#endif/*_WLNonFileByteStream_H_*/
1,482  cv/include/cv.h
... ...
@@ -1,1482 +0,0 @@
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  
-#ifndef _CV_H_
44  
-#define _CV_H_
45  
-
46  
-#ifdef __IPL_H__
47  
-#define HAVE_IPL
48  
-#endif
49  
-
50  
-#ifndef SKIP_INCLUDES
51  
-  #if defined(_CH_)
52  
-    #pragma package <chopencv>
53  
-    #include <chdl.h>
54  
-    LOAD_CHDL(cv)
55  
-  #endif
56  
-#endif
57  
-
58  
-#include "cxcore.h"
59  
-#include "cvtypes.h"
60  
-
61  
-#ifdef __cplusplus
62  
-extern "C" {
63  
-#endif
64  
-
65  
-/****************************************************************************************\
66  
-*                                    Image Processing                                    *
67  
-\****************************************************************************************/
68  
-
69  
-/* Copies source 2D array inside of the larger destination array and
70  
-   makes a border of the specified type (IPL_BORDER_*) around the copied area. */
71  
-CVAPI(void) cvCopyMakeBorder( const CvArr* src, CvArr* dst, CvPoint offset,
72  
-                              int bordertype, CvScalar value CV_DEFAULT(cvScalarAll(0)));
73  
-
74  
-#define CV_BLUR_NO_SCALE 0
75  
-#define CV_BLUR  1
76  
-#define CV_GAUSSIAN  2
77  
-#define CV_MEDIAN 3
78  
-#define CV_BILATERAL 4
79  
-
80  
-/* Smoothes array (removes noise) */
81  
-CVAPI(void) cvSmooth( const CvArr* src, CvArr* dst,
82  
-                      int smoothtype CV_DEFAULT(CV_GAUSSIAN),
83  
-                      int size1 CV_DEFAULT(3),
84  
-                      int size2 CV_DEFAULT(0),
85  
-                      double sigma1 CV_DEFAULT(0),
86  
-                      double sigma2 CV_DEFAULT(0));
87  
-
88  
-/* Convolves the image with the kernel */
89  
-CVAPI(void) cvFilter2D( const CvArr* src, CvArr* dst, const CvMat* kernel,
90  
-                        CvPoint anchor CV_DEFAULT(cvPoint(-1,-1)));
91  
-
92  
-/* Finds integral image: SUM(X,Y) = sum(x<X,y<Y)I(x,y) */
93  
-CVAPI(void) cvIntegral( const CvArr* image, CvArr* sum,
94  
-                       CvArr* sqsum CV_DEFAULT(NULL),
95  
-                       CvArr* tilted_sum CV_DEFAULT(NULL));
96  
-
97  
-/*
98  
-   Smoothes the input image with gaussian kernel and then down-samples it.
99  
-   dst_width = floor(src_width/2)[+1],
100  
-   dst_height = floor(src_height/2)[+1]
101  
-*/
102  
-CVAPI(void)  cvPyrDown( const CvArr* src, CvArr* dst,
103  
-                        int filter CV_DEFAULT(CV_GAUSSIAN_5x5) );
104  
-
105  
-/* 
106  
-   Up-samples image and smoothes the result with gaussian kernel.
107  
-   dst_width = src_width*2,
108  
-   dst_height = src_height*2
109  
-*/
110  
-CVAPI(void)  cvPyrUp( const CvArr* src, CvArr* dst,
111  
-                      int filter CV_DEFAULT(CV_GAUSSIAN_5x5) );
112  
-
113  
-/* Builds pyramid for an image */
114  
-CVAPI(CvMat**) cvCreatePyramid( const CvArr* img, int extra_layers, double rate,
115  
-                                const CvSize* layer_sizes CV_DEFAULT(0),
116  
-                                CvArr* bufarr CV_DEFAULT(0),
117  
-                                int calc CV_DEFAULT(1),
118  
-                                int filter CV_DEFAULT(CV_GAUSSIAN_5x5) );
119  
-
120  
-/* Releases pyramid */
121  
-CVAPI(void)  cvReleasePyramid( CvMat*** pyramid, int extra_layers );
122  
-
123  
-
124  
-/* Splits color or grayscale image into multiple connected components
125  
-   of nearly the same color/brightness using modification of Burt algorithm.
126  
-   comp with contain a pointer to sequence (CvSeq)
127  
-   of connected components (CvConnectedComp) */
128  
-CVAPI(void) cvPyrSegmentation( IplImage* src, IplImage* dst,
129  
-                              CvMemStorage* storage, CvSeq** comp,
130  
-                              int level, double threshold1,
131  
-                              double threshold2 );
132  
-
133  
-/* Filters image using meanshift algorithm */
134  
-CVAPI(void) cvPyrMeanShiftFiltering( const CvArr* src, CvArr* dst, 
135  
-    double sp, double sr, int max_level CV_DEFAULT(1),
136  
-    CvTermCriteria termcrit CV_DEFAULT(cvTermCriteria(CV_TERMCRIT_ITER+CV_TERMCRIT_EPS,5,1)));
137  
-
138  
-/* Segments image using seed "markers" */
139  
-CVAPI(void) cvWatershed( const CvArr* image, CvArr* markers );
140  
-
141  
-#define CV_INPAINT_NS      0
142  
-#define CV_INPAINT_TELEA   1
143  
-
144  
-/* Inpaints the selected region in the image */
145  
-CVAPI(void) cvInpaint( const CvArr* src, const CvArr* inpaint_mask,
146  
-                       CvArr* dst, double inpaintRange, int flags );
147  
-
148  
-#define CV_SCHARR -1
149  
-#define CV_MAX_SOBEL_KSIZE 7
150  
-
151  
-/* Calculates an image derivative using generalized Sobel
152  
-   (aperture_size = 1,3,5,7) or Scharr (aperture_size = -1) operator.
153  
-   Scharr can be used only for the first dx or dy derivative */
154  
-CVAPI(void) cvSobel( const CvArr* src, CvArr* dst,
155  
-                    int xorder, int yorder,
156  
-                    int aperture_size CV_DEFAULT(3));
157  
-
158  
-/* Calculates the image Laplacian: (d2/dx + d2/dy)I */
159  
-CVAPI(void) cvLaplace( const CvArr* src, CvArr* dst,
160  
-                      int aperture_size CV_DEFAULT(3) );
161  
-
162  
-/* Constants for color conversion */
163  
-#define  CV_BGR2BGRA    0
164  
-#define  CV_RGB2RGBA    CV_BGR2BGRA
165  
-
166  
-#define  CV_BGRA2BGR    1
167  
-#define  CV_RGBA2RGB    CV_BGRA2BGR
168  
-
169  
-#define  CV_BGR2RGBA    2
170  
-#define  CV_RGB2BGRA    CV_BGR2RGBA
171  
-
172  
-#define  CV_RGBA2BGR    3
173  
-#define  CV_BGRA2RGB    CV_RGBA2BGR
174  
-
175  
-#define  CV_BGR2RGB     4
176  
-#define  CV_RGB2BGR     CV_BGR2RGB
177  
-
178  
-#define  CV_BGRA2RGBA   5
179  
-#define  CV_RGBA2BGRA   CV_BGRA2RGBA
180  
-
181  
-#define  CV_BGR2GRAY    6
182  
-#define  CV_RGB2GRAY    7
183  
-#define  CV_GRAY2BGR    8
184  
-#define  CV_GRAY2RGB    CV_GRAY2BGR
185  
-#define  CV_GRAY2BGRA   9
186  
-#define  CV_GRAY2RGBA   CV_GRAY2BGRA
187  
-#define  CV_BGRA2GRAY   10
188  
-#define  CV_RGBA2GRAY   11
189  
-
190  
-#define  CV_BGR2BGR565  12
191  
-#define  CV_RGB2BGR565  13
192  
-#define  CV_BGR5652BGR  14
193  
-#define  CV_BGR5652RGB  15
194  
-#define  CV_BGRA2BGR565 16
195  
-#define  CV_RGBA2BGR565 17
196  
-#define  CV_BGR5652BGRA 18
197  
-#define  CV_BGR5652RGBA 19
198  
-
199  
-#define  CV_GRAY2BGR565 20
200  
-#define  CV_BGR5652GRAY 21
201  
-
202  
-#define  CV_BGR2BGR555  22
203  
-#define  CV_RGB2BGR555  23
204  
-#define  CV_BGR5552BGR  24
205  
-#define  CV_BGR5552RGB  25
206  
-#define  CV_BGRA2BGR555 26
207  
-#define  CV_RGBA2BGR555 27
208  
-#define  CV_BGR5552BGRA 28
209  
-#define  CV_BGR5552RGBA 29
210  
-
211  
-#define  CV_GRAY2BGR555 30
212  
-#define  CV_BGR5552GRAY 31
213  
-
214  
-#define  CV_BGR2XYZ     32
215  
-#define  CV_RGB2XYZ     33
216  
-#define  CV_XYZ2BGR     34
217  
-#define  CV_XYZ2RGB     35
218  
-
219  
-#define  CV_BGR2YCrCb   36
220  
-#define  CV_RGB2YCrCb   37
221  
-#define  CV_YCrCb2BGR   38
222  
-#define  CV_YCrCb2RGB   39
223  
-
224  
-#define  CV_BGR2HSV     40
225  
-#define  CV_RGB2HSV     41
226  
-
227  
-#define  CV_BGR2Lab     44
228  
-#define  CV_RGB2Lab     45
229  
-
230  
-#define  CV_BayerBG2BGR 46
231  
-#define  CV_BayerGB2BGR 47
232  
-#define  CV_BayerRG2BGR 48
233  
-#define  CV_BayerGR2BGR 49
234  
-
235  
-#define  CV_BayerBG2RGB CV_BayerRG2BGR
236  
-#define  CV_BayerGB2RGB CV_BayerGR2BGR
237  
-#define  CV_BayerRG2RGB CV_BayerBG2BGR
238  
-#define  CV_BayerGR2RGB CV_BayerGB2BGR
239  
-
240  
-#define  CV_BGR2Luv     50
241  
-#define  CV_RGB2Luv     51
242  
-#define  CV_BGR2HLS     52
243  
-#define  CV_RGB2HLS     53
244  
-
245  
-#define  CV_HSV2BGR     54
246  
-#define  CV_HSV2RGB     55
247  
-
248  
-#define  CV_Lab2BGR     56
249  
-#define  CV_Lab2RGB     57
250  
-#define  CV_Luv2BGR     58
251  
-#define  CV_Luv2RGB     59
252  
-#define  CV_HLS2BGR     60
253  
-#define  CV_HLS2RGB     61
254  
-
255  
-#define  CV_COLORCVT_MAX  100
256  
-
257  
-/* Converts input array pixels from one color space to another */
258  
-CVAPI(void)  cvCvtColor( const CvArr* src, CvArr* dst, int code );
259  
-
260  
-#define  CV_INTER_NN        0
261  
-#define  CV_INTER_LINEAR    1
262  
-#define  CV_INTER_CUBIC     2
263  
-#define  CV_INTER_AREA      3
264  
-
265  
-#define  CV_WARP_FILL_OUTLIERS 8
266  
-#define  CV_WARP_INVERSE_MAP  16
267  
-
268  
-/* Resizes image (input array is resized to fit the destination array) */
269  
-CVAPI(void)  cvResize( const CvArr* src, CvArr* dst,
270  
-                       int interpolation CV_DEFAULT( CV_INTER_LINEAR ));
271  
-
272  
-/* Warps image with affine transform */ 
273  
-CVAPI(void)  cvWarpAffine( const CvArr* src, CvArr* dst, const CvMat* map_matrix,
274  
-                           int flags CV_DEFAULT(CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS),
275  
-                           CvScalar fillval CV_DEFAULT(cvScalarAll(0)) );
276  
-
277  
-/* Computes affine transform matrix for mapping src[i] to dst[i] (i=0,1,2) */
278  
-CVAPI(CvMat*) cvGetAffineTransform( const CvPoint2D32f * src, 
279  
-                                    const CvPoint2D32f * dst, 
280  
-                                    CvMat * map_matrix );
281  
-
282  
-/* Computes rotation_matrix matrix */
283  
-CVAPI(CvMat*)  cv2DRotationMatrix( CvPoint2D32f center, double angle,
284  
-                                   double scale, CvMat* map_matrix );
285  
-
286  
-/* Warps image with perspective (projective) transform */
287  
-CVAPI(void)  cvWarpPerspective( const CvArr* src, CvArr* dst, const CvMat* map_matrix,
288  
-                                int flags CV_DEFAULT(CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS),
289  
-                                CvScalar fillval CV_DEFAULT(cvScalarAll(0)) );
290  
-
291  
-/* Computes perspective transform matrix for mapping src[i] to dst[i] (i=0,1,2,3) */
292  
-CVAPI(CvMat*) cvGetPerspectiveTransform( const CvPoint2D32f* src,
293  
-                                         const CvPoint2D32f* dst,
294  
-                                         CvMat* map_matrix );
295  
-
296  
-/* Performs generic geometric transformation using the specified coordinate maps */
297  
-CVAPI(void)  cvRemap( const CvArr* src, CvArr* dst,
298  
-                      const CvArr* mapx, const CvArr* mapy,
299  
-                      int flags CV_DEFAULT(CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS),
300  
-                      CvScalar fillval CV_DEFAULT(cvScalarAll(0)) );
301  
-
302  
-/* Converts mapx & mapy from floating-point to integer formats for cvRemap */
303  
-CVAPI(void)  cvConvertMaps( const CvArr* mapx, const CvArr* mapy,
304  
-                            CvArr* mapxy, CvArr* mapalpha );
305  
-
306  
-/* Performs forward or inverse log-polar image transform */
307  
-CVAPI(void)  cvLogPolar( const CvArr* src, CvArr* dst,
308  
-                         CvPoint2D32f center, double M,
309  
-                         int flags CV_DEFAULT(CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS));
310  
-
311  
-#define  CV_SHAPE_RECT      0
312  
-#define  CV_SHAPE_CROSS     1
313  
-#define  CV_SHAPE_ELLIPSE   2
314  
-#define  CV_SHAPE_CUSTOM    100
315  
-
316  
-/* creates structuring element used for morphological operations */
317  
-CVAPI(IplConvKernel*)  cvCreateStructuringElementEx(
318  
-            int cols, int  rows, int  anchor_x, int  anchor_y,
319  
-            int shape, int* values CV_DEFAULT(NULL) );
320  
-
321  
-/* releases structuring element */
322  
-CVAPI(void)  cvReleaseStructuringElement( IplConvKernel** element );
323  
-
324  
-/* erodes input image (applies minimum filter) one or more times.
325  
-   If element pointer is NULL, 3x3 rectangular element is used */
326  
-CVAPI(void)  cvErode( const CvArr* src, CvArr* dst,
327  
-                      IplConvKernel* element CV_DEFAULT(NULL),
328  
-                      int iterations CV_DEFAULT(1) );
329  
-
330  
-/* dilates input image (applies maximum filter) one or more times.
331  
-   If element pointer is NULL, 3x3 rectangular element is used */
332  
-CVAPI(void)  cvDilate( const CvArr* src, CvArr* dst,
333  
-                       IplConvKernel* element CV_DEFAULT(NULL),
334  
-                       int iterations CV_DEFAULT(1) );
335  
-
336  
-#define CV_MOP_OPEN         2
337  
-#define CV_MOP_CLOSE        3
338  
-#define CV_MOP_GRADIENT     4
339  
-#define CV_MOP_TOPHAT       5
340  
-#define CV_MOP_BLACKHAT     6
341  
-
342  
-/* Performs complex morphological transformation */
343  
-CVAPI(void)  cvMorphologyEx( const CvArr* src, CvArr* dst,
344  
-                             CvArr* temp, IplConvKernel* element,
345  
-                             int operation, int iterations CV_DEFAULT(1) );
346  
-
347  
-/* Calculates all spatial and central moments up to the 3rd order */
348  
-CVAPI(void) cvMoments( const CvArr* arr, CvMoments* moments, int binary CV_DEFAULT(0));
349  
-
350  
-/* Retrieve particular spatial, central or normalized central moments */
351  
-CVAPI(double)  cvGetSpatialMoment( CvMoments* moments, int x_order, int y_order );
352  
-CVAPI(double)  cvGetCentralMoment( CvMoments* moments, int x_order, int y_order );
353  
-CVAPI(double)  cvGetNormalizedCentralMoment( CvMoments* moments,
354  
-                                             int x_order, int y_order );
355  
-
356  
-/* Calculates 7 Hu's invariants from precalculated spatial and central moments */
357  
-CVAPI(void) cvGetHuMoments( CvMoments*  moments, CvHuMoments*  hu_moments );
358  
-
359  
-/*********************************** data sampling **************************************/
360  
-
361  
-/* Fetches pixels that belong to the specified line segment and stores them to the buffer.
362  
-   Returns the number of retrieved points. */
363  
-CVAPI(int)  cvSampleLine( const CvArr* image, CvPoint pt1, CvPoint pt2, void* buffer,
364  
-                          int connectivity CV_DEFAULT(8));
365  
-
366  
-/* Retrieves the rectangular image region with specified center from the input array.
367  
- dst(x,y) <- src(x + center.x - dst_width/2, y + center.y - dst_height/2).
368  
- Values of pixels with fractional coordinates are retrieved using bilinear interpolation*/
369  
-CVAPI(void)  cvGetRectSubPix( const CvArr* src, CvArr* dst, CvPoint2D32f center );
370  
-
371  
-
372  
-/* Retrieves quadrangle from the input array.
373  
-    matrixarr = ( a11  a12 | b1 )   dst(x,y) <- src(A[x y]' + b)
374  
-                ( a21  a22 | b2 )   (bilinear interpolation is used to retrieve pixels
375  
-                                     with fractional coordinates)
376  
-*/
377  
-CVAPI(void)  cvGetQuadrangleSubPix( const CvArr* src, CvArr* dst,
378  
-                                    const CvMat* map_matrix );
379  
-
380  
-/* Methods for comparing two array */
381  
-#define  CV_TM_SQDIFF        0
382  
-#define  CV_TM_SQDIFF_NORMED 1
383  
-#define  CV_TM_CCORR         2
384  
-#define  CV_TM_CCORR_NORMED  3
385  
-#define  CV_TM_CCOEFF        4
386  
-#define  CV_TM_CCOEFF_NORMED 5
387  
-
388  
-/* Measures similarity between template and overlapped windows in the source image
389  
-   and fills the resultant image with the measurements */
390  
-CVAPI(void)  cvMatchTemplate( const CvArr* image, const CvArr* templ,
391  
-                              CvArr* result, int method );
392  
-
393  
-/* Computes earth mover distance between
394  
-   two weighted point sets (called signatures) */
395  
-CVAPI(float)  cvCalcEMD2( const CvArr* signature1,
396  
-                          const CvArr* signature2,
397  
-                          int distance_type,
398  
-                          CvDistanceFunction distance_func CV_DEFAULT(NULL),
399  
-                          const CvArr* cost_matrix CV_DEFAULT(NULL),
400  
-                          CvArr* flow CV_DEFAULT(NULL),
401  
-                          float* lower_bound CV_DEFAULT(NULL),
402  
-                          void* userdata CV_DEFAULT(NULL));
403  
-
404  
-/****************************************************************************************\
405  
-*                              Contours retrieving                                       *
406  
-\****************************************************************************************/
407  
-
408  
-/* Retrieves outer and optionally inner boundaries of white (non-zero) connected
409  
-   components in the black (zero) background */
410  
-CVAPI(int)  cvFindContours( CvArr* image, CvMemStorage* storage, CvSeq** first_contour,
411  
-                            int header_size CV_DEFAULT(sizeof(CvContour)),
412  
-                            int mode CV_DEFAULT(CV_RETR_LIST),
413  
-                            int method CV_DEFAULT(CV_CHAIN_APPROX_SIMPLE),
414  
-                            CvPoint offset CV_DEFAULT(cvPoint(0,0)));
415  
-
416  
-
417  
-/* Initalizes contour retrieving process.
418  
-   Calls cvStartFindContours.
419  
-   Calls cvFindNextContour until null pointer is returned
420  
-   or some other condition becomes true.
421  
-   Calls cvEndFindContours at the end. */
422  
-CVAPI(CvContourScanner)  cvStartFindContours( CvArr* image, CvMemStorage* storage,
423  
-                            int header_size CV_DEFAULT(sizeof(CvContour)),
424  
-                            int mode CV_DEFAULT(CV_RETR_LIST),
425  
-                            int method CV_DEFAULT(CV_CHAIN_APPROX_SIMPLE),
426  
-                            CvPoint offset CV_DEFAULT(cvPoint(0,0)));
427  
-
428  
-/* Retrieves next contour */
429  
-CVAPI(CvSeq*)  cvFindNextContour( CvContourScanner scanner );
430  
-
431  
-
432  
-/* Substitutes the last retrieved contour with the new one
433  
-   (if the substitutor is null, the last retrieved contour is removed from the tree) */
434  
-CVAPI(void)   cvSubstituteContour( CvContourScanner scanner, CvSeq* new_contour );
435  
-
436  
-
437  
-/* Releases contour scanner and returns pointer to the first outer contour */
438  
-CVAPI(CvSeq*)  cvEndFindContours( CvContourScanner* scanner );
439  
-
440  
-/* Approximates a single Freeman chain or a tree of chains to polygonal curves */
441  
-CVAPI(CvSeq*) cvApproxChains( CvSeq* src_seq, CvMemStorage* storage,
442  
-                            int method CV_DEFAULT(CV_CHAIN_APPROX_SIMPLE),
443  
-                            double parameter CV_DEFAULT(0),
444  
-                            int  minimal_perimeter CV_DEFAULT(0),
445  
-                            int  recursive CV_DEFAULT(0));
446  
-
447  
-
448  
-/* Initalizes Freeman chain reader.
449  
-   The reader is used to iteratively get coordinates of all the chain points.
450  
-   If the Freeman codes should be read as is, a simple sequence reader should be used */
451  
-CVAPI(void) cvStartReadChainPoints( CvChain* chain, CvChainPtReader* reader );
452  
-
453  
-/* Retrieves the next chain point */
454  
-CVAPI(CvPoint) cvReadChainPoint( CvChainPtReader* reader );
455  
-
456  
-
457  
-/****************************************************************************************\
458  
-*                                  Motion Analysis                                       *
459  
-\****************************************************************************************/
460  
-
461  
-/************************************ optical flow ***************************************/
462  
-
463  
-/* Calculates optical flow for 2 images using classical Lucas & Kanade algorithm */
464  
-CVAPI(void)  cvCalcOpticalFlowLK( const CvArr* prev, const CvArr* curr,
465  
-                                  CvSize win_size, CvArr* velx, CvArr* vely );
466  
-
467  
-/* Calculates optical flow for 2 images using block matching algorithm */
468  
-CVAPI(void)  cvCalcOpticalFlowBM( const CvArr* prev, const CvArr* curr,
469  
-                                  CvSize block_size, CvSize shift_size,
470  
-                                  CvSize max_range, int use_previous,
471  
-                                  CvArr* velx, CvArr* vely );
472  
-
473  
-/* Calculates Optical flow for 2 images using Horn & Schunck algorithm */
474  
-CVAPI(void)  cvCalcOpticalFlowHS( const CvArr* prev, const CvArr* curr,
475  
-                                  int use_previous, CvArr* velx, CvArr* vely,
476  
-                                  double lambda, CvTermCriteria criteria );
477  
-
478  
-#define  CV_LKFLOW_PYR_A_READY       1
479  
-#define  CV_LKFLOW_PYR_B_READY       2
480  
-#define  CV_LKFLOW_INITIAL_GUESSES   4
481  
-#define  CV_LKFLOW_GET_MIN_EIGENVALS 8
482  
-
483  
-/* It is Lucas & Kanade method, modified to use pyramids.
484  
-   Also it does several iterations to get optical flow for
485  
-   every point at every pyramid level.
486  
-   Calculates optical flow between two images for certain set of points (i.e.
487  
-   it is a "sparse" optical flow, which is opposite to the previous 3 methods) */
488  
-CVAPI(void)  cvCalcOpticalFlowPyrLK( const CvArr*  prev, const CvArr*  curr,
489  
-                                     CvArr*  prev_pyr, CvArr*  curr_pyr,
490  
-                                     const CvPoint2D32f* prev_features,
491  
-                                     CvPoint2D32f* curr_features,
492  
-                                     int       count,
493  
-                                     CvSize    win_size,
494  
-                                     int       level,
495  
-                                     char*     status,
496  
-                                     float*    track_error,
497  
-                                     CvTermCriteria criteria,
498  
-                                     int       flags );
499  
-
500  
-
501  
-/* Modification of a previous sparse optical flow algorithm to calculate
502  
-   affine flow */
503  
-CVAPI(void)  cvCalcAffineFlowPyrLK( const CvArr*  prev, const CvArr*  curr,
504  
-                                    CvArr*  prev_pyr, CvArr*  curr_pyr,
505  
-                                    const CvPoint2D32f* prev_features,
506  
-                                    CvPoint2D32f* curr_features,
507  
-                                    float* matrices, int  count,
508  
-                                    CvSize win_size, int  level,
509  
-                                    char* status, float* track_error,
510  
-                                    CvTermCriteria criteria, int flags );
511  
-
512  
-/* Estimate rigid transformation between 2 images or 2 point sets */
513  
-CVAPI(int)  cvEstimateRigidTransform( const CvArr* A, const CvArr* B,
514  
-                                      CvMat* M, int full_affine );
515  
-
516  
-/********************************* motion templates *************************************/
517  
-
518  
-/****************************************************************************************\
519  
-*        All the motion template functions work only with single channel images.         *
520  
-*        Silhouette image must have depth IPL_DEPTH_8U or IPL_DEPTH_8S                   *
521  
-*        Motion history image must have depth IPL_DEPTH_32F,                             *
522  
-*        Gradient mask - IPL_DEPTH_8U or IPL_DEPTH_8S,                                   *
523  
-*        Motion orientation image - IPL_DEPTH_32F                                        *
524  
-*        Segmentation mask - IPL_DEPTH_32F                                               *
525  
-*        All the angles are in degrees, all the times are in milliseconds                *
526  
-\****************************************************************************************/
527  
-
528  
-/* Updates motion history image given motion silhouette */
529  
-CVAPI(void)    cvUpdateMotionHistory( const CvArr* silhouette, CvArr* mhi,
530  
-                                      double timestamp, double duration );
531  
-
532  
-/* Calculates gradient of the motion history image and fills
533  
-   a mask indicating where the gradient is valid */
534  
-CVAPI(void)    cvCalcMotionGradient( const CvArr* mhi, CvArr* mask, CvArr* orientation,
535  
-                                     double delta1, double delta2,
536  
-                                     int aperture_size CV_DEFAULT(3));
537  
-
538  
-/* Calculates average motion direction within a selected motion region 
539  
-   (region can be selected by setting ROIs and/or by composing a valid gradient mask
540  
-   with the region mask) */
541  
-CVAPI(double)  cvCalcGlobalOrientation( const CvArr* orientation, const CvArr* mask,
542  
-                                        const CvArr* mhi, double timestamp,
543  
-                                        double duration );
544  
-
545  
-/* Splits a motion history image into a few parts corresponding to separate independent motions
546  
-   (e.g. left hand, right hand) */
547  
-CVAPI(CvSeq*)  cvSegmentMotion( const CvArr* mhi, CvArr* seg_mask,
548  
-                                CvMemStorage* storage,
549  
-                                double timestamp, double seg_thresh );
550  
-
551  
-/*********************** Background statistics accumulation *****************************/
552  
-
553  
-/* Adds image to accumulator */
554  
-CVAPI(void)  cvAcc( const CvArr* image, CvArr* sum,
555  
-                    const CvArr* mask CV_DEFAULT(NULL) );
556  
-
557  
-/* Adds squared image to accumulator */
558  
-CVAPI(void)  cvSquareAcc( const CvArr* image, CvArr* sqsum,
559  
-                          const CvArr* mask CV_DEFAULT(NULL) );
560  
-
561  
-/* Adds a product of two images to accumulator */
562  
-CVAPI(void)  cvMultiplyAcc( const CvArr* image1, const CvArr* image2, CvArr* acc,
563  
-                            const CvArr* mask CV_DEFAULT(NULL) );
564  
-
565  
-/* Adds image to accumulator with weights: acc = acc*(1-alpha) + image*alpha */
566  
-CVAPI(void)  cvRunningAvg( const CvArr* image, CvArr* acc, double alpha,
567  
-                           const CvArr* mask CV_DEFAULT(NULL) );
568  
-
569  
-
570  
-/****************************************************************************************\
571  
-*                                       Tracking                                         *
572  
-\****************************************************************************************/
573  
-
574  
-/* Implements CAMSHIFT algorithm - determines object position, size and orientation
575  
-   from the object histogram back project (extension of meanshift) */
576  
-CVAPI(int)  cvCamShift( const CvArr* prob_image, CvRect  window,
577  
-                       CvTermCriteria criteria, CvConnectedComp* comp,
578  
-                       CvBox2D* box CV_DEFAULT(NULL) );
579  
-
580  
-/* Implements MeanShift algorithm - determines object position
581  
-   from the object histogram back project */
582  
-CVAPI(int)  cvMeanShift( const CvArr* prob_image, CvRect  window,
583  
-                        CvTermCriteria criteria, CvConnectedComp* comp );
584  
-
585  
-/* Creates ConDensation filter state */
586  
-CVAPI(CvConDensation*)  cvCreateConDensation( int dynam_params,
587  
-                                             int measure_params,
588  
-                                             int sample_count );
589  
-
590  
-/* Releases ConDensation filter state */
591  
-CVAPI(void)  cvReleaseConDensation( CvConDensation** condens );
592  
-
593  
-/* Updates ConDensation filter by time (predict future state of the system) */
594  
-CVAPI(void)  cvConDensUpdateByTime( CvConDensation* condens);
595  
-
596  
-/* Initializes ConDensation filter samples  */
597  
-CVAPI(void)  cvConDensInitSampleSet( CvConDensation* condens, CvMat* lower_bound, CvMat* upper_bound );
598  
-
599  
-/* Creates Kalman filter and sets A, B, Q, R and state to some initial values */
600  
-CVAPI(CvKalman*) cvCreateKalman( int dynam_params, int measure_params,
601  
-                                int control_params CV_DEFAULT(0));
602  
-
603  
-/* Releases Kalman filter state */
604  
-CVAPI(void)  cvReleaseKalman( CvKalman** kalman);
605  
-
606  
-/* Updates Kalman filter by time (predicts future state of the system) */
607  
-CVAPI(const CvMat*)  cvKalmanPredict( CvKalman* kalman,
608  
-                                     const CvMat* control CV_DEFAULT(NULL));
609  
-
610  
-/* Updates Kalman filter by measurement
611  
-   (corrects state of the system and internal matrices) */
612  
-CVAPI(const CvMat*)  cvKalmanCorrect( CvKalman* kalman, const CvMat* measurement );
613  
-
614  
-/****************************************************************************************\
615  
-*                              Planar subdivisions                                       *
616  
-\****************************************************************************************/
617  
-
618  
-/* Initializes Delaunay triangulation */
619  
-CVAPI(void)  cvInitSubdivDelaunay2D( CvSubdiv2D* subdiv, CvRect rect );
620  
-
621  
-/* Creates new subdivision */
622  
-CVAPI(CvSubdiv2D*)  cvCreateSubdiv2D( int subdiv_type, int header_size,
623  
-                                      int vtx_size, int quadedge_size,
624  
-                                      CvMemStorage* storage );
625  
-
626  
-/************************* high-level subdivision functions ***************************/
627  
-
628  
-/* Simplified Delaunay diagram creation */
629  
-CV_INLINE  CvSubdiv2D* cvCreateSubdivDelaunay2D( CvRect rect, CvMemStorage* storage )
630  
-{
631  
-    CvSubdiv2D* subdiv = cvCreateSubdiv2D( CV_SEQ_KIND_SUBDIV2D, sizeof(*subdiv),
632  
-                         sizeof(CvSubdiv2DPoint), sizeof(CvQuadEdge2D), storage );
633  
-
634  
-    cvInitSubdivDelaunay2D( subdiv, rect );
635  
-    return subdiv;
636  
-}
637  
-
638  
-