]> rtime.felk.cvut.cz Git - opencv.git/blob - opencv/interfaces/python/api
#150 ReshapeMatND: test, implementaton, doc
[opencv.git] / opencv / interfaces / python / api
1 # Macros
2 CV_RGB CvScalar
3   double red
4   double grn
5   double blu
6 CV_MAT_CN int
7   int i
8 CV_MAT_DEPTH int
9   int i
10 Scalar CvScalar
11   double val0
12   double val1 0
13   double val2 0
14   double val3 0
15 ScalarAll CvScalar
16   double val0123
17 RealScalar CvScalar
18   double val0
19 CV_IABS int
20   int a
21 CV_CMP int
22   int a
23   int b
24 CV_SIGN int
25   int a
26 CV_FOURCC int
27   char c1
28   char c2
29   char c3
30   char c4
31 CV_MAKETYPE int
32   int depth
33   int cn
34 CV_8UC int
35   int n
36 CV_8SC int
37   int n
38 CV_16UC int
39   int n
40 CV_16SC int
41   int n
42 CV_32SC int
43   int n
44 CV_32FC int
45   int n
46 CV_64FC int
47   int n
48
49 # Initialization
50 CloneImage IplImage*
51   IplImage image
52 SetImageCOI
53   IplImage image
54   int coi
55 GetImageCOI int
56   IplImage image
57 SetImageROI
58   IplImage image
59   CvRect rect
60 ResetImageROI
61   IplImage image
62 GetImageROI CvRect
63   IplImage image
64 CloneMat CvMat*
65   CvMat mat
66 CloneMatND CvMatND*
67   CvMatND mat
68
69 # Accessing Elements and sub-Arrays
70
71 Get1D CvScalar
72   CvArr arr
73   int idx
74 Get2D CvScalar
75   CvArr arr
76   int idx0
77   int idx1
78 Get3D CvScalar
79   CvArr arr
80   int idx0
81   int idx1
82   int idx2
83 GetND CvScalar
84   CvArr arr
85   ints indices
86 GetReal1D double
87   CvArr arr
88   int idx0
89 GetReal2D double
90   CvArr arr
91   int idx0
92   int idx1
93 GetReal3D double
94   CvArr arr
95   int idx0
96   int idx1
97   int idx2
98 GetRealND double
99   CvArr arr
100   ints idx
101 mGet double
102   CvMat mat
103   int row
104   int col
105 Set1D
106   CvArr arr
107   int idx
108   CvScalar value
109 Set2D
110   CvArr arr
111   int idx0
112   int idx1
113   CvScalar value
114 Set3D
115   CvArr arr
116   int idx0
117   int idx1
118   int idx2
119   CvScalar value
120 SetND
121   CvArr arr
122   ints indices
123   CvScalar value
124 SetReal1D
125   CvArr arr
126   int idx
127   double value
128 SetReal2D
129   CvArr arr
130   int idx0
131   int idx1
132   double value
133 SetReal3D
134   CvArr arr
135   int idx0
136   int idx1
137   int idx2
138   double value
139 SetRealND
140   CvArr arr
141   ints indices
142   double value
143 mSet
144   CvMat mat
145   int row
146   int col
147   double value
148 ClearND
149   CvArr arr
150   ints idx
151
152 # Sequences
153 CV_IS_SEQ_INDEX int
154   CvSeq s
155 CV_IS_SEQ_CURVE int
156   CvSeq s
157 CV_IS_SEQ_CLOSED int
158   CvSeq s
159 CV_IS_SEQ_CONVEX int
160   CvSeq s
161 CV_IS_SEQ_HOLE int
162   CvSeq s
163 CV_IS_SEQ_SIMPLE int
164   CvSeq s
165
166
167 # Curves and Shapes
168 Line
169   CvArr img
170   CvPoint pt1
171   CvPoint pt2
172   CvScalar color
173   int thickness 1
174   int lineType 8
175   int shift 0
176 Rectangle
177   CvArr img
178   CvPoint pt1
179   CvPoint pt2
180   CvScalar color
181   int thickness 1
182   int lineType 8
183   int shift 0
184 Circle
185   CvArr img
186   CvPoint center
187   int radius
188   CvScalar color
189   int thickness 1
190   int lineType 8
191   int shift 0
192 Ellipse
193   CvArr img
194   CvPoint center
195   CvSize axes
196   double angle
197   double start_angle
198   double end_angle
199   CvScalar color
200   int thickness 1
201   int lineType 8
202   int shift 0
203 EllipseBox
204   CvArr img
205   CvBox2D box
206   CvScalar color
207   int thickness 1
208   int lineType 8
209   int shift 0
210 FillPoly
211   CvArr img
212   pts_npts_contours polys
213   CvScalar color
214   int lineType 8
215   int shift 0
216 FillConvexPoly
217   CvArr img
218   CvPoints pn
219   CvScalar color
220   int lineType 8
221   int shift 0
222 PolyLine
223   CvArr img
224   pts_npts_contours polys
225   int is_closed
226   CvScalar color
227   int thickness 1
228   int lineType 8
229   int shift 0
230
231 #Text
232 InitFont font
233   CvFont font /O
234   int fontFace
235   double hscale
236   double vscale
237   double shear 0
238   int thickness 1
239   int lineType 8
240 PutText
241   CvArr img
242   char* text
243   CvPoint org
244   CvFont* font
245   CvScalar color
246 GetTextSize textSize,baseline
247   char* textString
248   CvFont* font
249   CvSize textSize /O
250   int baseline /O
251
252 # Point Sets and Contours
253 DrawContours
254   CvArr img
255   CvSeq contour
256   CvScalar external_color
257   CvScalar hole_color
258   int max_level
259   int thickness 1
260   int lineType 8
261   CvPoint offset cvPoint(0,0)
262
263 # RTTI and Generic Functions
264 Save
265   char* filename
266   generic structPtr
267   char* name NULL
268   char* comment NULL
269 Load generic
270   char* filename
271   CvMemStorage storage NULL
272   char* name NULL
273
274 # Accessing Elements and sub-Arrays
275 GetRow submat
276   CvArr arr
277   CvMat submat /J:arr,O,A
278   int row
279 GetRows submat
280   CvArr arr
281   CvMat submat /J:arr,O,A
282   int startRow
283   int endRow
284   int deltaRow 1
285 GetCol submat
286   CvArr arr
287   CvMat submat /J:arr,O,A
288   int col
289 GetCols submat
290   CvArr arr
291   CvMat submat /J:arr,O,A
292   int startCol
293   int endCol
294 GetDiag submat
295   CvArr arr
296   CvMat submat /J:arr,O,A
297   int diag 0
298 GetSubRect submat
299   CvArr arr
300   CvMat submat /J:arr,O,A
301   CvRect rect
302 GetSize CvSize
303   CvArr arr
304 GetElemType int
305   CvArr arr
306
307 # Copying and Filling
308 Copy
309   CvArr src
310   CvArr dst
311   CvArr mask NULL
312 Set
313   CvArr arr
314   CvScalar value
315   CvArr mask NULL
316 SetZero
317   CvArr arr
318 Zero
319   CvArr arr
320 SetIdentity
321   CvArr mat
322   CvScalar value cvRealScalar(1)
323 Range
324   CvArr mat
325   double start
326   double end
327
328 # Transforms and Permutations
329 # Reshape, ReshapeND - requires special data refcount code
330 Repeat
331   CvArr src
332   CvArr dst
333 Flip
334   CvArr src
335   CvArr dst NULL
336   int flipMode 0
337 Split
338   CvArr src
339   CvArr dst0
340   CvArr dst1
341   CvArr dst2
342   CvArr dst3
343 CvtPixToPlane
344   CvArr src
345   CvArr dst0
346   CvArr dst1
347   CvArr dst2
348   CvArr dst3
349 Merge
350   CvArr src0
351   CvArr src1
352   CvArr src2
353   CvArr src3
354   CvArr dst
355 MixChannels
356   cvarr_count src /K
357   cvarr_count dst
358   intpair fromTo 
359 RandShuffle
360   CvArr mat
361   CvRNG* rng
362   double iter_factor 1.0
363 Sort
364   CvArr src
365   CvArr dst
366   CvArr idxmat
367   int flags 0
368
369 # Arithmetic, Logic and Comparison
370 LUT
371   CvArr src
372   CvArr dst
373   CvArr lut
374 ConvertScale
375   CvArr src
376   CvArr dst
377   double scale 1.0
378   double shift 0.0
379 CvtScale
380   CvArr src
381   CvArr dst
382   double scale 1.0
383   double shift 0.0
384 Scale
385   CvArr src
386   CvArr dst
387   double scale 1.0
388   double shift 0.0
389 Convert
390   CvArr src
391   CvArr dst
392 ConvertScaleAbs
393   CvArr src
394   CvArr dst
395   double scale 1.0
396   double shift 0.0
397 Add
398   CvArr src1
399   CvArr src2
400   CvArr dst
401   CvArr mask NULL
402 AddS
403   CvArr src
404   CvScalar value
405   CvArr dst
406   CvArr mask NULL
407 AddWeighted
408   CvArr src1
409   double alpha
410   CvArr src2
411   double beta
412   double gamma
413   CvArr dst
414 Sub
415   CvArr src1
416   CvArr src2
417   CvArr dst
418   CvArr mask NULL
419 SubS
420   CvArr src
421   CvScalar value
422   CvArr dst
423   CvArr mask NULL
424 SubRS
425   CvArr src
426   CvScalar value
427   CvArr dst
428   CvArr mask NULL
429 Mul
430   CvArr src1
431   CvArr src2
432   CvArr dst
433   double scale 1.0
434 Div
435   CvArr src1
436   CvArr src2
437   CvArr dst
438   double scale 1.0
439 And
440   CvArr src1
441   CvArr src2
442   CvArr dst
443   CvArr mask NULL
444 AndS
445   CvArr src
446   CvScalar value
447   CvArr dst
448   CvArr mask NULL
449 Or
450   CvArr src1
451   CvArr src2
452   CvArr dst
453   CvArr mask NULL
454 OrS
455   CvArr src
456   CvScalar value
457   CvArr dst
458   CvArr mask NULL
459 Xor
460   CvArr src1
461   CvArr src2
462   CvArr dst
463   CvArr mask NULL
464 XorS
465   CvArr src
466   CvScalar value
467   CvArr dst
468   CvArr mask NULL
469 Not
470   CvArr src
471   CvArr dst
472 Cmp
473   CvArr src1
474   CvArr src2
475   CvArr dst
476   int cmpOp
477 CmpS
478   CvArr src
479   double value
480   CvArr dst
481   int cmpOp
482 InRange
483   CvArr src
484   CvArr lower
485   CvArr upper
486   CvArr dst
487 InRangeS
488   CvArr src
489   CvScalar lower
490   CvScalar upper
491   CvArr dst
492 Max
493   CvArr src1
494   CvArr src2
495   CvArr dst
496 MaxS
497   CvArr src
498   double value
499   CvArr dst
500 Min
501   CvArr src1
502   CvArr src2
503   CvArr dst
504 MinS
505   CvArr src
506   double value
507   CvArr dst
508 AbsDiff
509   CvArr src1
510   CvArr src2
511   CvArr dst
512 AbsDiffS
513   CvArr src
514   CvArr dst
515   CvScalar value
516 Abs
517   CvArr src
518   CvArr dst
519
520 # Statistics
521 CountNonZero int
522   CvArr arr
523 Sum CvScalar
524   CvArr arr
525 Avg CvScalar
526   CvArr arr
527   CvArr mask NULL
528 AvgSdv mean,stdDev
529   CvArr arr
530   CvScalar mean /O
531   CvScalar stdDev /O
532   CvArr mask NULL
533 MinMaxLoc minVal,maxVal,minLoc,maxLoc
534   CvArr arr
535   double minVal /O
536   double maxVal /O
537   CvPoint minLoc /O
538   CvPoint maxLoc /O
539   CvArr mask NULL
540 Norm double
541   CvArr arr1
542   CvArr arr2
543   int normType CV_L2
544   CvArr mask NULL
545 Reduce
546   CvArr src
547   CvArr dst
548   int dim -1
549   int op CV_REDUCE_SUM
550
551 # Linear Algebra
552 DotProduct double
553   CvArr src1
554   CvArr src2
555 Normalize
556   CvArr src
557   CvArr dst
558   double a 1.0
559   double b 0.0
560   int norm_type CV_L2
561   CvArr mask NULL
562 CrossProduct
563   CvArr src1
564   CvArr src2
565   CvArr dst
566 ScaleAdd
567   CvArr src1
568   CvScalar scale
569   CvArr src2
570   CvArr dst
571 GEMM
572   CvArr src1
573   CvArr src2
574   double alpha
575   CvArr src3
576   double beta
577   CvArr dst
578   int tABC 0
579 MatMulAdd
580   CvArr src1
581   CvArr src2
582   CvArr src3
583   CvArr dst
584 MatMul
585   CvArr src1
586   CvArr src2
587   CvArr dst
588 Transform
589   CvArr src
590   CvArr dst
591   CvMat transmat
592   CvMat shiftvec NULL
593 PerspectiveTransform
594   CvArr src
595   CvArr dst
596   CvMat mat
597 MulTransposed
598   CvArr src
599   CvArr dst
600   int order
601   CvArr delta NULL
602   double scale 1.0
603 Trace CvScalar
604   CvArr mat
605 Transpose
606   CvArr src
607   CvArr dst
608 Det double
609   CvArr mat
610 Invert double
611   CvArr src
612   CvArr dst
613   int method CV_LU
614 Solve
615   CvArr A
616   CvArr B
617   CvArr X
618   int method CV_LU
619 SVD
620   CvArr A
621   CvArr W
622   CvArr U NULL
623   CvArr V NULL
624   int flags 0
625 SVBkSb
626   CvArr W
627   CvArr U
628   CvArr V
629   CvArr B
630   CvArr X
631   int flags
632 EigenVV
633   CvArr mat
634   CvArr evects
635   CvArr evals
636   double eps
637   int lowindex 0
638   int highindex 0
639 CalcCovarMatrix
640   cvarr_count vects /K
641   CvArr covMat
642   CvArr avg
643   int flags
644 Mahalonobis
645   CvArr vec1
646   CvArr vec2
647   CvArr mat
648 CalcPCA
649   CvArr data
650   CvArr avg
651   CvArr eigenvalues
652   CvArr eigenvectors
653   int flags
654 ProjectPCA
655   CvArr data
656   CvArr avg
657   CvArr eigenvectors
658   CvArr result
659 BackProjectPCA
660   CvArr proj
661   CvArr avg
662   CvArr eigenvects
663   CvArr result
664
665 # Math Functions
666 Round int
667   double value
668 Floor int
669   double value
670 Ceil int
671   double value
672 Sqrt float
673   float value
674 InvSqrt float
675   float value
676 Cbrt float
677   float value
678 FastArctan float
679   float y
680   float x
681 IsNaN int
682   double value
683 IsInf int
684   double value
685 CartToPolar
686   CvArr x
687   CvArr y
688   CvArr magnitude
689   CvArr angle NULL
690   int angleInDegrees 0
691 PolarToCart
692   CvArr magnitude
693   CvArr angle
694   CvArr x
695   CvArr y
696   int angleInDegrees 0
697 Pow
698   CvArr src
699   CvArr dst
700   double power
701 Exp
702   CvArr src
703   CvArr dst
704 Log
705   CvArr src
706   CvArr dst
707 SolveCubic
708   CvMat coeffs
709   CvMat roots
710 SolvePoly
711   CvMat coeffs
712   CvMat roots
713   int maxiter 10
714   int fig 10
715   
716 # Random Number Generation
717 RNG CvRNG
718   int64 seed -1LL
719 RandArr
720   CvRNG* rng
721   CvArr arr
722   int distType
723   CvScalar param1
724   CvScalar param2
725 RandInt unsigned
726   CvRNG* rng
727 RandReal double
728   CvRNG* rng
729
730 # Discrete Transforms
731 DFT
732   CvArr src
733   CvArr dst
734   int flags
735   int nonzeroRows 0
736 GetOptimalDFTSize int
737   int size0
738 MulSpectrums
739   CvArr src1
740   CvArr src2
741   CvArr dst
742   int flags
743 DCT
744   CvArr src
745   CvArr dst
746   int flags
747
748 # Sequences
749 SeqRemove
750   CvSeq seq
751   int index
752 ClearSeq
753   CvSeq seq
754 CloneSeq
755   CvSeq seq
756   CvMemStorage storage
757 SeqRemoveSlice
758   CvSeq seq
759   CvSlice slice
760 SeqInvert
761   CvSeq seq
762
763 # Miscellaneous Functions
764 CheckArr int
765   CvArr arr
766   int flags 0
767   double min_val 0
768   double max_val 0
769 KMeans2
770   CvArr samples
771   int nclusters
772   CvArr labels
773   CvTermCriteria termcrit 
774
775 # Gradients, Edges, Corners and Features
776 Sobel
777   CvArr src
778   CvArr dst
779   int xorder
780   int yorder
781   int apertureSize 3
782 Laplace
783   CvArr src
784   CvArr dst
785   int apertureSize 3
786 Canny
787   CvArr image
788   CvArr edges
789   double threshold1
790   double threshold2
791   int aperture_size 3
792 PreCornerDetect
793   CvArr image
794   CvArr corners
795   int apertureSize 3
796 CornerEigenValsAndVecs
797   CvArr image
798   CvArr eigenvv
799   int blockSize
800   int aperture_size 3
801 CornerMinEigenVal
802   CvArr image
803   CvArr eigenval
804   int blockSize
805   int aperture_size 3
806 CornerHarris
807   CvArr image
808   CvArr harris_dst
809   int blockSize
810   int aperture_size 3
811   double k 0.04
812 FindCornerSubPix corners
813   CvArr image
814   CvPoint2D32fs corners
815   CvSize win
816   CvSize zero_zone
817   CvTermCriteria criteria
818 GoodFeaturesToTrack cornerCount
819   CvArr image
820   CvArr eigImage
821   CvArr tempImage
822   cvpoint2d32f_count cornerCount
823   double qualityLevel
824   double minDistance
825   CvArr mask NULL
826   int blockSize 3
827   int useHarris 0
828   double k 0.04
829 ExtractSURF keypoints,descriptors
830   CvArr image
831   CvArr mask
832   CvSeqOfCvSURFPoint* keypoints /O
833   CvSeqOfCvSURFDescriptor* descriptors /O
834   CvMemStorage storage
835   CvSURFParams params
836 GetStarKeypoints CvSeqOfCvStarKeypoint*
837   CvArr image
838   CvMemStorage storage
839   CvStarDetectorParams params cvStarDetectorParams()
840
841 # Sampling, Interpolation and Geometrical Transforms
842 GetRectSubPix
843   CvArr src
844   CvArr dst
845   CvPoint2D32f center
846 GetQuadrangleSubPix
847   CvArr src
848   CvArr dst
849   CvMat mapMatrix
850 Resize
851   CvArr src
852   CvArr dst
853   int interpolation CV_INTER_LINEAR
854 WarpAffine
855   CvArr src
856   CvArr dst
857   CvMat mapMatrix
858   int flags CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS
859   CvScalar fillval cvScalarAll(0)
860 GetAffineTransform
861   CvPoint2D32f* src
862   CvPoint2D32f* dst
863   CvMat mapMatrix
864 GetRotationMatrix2D
865   CvPoint2D32f center
866   double angle
867   double scale
868   CvMat mapMatrix
869 WarpPerspective
870   CvArr src
871   CvArr dst
872   CvMat mapMatrix
873   int flags CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS
874   CvScalar fillval cvScalarAll(0)
875 GetPerspectiveTransform
876   CvPoint2D32f* src
877   CvPoint2D32f* dst
878   CvMat mapMatrix
879 Remap
880   CvArr src
881   CvArr dst
882   CvArr mapx
883   CvArr mapy
884   int flags CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS
885   CvScalar fillval cvScalarAll(0)
886 ConvertMaps
887   CvArr mapx
888   CvArr mapy
889   CvArr mapxy
890   CvArr mapalpha
891 LogPolar
892   CvArr src
893   CvArr dst
894   CvPoint2D32f center
895   double M
896   int flags CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS
897
898 # Morphological Operations
899 CreateStructuringElementEx IplConvKernel*
900   int cols
901   int rows
902   int anchorX
903   int anchorY
904   int shape
905   ints values {NULL,0}
906 Erode
907   CvArr src
908   CvArr dst
909   IplConvKernel* element NULL
910   int iterations 1
911 Dilate
912   CvArr src
913   CvArr dst
914   IplConvKernel* element NULL
915   int iterations 1
916 MorphologyEx
917   CvArr src
918   CvArr dst
919   CvArr temp
920   IplConvKernel* element
921   int operation
922   int iterations 1
923
924 # Filters and Color Conversion
925 Smooth
926   CvArr src
927   CvArr dst
928   int smoothtype CV_GAUSSIAN
929   int param1 3
930   int param2 0
931   double param3 0
932   double param4 0
933 Filter2D
934   CvArr src
935   CvArr dst
936   CvMat kernel
937   CvPoint anchor cvPoint(-1,-1)
938 CopyMakeBorder
939   CvArr src
940   CvArr dst
941   CvPoint offset
942   int bordertype
943   CvScalar value cvScalarAll(0)
944 Integral
945   CvArr image
946   CvArr sum
947   CvArr sqsum NULL
948   CvArr tiltedSum NULL
949 CvtColor
950   CvArr src
951   CvArr dst
952   int code
953 Threshold
954   CvArr src
955   CvArr dst
956   double threshold
957   double maxValue
958   int thresholdType
959 AdaptiveThreshold
960   CvArr src
961   CvArr dst
962   double maxValue
963   int adaptive_method CV_ADAPTIVE_THRESH_MEAN_C /ch_adaptive_method
964   int thresholdType CV_THRESH_BINARY /ch_threshold_type
965   int blockSize 3
966   double param1 5
967
968 # Pyramids and the Applications
969 PyrDown
970   CvArr src
971   CvArr dst
972   int filter CV_GAUSSIAN_5x5
973 PyrUp
974   CvArr src
975   CvArr dst
976   int filter CV_GAUSSIAN_5x5
977 PyrSegmentation comp
978   IplImage src
979   IplImage dst
980   CvMemStorage storage
981   CvSeq* comp /O
982   int level
983   double threshold1
984   double threshold2
985 PyrMeanShiftFiltering
986   CvArr src
987   CvArr dst
988   double sp
989   double sr
990   int max_level 1
991   CvTermCriteria termcrit cvTermCriteria(CV_TERMCRIT_ITER+CV_TERMCRIT_EPS,5,1)
992
993 # Image Segmentation, Connected Components and Contour Retrieval
994 FloodFill comp
995   CvArr image
996   CvPoint seed_point
997   CvScalar new_val
998   CvScalar lo_diff cvScalarAll(0)
999   CvScalar up_diff cvScalarAll(0)
1000   CvConnectedComp comp /O
1001   int flags 4
1002   CvArr mask NULL
1003 Watershed
1004   CvArr image
1005   CvArr markers
1006
1007 # Image and Contour Moments
1008 Moments moments
1009   cvarrseq arr
1010   CvMoments moments /O
1011   int binary 0
1012 GetSpatialMoment double
1013   CvMoments* moments
1014   int x_order
1015   int y_order
1016 GetCentralMoment double
1017   CvMoments* moments
1018   int x_order
1019   int y_order
1020 GetNormalizedCentralMoment double
1021   CvMoments* moments
1022   int x_order
1023   int y_order
1024
1025 # Special Image Transforms
1026 HoughLines2 CvSeq*
1027   CvArr image
1028   CvMemStorage storage
1029   int method
1030   double rho
1031   double theta
1032   int threshold
1033   double param1 0
1034   double param2 0
1035 HoughCircles
1036   CvArr image
1037   CvMat circle_storage
1038   int method
1039   double dp
1040   double min_dist
1041   double param1 100
1042   double param2 100
1043   int min_radius 0
1044   int max_radius 0
1045 DistTransform
1046   CvArr src
1047   CvArr dst
1048   int distance_type CV_DIST_L2
1049   int mask_size 3
1050   floats mask {NULL,0}
1051   CvArr labels NULL
1052 Inpaint
1053   CvArr src
1054   CvArr mask
1055   CvArr dst
1056   double inpaintRadius
1057   int flags
1058
1059 # Histograms
1060 ClearHist
1061   CvHistogram hist
1062 CalcArrHist
1063   CvArrs image
1064   CvHistogram hist
1065   int accumulate 0
1066   CvArr mask NULL
1067 CalcHist
1068   IplImages image
1069   CvHistogram hist
1070   int accumulate 0
1071   CvArr mask NULL
1072 NormalizeHist
1073   CvHistogram hist
1074   double factor
1075 ThreshHist
1076   CvHistogram hist
1077   double threshold
1078 CompareHist double
1079   CvHistogram hist1
1080   CvHistogram hist2
1081   int method
1082 # CopyHist
1083 CalcBackProject
1084   IplImages image
1085   CvArr back_project
1086   CvHistogram hist
1087 CalcArrBackProject
1088   CvArrs image
1089   CvArr back_project
1090   CvHistogram hist
1091 CalcBackProjectPatch
1092   IplImages images
1093   CvArr dst
1094   CvSize patch_size
1095   CvHistogram hist
1096   int method
1097   float factor
1098 CalcProbDensity
1099   CvHistogram hist1
1100   CvHistogram hist2
1101   CvHistogram dst_hist
1102   double scale 255
1103 EqualizeHist
1104   CvArr src
1105   CvArr dst
1106 QueryHistValue_1D double
1107   CvHistogram hist
1108   int idx0
1109 QueryHistValue_2D double
1110   CvHistogram hist
1111   int idx0
1112   int idx1
1113 QueryHistValue_3D double
1114   CvHistogram hist
1115   int idx0
1116   int idx1
1117   int idx2
1118 QueryHistValue_nD double
1119   CvHistogram hist
1120   ints idx
1121
1122 # Matching
1123 MatchTemplate
1124   CvArr image
1125   CvArr templ
1126   CvArr result
1127   int method
1128 MatchShapes
1129   CvSeq object1
1130   CvSeq object2
1131   int method
1132   double parameter 0
1133
1134 # Contour Processing Functions
1135 ApproxChains CvSeq*
1136   CvSeq src_seq
1137   CvMemStorage storage
1138   int method CV_CHAIN_APPROX_SIMPLE
1139   double parameter 0
1140   int minimal_perimeter 0
1141   int recursive 0
1142 BoundingRect CvRect
1143   cvarrseq points
1144   int update 0
1145 ContourArea double
1146   cvarrseq contour
1147   CvSlice slice CV_WHOLE_SEQ
1148 ArcLength double
1149   cvarrseq curve
1150   CvSlice slice CV_WHOLE_SEQ
1151   int isClosed -1
1152 CreateContourTree CvContourTree*
1153   CvSeq contour
1154   CvMemStorage storage
1155   double threshold
1156 ContourFromContourTree CvSeq*
1157   CvContourTree* tree
1158   CvMemStorage storage
1159   CvTermCriteria criteria
1160 MatchContourTrees double
1161   CvContourTree* tree1
1162   CvContourTree* tree2
1163   int method
1164   double threshold
1165
1166 # Computational Geometry
1167 MaxRect CvRect
1168   CvRect* rect1
1169   CvRect* rect2
1170 # TODO PointSeqFromMat
1171 BoxPoints points
1172   CvBox2D box
1173   CvPoint2D32f_4 points /O,A
1174 FitEllipse2 CvBox2D
1175   CvArr points
1176 ConvexHull2 CvSeq*
1177   cvarrseq points
1178   CvMemStorage storage
1179   int orientation CV_CLOCKWISE
1180   int return_points 0
1181 CheckContourConvexity int
1182   cvarrseq contour
1183 ConvexityDefects CvSeqOfCvConvexityDefect*
1184   cvarrseq contour
1185   CvSeq convexhull
1186   CvMemStorage storage
1187 PointPolygonTest double
1188   cvarrseq contour
1189   CvPoint2D32f pt
1190   int measure_dist
1191 MinAreaRect2 CvBox2D
1192   cvarrseq points
1193   CvMemStorage storage NULL
1194 MinEnclosingCircle int,center,radius
1195   cvarrseq points
1196   CvPoint2D32f center /O
1197   float radius /O
1198
1199 # Planar Subdivisions
1200
1201 Subdiv2DGetEdge CvSubdiv2DEdge
1202   CvSubdiv2DEdge edge
1203   CvNextEdgeType type
1204 Subdiv2DNextEdge CvSubdiv2DEdge
1205   CvSubdiv2DEdge edge
1206 Subdiv2DRotateEdge CvSubdiv2DEdge
1207   CvSubdiv2DEdge edge
1208   int rotate
1209 Subdiv2DEdgeOrg CvSubdiv2DPoint*
1210   CvSubdiv2DEdge edge
1211 Subdiv2DEdgeDst CvSubdiv2DPoint*
1212   CvSubdiv2DEdge edge
1213 CreateSubdivDelaunay2D CvSubdiv2D*
1214   CvRect rect
1215   CvMemStorage storage
1216 SubdivDelaunay2DInsert CvSubdiv2DPoint*
1217   CvSubdiv2D* subdiv
1218   CvPoint2D32f pt
1219 CalcSubdivVoronoi2D
1220   CvSubdiv2D* subdiv
1221 ClearSubdivVoronoi2D
1222   CvSubdiv2D* subdiv
1223 FindNearestPoint2D CvSubdiv2DPoint*
1224   CvSubdiv2D* subdiv
1225   CvPoint2D32f pt
1226
1227 # Object Detection
1228 HaarDetectObjects CvSeqOfCvAvgComp*
1229   CvArr image
1230   CvHaarClassifierCascade* cascade
1231   CvMemStorage storage
1232   double scale_factor 1.1   /ch_doubleAbove1
1233   int min_neighbors 3
1234   int flags 0
1235   CvSize min_size cvSize(0,0)
1236
1237 ComputeCorrespondEpilines
1238   CvMat points
1239   int whichImage
1240   CvMat F
1241   CvMat lines
1242 ConvertPointsHomogeneous
1243   CvMat src
1244   CvMat dst
1245 ProjectPoints2
1246   CvMat objectPoints
1247   CvMat rvec
1248   CvMat tvec
1249   CvMat cameraMatrix
1250   CvMat distCoeffs
1251   CvMat imagePoints
1252   CvMat dpdrot NULL
1253   CvMat dpdt NULL
1254   CvMat dpdf NULL
1255   CvMat dpdc NULL
1256   CvMat dpddist NULL
1257 ReprojectImageTo3D
1258   CvArr disparity
1259   CvArr _3dImage
1260   CvMat Q
1261   int handleMissingValues 0
1262 RQDecomp3x3 eulerAngles
1263   CvMat M
1264   CvMat R
1265   CvMat Q
1266   CvMat Qx NULL
1267   CvMat Qy NULL
1268   CvMat Qz NULL
1269   CvPoint3D64f eulerAngles /O
1270 FindHomography H
1271   CvMat srcPoints
1272   CvMat dstPoints
1273   CvMat H
1274   int method 0
1275   double ransacReprojThreshold 0.0
1276   CvMat status NULL
1277 CreateStereoBMState CvStereoBMState*
1278   int preset CV_STEREO_BM_BASIC
1279   int numberOfDisparities 0
1280 CreateStereoGCState CvStereoGCState*
1281   int numberOfDisparities
1282   int maxIters
1283 FindStereoCorrespondenceBM
1284   CvArr left
1285   CvArr right
1286   CvArr disparity
1287   CvStereoBMState* state
1288 FindStereoCorrespondenceGC
1289   CvArr left
1290   CvArr right
1291   CvArr dispLeft
1292   CvArr dispRight
1293   CvStereoGCState* state
1294   int useDisparityGuess 0
1295 #CalcImageHomography 
1296 #  floats line
1297 #  CvPoint3D32f center
1298 #  floats intrinsic
1299 #  floats intrinsic
1300 CalibrateCamera2 
1301   CvMat objectPoints
1302   CvMat imagePoints
1303   CvMat pointCounts
1304   CvSize imageSize
1305   CvMat cameraMatrix
1306   CvMat distCoeffs
1307   CvMat rvecs
1308   CvMat tvecs
1309   int flags 0
1310 CalibrationMatrixValues fovx,fovy,focalLength,principalPoint,pixelAspectRatio
1311   CvMat calibMatr
1312   CvSize image_size
1313   double apertureWidth 0
1314   double apertureHeight 0
1315   double fovx /O
1316   double fovy /O
1317   double focalLength /O
1318   CvPoint2D64f principalPoint /O
1319   double pixelAspectRatio /O
1320 FindExtrinsicCameraParams2
1321   CvMat objectPoints
1322   CvMat imagePoints
1323   CvMat cameraMatrix
1324   CvMat distCoeffs
1325   CvMat rvec
1326   CvMat tvec
1327 FindFundamentalMat int
1328   CvMat points1
1329   CvMat points2
1330   CvMat fundamentalMatrix
1331   int method CV_FM_RANSAC
1332   double param1 1.
1333   double param2 0.99
1334   CvMat status NULL
1335 StereoCalibrate
1336   CvMat objectPoints
1337   CvMat imagePoints1
1338   CvMat imagePoints2
1339   CvMat pointCounts
1340   CvMat cameraMatrix1
1341   CvMat distCoeffs1
1342   CvMat cameraMatrix2
1343   CvMat distCoeffs2
1344   CvSize imageSize
1345   CvMat R
1346   CvMat T
1347   CvMat E NULL
1348   CvMat F NULL
1349   CvTermCriteria term_crit cvTermCriteria(CV_TERMCRIT_ITER+CV_TERMCRIT_EPS,30,1e-6)
1350   int flags CV_CALIB_FIX_INTRINSIC
1351 GetOptimalNewCameraMatrix
1352   CvMat cameraMatrix
1353   CvMat distCoeffs
1354   CvSize imageSize
1355   double alpha
1356   CvMat newCameraMatrix
1357   CvSize newImageSize cvSize(0,0)
1358   CvRect* validPixROI NULL
1359 InitIntrinsicParams2D
1360   CvMat objectPoints
1361   CvMat imagePoints
1362   CvMat npoints
1363   CvSize imageSize
1364   CvMat cameraMatrix
1365   double aspectRatio 1.
1366 StereoRectify roi1,roi2
1367   CvMat cameraMatrix1
1368   CvMat cameraMatrix2
1369   CvMat distCoeffs1
1370   CvMat distCoeffs2
1371   CvSize imageSize
1372   CvMat R
1373   CvMat T
1374   CvMat R1
1375   CvMat R2
1376   CvMat P1
1377   CvMat P2
1378   CvMat Q NULL
1379   int flags CV_CALIB_ZERO_DISPARITY
1380   double alpha -1
1381   CvSize newImageSize cvSize(0,0)
1382   CvRect roi1 /O
1383   CvRect roi2 /O
1384 StereoRectifyUncalibrated
1385   CvMat points1
1386   CvMat points2
1387   CvMat F
1388   CvSize imageSize
1389   CvMat H1
1390   CvMat H2
1391   double threshold 5
1392 Rodrigues2
1393   CvMat src
1394   CvMat dst
1395   CvMat jacobian 0
1396 Undistort2
1397   CvArr src
1398   CvArr dst
1399   CvMat cameraMatrix
1400   CvMat distCoeffs
1401 InitUndistortMap
1402   CvMat cameraMatrix
1403   CvMat distCoeffs
1404   CvArr map1
1405   CvArr map2
1406 InitUndistortRectifyMap
1407   CvMat cameraMatrix
1408   CvMat distCoeffs
1409   CvMat R
1410   CvMat newCameraMatrix
1411   CvArr map1
1412   CvArr map2
1413 UndistortPoints
1414   CvMat src
1415   CvMat dst
1416   CvMat cameraMatrix
1417   CvMat distCoeffs
1418   CvMat R NULL
1419   CvMat P NULL
1420 DecomposeProjectionMatrix eulerAngles
1421   CvMat projMatrix
1422   CvMat cameraMatrix
1423   CvMat rotMatrix
1424   CvMat transVect
1425   CvMat rotMatrX NULL
1426   CvMat rotMatrY NULL
1427   CvMat rotMatrZ NULL
1428   CvPoint3D64f eulerAngles /O
1429 DrawChessboardCorners
1430   CvArr image
1431   CvSize patternSize
1432   CvPoint2D32fs corners
1433   int patternWasFound
1434
1435 CreatePOSITObject CvPOSITObject*
1436   CvPoint3D32fs points
1437 POSIT rotationMatrix,translation_vector
1438   CvPOSITObject* posit_object
1439   CvPoint2D32f* imagePoints
1440   double focal_length
1441   CvTermCriteria criteria
1442   CvMatr32f_i rotationMatrix /O,A
1443   CvVect32f_i translation_vector /O,A
1444
1445 EstimateRigidTransform
1446   CvArr A
1447   CvArr B
1448   CvMat M
1449   int full_affine
1450
1451 # Accumulation of Background Statistics
1452 Acc
1453   CvArr image
1454   CvArr sum
1455   CvArr mask NULL
1456 SquareAcc
1457   CvArr image
1458   CvArr sqsum
1459   CvArr mask NULL
1460 MultiplyAcc
1461   CvArr image1
1462   CvArr image2
1463   CvArr acc
1464   CvArr mask NULL
1465 RunningAvg
1466   CvArr image
1467   CvArr acc
1468   double alpha
1469   CvArr mask NULL
1470
1471 # Motion Templates
1472 UpdateMotionHistory
1473   CvArr silhouette
1474   CvArr mhi
1475   double timestamp
1476   double duration
1477 CalcMotionGradient
1478   CvArr mhi          /ch_matF
1479   CvArr mask
1480   CvArr orientation  /ch_matF
1481   double delta1
1482   double delta2
1483   int apertureSize 3 /ch_aperture
1484 CalcGlobalOrientation double
1485   CvArr orientation
1486   CvArr mask
1487   CvArr mhi
1488   double timestamp
1489   double duration
1490 SegmentMotion CvSeq*
1491   CvArr mhi
1492   CvArr seg_mask
1493   CvMemStorage storage
1494   double timestamp
1495   double seg_thresh
1496
1497 # Object Tracking
1498 MeanShift comp
1499   CvArr prob_image
1500   CvRect window
1501   CvTermCriteria criteria
1502   CvConnectedComp comp /O
1503 CamShift int,comp,box
1504   CvArr prob_image
1505   CvRect window
1506   CvTermCriteria criteria
1507   CvConnectedComp comp /O
1508   CvBox2D box /O
1509 CreateKalman CvKalman*
1510   int dynam_params
1511   int measure_params
1512   int control_params 0
1513 KalmanCorrect ROCvMat*
1514   CvKalman* kalman
1515   CvMat measurement
1516 KalmanPredict ROCvMat*
1517   CvKalman* kalman
1518   CvMat control NULL
1519 SnakeImage
1520   IplImage image
1521   CvPoints points
1522   floats alpha
1523   floats beta
1524   floats gamma
1525   int coeff_usage
1526   CvSize win
1527   CvTermCriteria criteria
1528   int calc_gradient 1
1529
1530 # Optical Flow
1531 CalcOpticalFlowLK
1532   CvArr prev
1533   CvArr curr
1534   CvSize winSize
1535   CvArr velx
1536   CvArr vely
1537 CalcOpticalFlowBM
1538   CvArr prev    /ch_image8
1539   CvArr curr    /ch_image8
1540   CvSize blockSize
1541   CvSize shiftSize
1542   CvSize max_range
1543   int usePrevious
1544   CvArr velx        /ch_vel
1545   CvArr vely        /ch_vel
1546 CalcOpticalFlowHS
1547   CvArr prev    /ch_image8
1548   CvArr curr    /ch_image8
1549   int usePrevious
1550   CvArr velx        /ch_vel_64
1551   CvArr vely        /ch_vel_64
1552   double lambda
1553   CvTermCriteria criteria
1554 CalcOpticalFlowFarneback
1555   CvArr prev /ch_image8
1556   CvArr curr /ch_image8
1557   CvArr flow
1558   double pyr_scale 0.5
1559   int levels 3
1560   int winsize 15
1561   int iterations 3
1562   int poly_n 7
1563   double poly_sigma 1.5
1564   int flags 0
1565
1566 # Highgui
1567 NamedWindow
1568   char* name
1569   int flags CV_WINDOW_AUTOSIZE
1570 DestroyWindow
1571   char* name
1572 DestroyAllWindows
1573 ResizeWindow
1574   char* name
1575   int width
1576   int height
1577 MoveWindow
1578   char* name
1579   int x
1580   int y
1581 ShowImage
1582   char* name
1583   CvArr image
1584 GetTrackbarPos
1585   char* trackbarName
1586   char* windowName
1587 SetTrackbarPos
1588   char* trackbarName
1589   char* windowName
1590   int pos
1591 #WaitKey int
1592 #  int delay 0
1593 SaveImage
1594   char* filename
1595   CvArr image
1596 CaptureFromFile CvCapture*
1597   char* filename
1598 CreateFileCapture CvCapture*
1599   char* filename
1600 CaptureFromCAM CvCapture*
1601   int index
1602 CreateCameraCapture CvCapture*
1603   int index
1604 GrabFrame int
1605   CvCapture* capture
1606 RetrieveFrame ROIplImage*
1607   CvCapture* capture
1608 QueryFrame ROIplImage*
1609   CvCapture* capture
1610 GetCaptureProperty double
1611   CvCapture* capture
1612   int property_id
1613 SetCaptureProperty int
1614   CvCapture* capture
1615   int property_id
1616   double value
1617 CreateVideoWriter CvVideoWriter*
1618   char* filename
1619   int fourcc
1620   double fps
1621   CvSize frame_size
1622   int is_color 1
1623 WriteFrame int
1624   CvVideoWriter* writer
1625   IplImage image
1626 EncodeImage CvMat*
1627   char* ext
1628   CvArr image
1629   ints0 params {&zero,1}
1630 DecodeImage IplImage*
1631   CvMat buf
1632   int iscolor CV_LOAD_IMAGE_COLOR
1633 DecodeImageM CvMat*
1634   CvMat buf
1635   int iscolor CV_LOAD_IMAGE_COLOR
1636 StartWindowThread
1637
1638 GetTickCount int64
1639 GetTickFrequency int64
1640
1641 # cvaux stuff
1642 HOGDetectMultiScale CvSeq*
1643   CvArr image
1644   CvMemStorage storage
1645   CvArr svm_classifier NULL
1646   CvSize win_stride cvSize(0,0)
1647   double hit_threshold 0
1648   double scale 1.05
1649   int group_threshold 2
1650   CvSize padding cvSize(0,0)
1651   CvSize win_size cvSize(64,128)
1652   CvSize block_size cvSize(16,16)
1653   CvSize block_stride cvSize(8,8)
1654   CvSize cell_size cvSize(8,8)
1655   int nbins 9
1656   int gammaCorrection 1
1657
1658 # These functions are handwritten in cv.cpp; they appear here as 'doconly' declarations
1659 # so that their documentation can be auto-generated
1660 ApproxPoly  /doconly
1661   cvarrseq src_seq
1662   CvMemStorage storage
1663   int method
1664   double parameter 0.0
1665   int parameter2 0
1666 CalcEMD2  /doconly
1667   CvArr signature1
1668   CvArr signature2
1669   int distance_type
1670   PyCallableObject* distance_func NULL
1671   CvArr cost_matrix NULL
1672   CvArr flow NULL
1673   float lower_bound 0.0
1674   PyObject* userdata NULL
1675 CalcOpticalFlowPyrLK currFeatures,status,track_error /doconly
1676   CvArr prev
1677   CvArr curr
1678   CvArr prevPyr
1679   CvArr currPyr
1680   CvPoint2D32f* prevFeatures
1681   CvSize winSize
1682   int level
1683   CvTermCriteria criteria
1684   int flags
1685   CvPoint2D32f* guesses
1686   CvPoint2D32f currFeatures /O
1687   char status /O
1688   float track_error /O
1689 ClipLine point1,point2 /doconly
1690   CvSize imgSize
1691   CvPoint pt1
1692   CvPoint pt2
1693 CreateData /doconly
1694   CvArr arr
1695 CreateHist /doconly
1696   ints dims
1697   int type
1698   ranges ranges None
1699   int uniform 1
1700 CreateImageHeader /doconly
1701   int size
1702   int depth
1703   int channels
1704 CreateImage /doconly
1705   int size
1706   int depth
1707   int channels
1708 CreateMatHeader /doconly
1709   int rows
1710   int cols
1711   int type
1712 CreateMat /doconly
1713   int rows
1714   int cols
1715   int type
1716 CreateMatNDHeader /doconly
1717   ints dims
1718   int type
1719 CreateMatND /doconly
1720   ints dims
1721   int type
1722 CreateMemStorage /doconly
1723   int blockSize
1724 CreateTrackbar /doconly
1725   char* trackbarName
1726   char* windowName
1727   int value
1728   int count
1729   PyCallableObject* onChange
1730 FindChessboardCorners corners /doconly
1731   CvArr image
1732   CvSize patternSize
1733   CvPoint2D32fs corners /O
1734   int flags CV_CALIB_CB_ADAPTIVE_THRESH
1735 FindContours /doconly
1736   CvArr image
1737   CvMemStorage storage
1738   int mode CV_RETR_LIST
1739   int method CV_CHAIN_APPROX_SIMPLE
1740   CvPoint offset (0,0)
1741 FitLine line /doconly
1742   CvArr points
1743   int dist_type
1744   double param
1745   double reps
1746   double aeps
1747   PyObject* line /O
1748 GetDims /doconly
1749   CvArr arr
1750 GetHuMoments hu /doconly
1751   CvMoments moments
1752   PyObject* hu /O
1753 GetImage /doconly
1754   CvMat arr
1755 GetMat /doconly
1756   IplImage arr
1757   int allowND 0
1758 GetMinMaxHistValue min_value,max_value,min_idx,max_idx /doconly
1759   CvHistogram hist
1760   CvScalar min_value /O
1761   CvScalar max_value /O
1762   ints min_idx /O
1763   ints max_idx /O
1764 InitLineIterator line_iterator /doconly
1765   CvArr image
1766   CvPoint pt1
1767   CvPoint pt2
1768   iter line_iterator /O
1769   int connectivity 8
1770   int left_to_right 0
1771 LoadImageM /doconly
1772   char* filename
1773   int iscolor CV_LOAD_IMAGE_COLOR
1774 LoadImage /doconly
1775   char* filename
1776   int iscolor CV_LOAD_IMAGE_COLOR
1777 ReshapeMatND /doconly
1778   CvMat arr
1779   int newCn
1780   ints newDims
1781 Reshape /doconly
1782   CvArr arr
1783   int newCn
1784   int newRows
1785 SetData /doconly
1786   CvArr arr
1787   PyObject* data
1788   int step
1789 SetMouseCallback /doconly
1790   char* windowName
1791   PyCallableObject* onMouse
1792   PyObject* param None
1793 Subdiv2DLocate loc,where /doconly
1794   CvSubdiv2D* subdiv
1795   CvPoint2D32f pt
1796   int loc /O
1797   edgeorpoint where /O
1798 WaitKey /doconly
1799   int delay 0