Move the sources to trunk
[opencv] / interfaces / swig / python / cvshadow.h
1 #ifndef CV_SHADOW_H
2 #define CV_SHADOW_H
3
4 #include <vector>
5 #include "cxtypes.h"
6 #include "cvtypes.h"
7 #include "pycvseq.hpp"
8
9 // modify cvCvtSeqToArray to take CvArr as input instead of raw data
10 CvArr * cvCvtSeqToArray_Shadow( const CvSeq* seq, CvArr * elements, CvSlice slice=CV_WHOLE_SEQ);
11
12 // formally overload ArcLength and cvContourPerimeter
13 double cvArcLength_Shadow( const CvSeq * seq, CvSlice slice=CV_WHOLE_SEQ, int is_closed=-1);
14 double cvArcLength_Shadow( const CvArr * arr, CvSlice slice=CV_WHOLE_SEQ, int is_closed=-1);
15
16 // cvContourPerimeter is a macro, but this still works
17 static double cvContourPerimeter_Shadow(CvSeq * seq){ return cvContourPerimeter( seq ); }
18 static double cvContourPerimeter_Shadow(CvArr * arr){ return cvContourPerimeter( arr ); }
19
20 // Return a typed sequence instead of generic CvSeq
21 CvTypedSeq<CvRect> * cvHaarDetectObjects_Shadow( const CvArr* image, CvHaarClassifierCascade* cascade,
22         CvMemStorage* storage, double scale_factor=1.1, int min_neighbors=3, int flags=0,
23         CvSize min_size=cvSize(0,0) );
24 CvTypedSeq<CvConnectedComp> *  cvSegmentMotion_Shadow( const CvArr* mhi, CvArr* seg_mask, CvMemStorage* storage,
25                                                                 double timestamp, double seg_thresh );
26 CvTypedSeq<CvPoint> * cvApproxPoly_Shadow( const void* src_seq, int header_size, CvMemStorage* storage,
27                                     int method, double parameter, int parameter2=0);
28
29 // Always return a new Mat of indices
30 CvMat * cvConvexHull2_Shadow( const CvArr * points, int orientation=CV_CLOCKWISE, 
31                                   int return_points=0);
32
33 std::vector<CvPoint> cvSnakeImage_Shadow( const CvMat * image, std::vector<CvPoint>  points,
34                 std::vector<float> alpha, std::vector<float> beta, std::vector<float> gamma, 
35                 CvSize win, CvTermCriteria criteria, int calc_gradient=1 );
36
37 #endif