Update the trunk to the OpenCV's CVS (2008-07-14)
[opencv] / interfaces / swig / filtered / constants.h
1 #define CV_AUTOSTEP  0x7fffffff
2
3 #define cvGetSubArr cvGetSubRect
4
5 #define CV_MAX_ARR 10
6
7 #define CV_NO_DEPTH_CHECK     1
8
9 #define CV_NO_CN_CHECK        2
10
11 #define CV_NO_SIZE_CHECK      4
12
13 #define cvZero  cvSetZero
14
15 #define cvCvtScale cvConvertScale
16
17 #define cvScale  cvConvertScale
18
19 #define cvCvtScaleAbs  cvConvertScaleAbs
20
21 #define CV_CMP_EQ   0
22
23 #define CV_CMP_GT   1
24
25 #define CV_CMP_GE   2
26
27 #define CV_CMP_LT   3
28
29 #define CV_CMP_LE   4
30
31 #define CV_CMP_NE   5
32
33 #define  CV_CHECK_RANGE    1
34
35 #define  CV_CHECK_QUIET    2
36
37 #define cvCheckArray cvCheckArr
38
39 #define CV_RAND_UNI      0
40
41 #define CV_RAND_NORMAL   1
42
43 #define CV_GEMM_A_T 1
44
45 #define CV_GEMM_B_T 2
46
47 #define CV_GEMM_C_T 4
48
49 #define cvMatMulAddEx cvGEMM
50
51 #define cvMatMulAddS cvTransform
52
53 #define cvT cvTranspose
54
55 #define cvMirror cvFlip
56
57 #define CV_SVD_MODIFY_A   1
58
59 #define CV_SVD_U_T        2
60
61 #define CV_SVD_V_T        4
62
63 #define CV_LU  0
64
65 #define CV_SVD 1
66
67 #define CV_SVD_SYM 2
68
69 #define cvInv cvInvert
70
71 #define CV_COVAR_SCRAMBLED 0
72
73 #define CV_COVAR_NORMAL    1
74
75 #define CV_COVAR_USE_AVG   2
76
77 #define CV_COVAR_SCALE     4
78
79 #define CV_COVAR_ROWS      8
80
81 #define CV_COVAR_COLS     16
82
83 #define CV_PCA_DATA_AS_ROW 0
84
85 #define CV_PCA_DATA_AS_COL 1
86
87 #define CV_PCA_USE_AVG 2
88
89 #define cvMahalonobis  cvMahalanobis
90
91 #define CV_C            1
92
93 #define CV_L1           2
94
95 #define CV_L2           4
96
97 #define CV_NORM_MASK    7
98
99 #define CV_RELATIVE     8
100
101 #define CV_DIFF         16
102
103 #define CV_MINMAX       32
104
105 #define CV_DIFF_C       (CV_DIFF | CV_C)
106
107 #define CV_DIFF_L1      (CV_DIFF | CV_L1)
108
109 #define CV_DIFF_L2      (CV_DIFF | CV_L2)
110
111 #define CV_RELATIVE_C   (CV_RELATIVE | CV_C)
112
113 #define CV_RELATIVE_L1  (CV_RELATIVE | CV_L1)
114
115 #define CV_RELATIVE_L2  (CV_RELATIVE | CV_L2)
116
117 #define CV_REDUCE_SUM 0
118
119 #define CV_REDUCE_AVG 1
120
121 #define CV_REDUCE_MAX 2
122
123 #define CV_REDUCE_MIN 3
124
125 #define CV_DXT_FORWARD  0
126
127 #define CV_DXT_INVERSE  1
128
129 #define CV_DXT_SCALE    2 
130
131 #define CV_DXT_INV_SCALE (CV_DXT_INVERSE + CV_DXT_SCALE)
132
133 #define CV_DXT_INVERSE_SCALE CV_DXT_INV_SCALE
134
135 #define CV_DXT_ROWS     4 
136
137 #define CV_DXT_MUL_CONJ 8 
138
139 #define cvFFT cvDFT
140
141 #define CV_FRONT 1
142
143 #define CV_BACK 0
144
145 #define cvGraphFindEdge cvFindGraphEdge
146
147 #define cvGraphFindEdgeByPtr cvFindGraphEdgeByPtr
148
149 #define  CV_GRAPH_VERTEX        1
150
151 #define  CV_GRAPH_TREE_EDGE     2
152
153 #define  CV_GRAPH_BACK_EDGE     4
154
155 #define  CV_GRAPH_FORWARD_EDGE  8
156
157 #define  CV_GRAPH_CROSS_EDGE    16
158
159 #define  CV_GRAPH_ANY_EDGE      30
160
161 #define  CV_GRAPH_NEW_TREE      32
162
163 #define  CV_GRAPH_BACKTRACKING  64
164
165 #define  CV_GRAPH_OVER          -1
166
167 #define  CV_GRAPH_ALL_ITEMS    -1
168
169 #define  CV_GRAPH_ITEM_VISITED_FLAG  (1 << 30)
170
171 #define  CV_GRAPH_SEARCH_TREE_NODE_FLAG   (1 << 29)
172
173 #define  CV_GRAPH_FORWARD_EDGE_FLAG       (1 << 28)
174
175 #define CV_FILLED -1
176
177 #define CV_AA 16
178
179 #define cvDrawRect cvRectangle
180
181 #define cvDrawLine cvLine
182
183 #define cvDrawCircle cvCircle
184
185 #define cvDrawEllipse cvEllipse
186
187 #define cvDrawPolyLine cvPolyLine
188
189 #define CV_FONT_HERSHEY_SIMPLEX         0
190
191 #define CV_FONT_HERSHEY_PLAIN           1
192
193 #define CV_FONT_HERSHEY_DUPLEX          2
194
195 #define CV_FONT_HERSHEY_COMPLEX         3
196
197 #define CV_FONT_HERSHEY_TRIPLEX         4
198
199 #define CV_FONT_HERSHEY_COMPLEX_SMALL   5
200
201 #define CV_FONT_HERSHEY_SCRIPT_SIMPLEX  6
202
203 #define CV_FONT_HERSHEY_SCRIPT_COMPLEX  7
204
205 #define CV_FONT_ITALIC                 16
206
207 #define CV_FONT_VECTOR0    CV_FONT_HERSHEY_SIMPLEX
208
209 #define CV_ErrModeLeaf     0   
210
211 #define CV_ErrModeParent   1   
212
213 #define CV_ErrModeSilent   2   
214
215 #define CV_MAJOR_VERSION    1
216
217 #define CV_MINOR_VERSION    0
218
219 #define CV_SUBMINOR_VERSION 0
220
221 #define CV_VERSION          "1.0.0"
222
223 #define CV_PI   3.1415926535897932384626433832795
224
225 #define CV_LOG2 0.69314718055994530941723212145818
226
227 #define IPL_DEPTH_SIGN 0x80000000
228
229 #define IPL_DEPTH_1U     1
230
231 #define IPL_DEPTH_8U     8
232
233 #define IPL_DEPTH_16U   16
234
235 #define IPL_DEPTH_32F   32
236
237 #define IPL_DEPTH_8S  (IPL_DEPTH_SIGN| 8)
238
239 #define IPL_DEPTH_16S (IPL_DEPTH_SIGN|16)
240
241 #define IPL_DEPTH_32S (IPL_DEPTH_SIGN|32)
242
243 #define IPL_DATA_ORDER_PIXEL  0
244
245 #define IPL_DATA_ORDER_PLANE  1
246
247 #define IPL_ORIGIN_TL 0
248
249 #define IPL_ORIGIN_BL 1
250
251 #define IPL_ALIGN_4BYTES   4
252
253 #define IPL_ALIGN_8BYTES   8
254
255 #define IPL_ALIGN_16BYTES 16
256
257 #define IPL_ALIGN_32BYTES 32
258
259 #define IPL_ALIGN_DWORD   IPL_ALIGN_4BYTES
260
261 #define IPL_ALIGN_QWORD   IPL_ALIGN_8BYTES
262
263 #define IPL_BORDER_CONSTANT   0
264
265 #define IPL_BORDER_REPLICATE  1
266
267 #define IPL_BORDER_REFLECT    2
268
269 #define IPL_BORDER_WRAP       3
270
271 #define IPL_IMAGE_HEADER 1
272
273 #define IPL_IMAGE_DATA   2
274
275 #define IPL_IMAGE_ROI    4
276
277 #define IPL_BORDER_REFLECT_101    4
278
279 #define IPL_IMAGE_MAGIC_VAL  ((int)sizeof(IplImage))
280
281 #define CV_TYPE_NAME_IMAGE "opencv-image"
282
283 #define IPL_DEPTH_64F  64
284
285 #define CV_CN_MAX     64
286
287 #define CV_CN_SHIFT   3
288
289 #define CV_DEPTH_MAX  (1 << CV_CN_SHIFT)
290
291 #define CV_8U   0
292
293 #define CV_8S   1
294
295 #define CV_16U  2
296
297 #define CV_16S  3
298
299 #define CV_32S  4
300
301 #define CV_32F  5
302
303 #define CV_64F  6
304
305 #define CV_USRTYPE1 7
306
307 #define CV_MAKETYPE(depth,cn) ((depth) + (((cn)-1) << CV_CN_SHIFT))
308
309 #define CV_MAKE_TYPE CV_MAKETYPE
310
311 #define CV_8UC1 CV_MAKETYPE(CV_8U,1)
312
313 #define CV_8UC2 CV_MAKETYPE(CV_8U,2)
314
315 #define CV_8UC3 CV_MAKETYPE(CV_8U,3)
316
317 #define CV_8UC4 CV_MAKETYPE(CV_8U,4)
318
319 #define CV_8SC1 CV_MAKETYPE(CV_8S,1)
320
321 #define CV_8SC2 CV_MAKETYPE(CV_8S,2)
322
323 #define CV_8SC3 CV_MAKETYPE(CV_8S,3)
324
325 #define CV_8SC4 CV_MAKETYPE(CV_8S,4)
326
327 #define CV_16UC1 CV_MAKETYPE(CV_16U,1)
328
329 #define CV_16UC2 CV_MAKETYPE(CV_16U,2)
330
331 #define CV_16UC3 CV_MAKETYPE(CV_16U,3)
332
333 #define CV_16UC4 CV_MAKETYPE(CV_16U,4)
334
335 #define CV_16SC1 CV_MAKETYPE(CV_16S,1)
336
337 #define CV_16SC2 CV_MAKETYPE(CV_16S,2)
338
339 #define CV_16SC3 CV_MAKETYPE(CV_16S,3)
340
341 #define CV_16SC4 CV_MAKETYPE(CV_16S,4)
342
343 #define CV_32SC1 CV_MAKETYPE(CV_32S,1)
344
345 #define CV_32SC2 CV_MAKETYPE(CV_32S,2)
346
347 #define CV_32SC3 CV_MAKETYPE(CV_32S,3)
348
349 #define CV_32SC4 CV_MAKETYPE(CV_32S,4)
350
351 #define CV_32FC1 CV_MAKETYPE(CV_32F,1)
352
353 #define CV_32FC2 CV_MAKETYPE(CV_32F,2)
354
355 #define CV_32FC3 CV_MAKETYPE(CV_32F,3)
356
357 #define CV_32FC4 CV_MAKETYPE(CV_32F,4)
358
359 #define CV_64FC1 CV_MAKETYPE(CV_64F,1)
360
361 #define CV_64FC2 CV_MAKETYPE(CV_64F,2)
362
363 #define CV_64FC3 CV_MAKETYPE(CV_64F,3)
364
365 #define CV_64FC4 CV_MAKETYPE(CV_64F,4)
366
367 #define CV_AUTO_STEP  0x7fffffff
368
369 #define CV_WHOLE_ARR  cvSlice( 0, 0x3fffffff )
370
371 #define CV_MAT_CN_MASK          ((CV_CN_MAX - 1) << CV_CN_SHIFT)
372
373 #define CV_MAT_DEPTH_MASK       (CV_DEPTH_MAX - 1)
374
375 #define CV_MAT_TYPE_MASK        (CV_DEPTH_MAX*CV_CN_MAX - 1)
376
377 #define CV_MAT_CONT_FLAG_SHIFT  14
378
379 #define CV_MAT_CONT_FLAG        (1 << CV_MAT_CONT_FLAG_SHIFT)
380
381 #define CV_IS_CONT_MAT          CV_IS_MAT_CONT
382
383 #define CV_MAT_TEMP_FLAG_SHIFT  15
384
385 #define CV_MAT_TEMP_FLAG        (1 << CV_MAT_TEMP_FLAG_SHIFT)
386
387 #define CV_MAGIC_MASK       0xFFFF0000
388
389 #define CV_MAT_MAGIC_VAL    0x42420000
390
391 #define CV_TYPE_NAME_MAT    "opencv-matrix"
392
393 #define CV_MATND_MAGIC_VAL    0x42430000
394
395 #define CV_TYPE_NAME_MATND    "opencv-nd-matrix"
396
397 #define CV_MAX_DIM            32
398
399 #define CV_MAX_DIM_HEAP       (1 << 16)
400
401 #define CV_SPARSE_MAT_MAGIC_VAL    0x42440000
402
403 #define CV_TYPE_NAME_SPARSE_MAT    "opencv-sparse-matrix"
404
405 #define CV_HIST_MAGIC_VAL     0x42450000
406
407 #define CV_HIST_UNIFORM_FLAG  (1 << 10)
408
409 #define CV_HIST_RANGES_FLAG   (1 << 11)
410
411 #define CV_HIST_ARRAY         0
412
413 #define CV_HIST_SPARSE        1
414
415 #define CV_HIST_TREE          CV_HIST_SPARSE
416
417 #define CV_HIST_UNIFORM       1
418
419 #define CV_TERMCRIT_ITER    1
420
421 #define CV_TERMCRIT_NUMBER  CV_TERMCRIT_ITER
422
423 #define CV_TERMCRIT_EPS     2
424
425 #define CV_WHOLE_SEQ_END_INDEX 0x3fffffff
426
427 #define CV_WHOLE_SEQ  cvSlice(0, CV_WHOLE_SEQ_END_INDEX)
428
429 #define CV_STORAGE_MAGIC_VAL    0x42890000
430
431 #define CV_TYPE_NAME_SEQ             "opencv-sequence"
432
433 #define CV_TYPE_NAME_SEQ_TREE        "opencv-sequence-tree"
434
435 #define CV_SET_ELEM_IDX_MASK   ((1 << 26) - 1)
436
437 #define CV_SET_ELEM_FREE_FLAG  (1 << (sizeof(int)*8-1))
438
439 #define CV_TYPE_NAME_GRAPH "opencv-graph"
440
441 #define CV_SEQ_MAGIC_VAL             0x42990000
442
443 #define CV_SET_MAGIC_VAL             0x42980000
444
445 #define CV_SEQ_ELTYPE_BITS           9
446
447 #define CV_SEQ_ELTYPE_MASK           ((1 << CV_SEQ_ELTYPE_BITS) - 1)
448
449 #define CV_SEQ_ELTYPE_POINT          CV_32SC2  
450
451 #define CV_SEQ_ELTYPE_CODE           CV_8UC1   
452
453 #define CV_SEQ_ELTYPE_GENERIC        0
454
455 #define CV_SEQ_ELTYPE_PTR            CV_USRTYPE1
456
457 #define CV_SEQ_ELTYPE_PPOINT         CV_SEQ_ELTYPE_PTR  
458
459 #define CV_SEQ_ELTYPE_INDEX          CV_32SC1  
460
461 #define CV_SEQ_ELTYPE_GRAPH_EDGE     0  
462
463 #define CV_SEQ_ELTYPE_GRAPH_VERTEX   0  
464
465 #define CV_SEQ_ELTYPE_TRIAN_ATR      0  
466
467 #define CV_SEQ_ELTYPE_CONNECTED_COMP 0  
468
469 #define CV_SEQ_ELTYPE_POINT3D        CV_32FC3  
470
471 #define CV_SEQ_KIND_BITS        3
472
473 #define CV_SEQ_KIND_MASK        (((1 << CV_SEQ_KIND_BITS) - 1)<<CV_SEQ_ELTYPE_BITS)
474
475 #define CV_SEQ_KIND_GENERIC     (0 << CV_SEQ_ELTYPE_BITS)
476
477 #define CV_SEQ_KIND_CURVE       (1 << CV_SEQ_ELTYPE_BITS)
478
479 #define CV_SEQ_KIND_BIN_TREE    (2 << CV_SEQ_ELTYPE_BITS)
480
481 #define CV_SEQ_KIND_GRAPH       (3 << CV_SEQ_ELTYPE_BITS)
482
483 #define CV_SEQ_KIND_SUBDIV2D    (4 << CV_SEQ_ELTYPE_BITS)
484
485 #define CV_SEQ_FLAG_SHIFT       (CV_SEQ_KIND_BITS + CV_SEQ_ELTYPE_BITS)
486
487 #define CV_SEQ_FLAG_CLOSED     (1 << CV_SEQ_FLAG_SHIFT)
488
489 #define CV_SEQ_FLAG_SIMPLE     (2 << CV_SEQ_FLAG_SHIFT)
490
491 #define CV_SEQ_FLAG_CONVEX     (4 << CV_SEQ_FLAG_SHIFT)
492
493 #define CV_SEQ_FLAG_HOLE       (8 << CV_SEQ_FLAG_SHIFT)
494
495 #define CV_GRAPH_FLAG_ORIENTED (1 << CV_SEQ_FLAG_SHIFT)
496
497 #define CV_GRAPH               CV_SEQ_KIND_GRAPH
498
499 #define CV_ORIENTED_GRAPH      (CV_SEQ_KIND_GRAPH|CV_GRAPH_FLAG_ORIENTED)
500
501 #define CV_SEQ_POINT_SET       (CV_SEQ_KIND_GENERIC| CV_SEQ_ELTYPE_POINT)
502
503 #define CV_SEQ_POINT3D_SET     (CV_SEQ_KIND_GENERIC| CV_SEQ_ELTYPE_POINT3D)
504
505 #define CV_SEQ_POLYLINE        (CV_SEQ_KIND_CURVE  | CV_SEQ_ELTYPE_POINT)
506
507 #define CV_SEQ_POLYGON         (CV_SEQ_FLAG_CLOSED | CV_SEQ_POLYLINE )
508
509 #define CV_SEQ_CONTOUR         CV_SEQ_POLYGON
510
511 #define CV_SEQ_SIMPLE_POLYGON  (CV_SEQ_FLAG_SIMPLE | CV_SEQ_POLYGON  )
512
513 #define CV_SEQ_CHAIN           (CV_SEQ_KIND_CURVE  | CV_SEQ_ELTYPE_CODE)
514
515 #define CV_SEQ_CHAIN_CONTOUR   (CV_SEQ_FLAG_CLOSED | CV_SEQ_CHAIN)
516
517 #define CV_SEQ_POLYGON_TREE    (CV_SEQ_KIND_BIN_TREE  | CV_SEQ_ELTYPE_TRIAN_ATR)
518
519 #define CV_SEQ_CONNECTED_COMP  (CV_SEQ_KIND_GENERIC  | CV_SEQ_ELTYPE_CONNECTED_COMP)
520
521 #define CV_SEQ_INDEX           (CV_SEQ_KIND_GENERIC  | CV_SEQ_ELTYPE_INDEX)
522
523 #define CV_STORAGE_READ          0
524
525 #define CV_STORAGE_WRITE         1
526
527 #define CV_STORAGE_WRITE_TEXT    CV_STORAGE_WRITE
528
529 #define CV_STORAGE_WRITE_BINARY  CV_STORAGE_WRITE
530
531 #define CV_STORAGE_APPEND        2
532
533 #define CV_NODE_NONE        0
534
535 #define CV_NODE_INT         1
536
537 #define CV_NODE_INTEGER     CV_NODE_INT
538
539 #define CV_NODE_REAL        2
540
541 #define CV_NODE_FLOAT       CV_NODE_REAL
542
543 #define CV_NODE_STR         3
544
545 #define CV_NODE_STRING      CV_NODE_STR
546
547 #define CV_NODE_REF         4 
548
549 #define CV_NODE_SEQ         5
550
551 #define CV_NODE_MAP         6
552
553 #define CV_NODE_TYPE_MASK   7
554
555 #define CV_NODE_FLOW        8 
556
557 #define CV_NODE_USER        16
558
559 #define CV_NODE_EMPTY       32
560
561 #define CV_NODE_NAMED       64
562
563 #define CV_NODE_SEQ_SIMPLE 256
564
565 #define CV_StsOk                    0  
566
567 #define CV_StsBackTrace            -1  
568
569 #define CV_StsError                -2  
570
571 #define CV_StsInternal             -3  
572
573 #define CV_StsNoMem                -4  
574
575 #define CV_StsBadArg               -5  
576
577 #define CV_StsBadFunc              -6  
578
579 #define CV_StsNoConv               -7  
580
581 #define CV_StsAutoTrace            -8  
582
583 #define CV_HeaderIsNull            -9  
584
585 #define CV_BadImageSize            -10 
586
587 #define CV_BadOffset               -11 
588
589 #define CV_BadDataPtr              -12 
590
591 #define CV_BadStep                 -13 
592
593 #define CV_BadModelOrChSeq         -14 
594
595 #define CV_BadNumChannels          -15 
596
597 #define CV_BadNumChannel1U         -16 
598
599 #define CV_BadDepth                -17 
600
601 #define CV_BadAlphaChannel         -18 
602
603 #define CV_BadOrder                -19 
604
605 #define CV_BadOrigin               -20 
606
607 #define CV_BadAlign                -21 
608
609 #define CV_BadCallBack             -22 
610
611 #define CV_BadTileSize             -23 
612
613 #define CV_BadCOI                  -24 
614
615 #define CV_BadROISize              -25 
616
617 #define CV_MaskIsTiled             -26 
618
619 #define CV_StsNullPtr                -27 
620
621 #define CV_StsVecLengthErr           -28 
622
623 #define CV_StsFilterStructContentErr -29 
624
625 #define CV_StsKernelStructContentErr -30 
626
627 #define CV_StsFilterOffsetErr        -31 
628
629 #define CV_StsBadSize                -201 
630
631 #define CV_StsDivByZero              -202 
632
633 #define CV_StsInplaceNotSupported    -203 
634
635 #define CV_StsObjectNotFound         -204 
636
637 #define CV_StsUnmatchedFormats       -205 
638
639 #define CV_StsBadFlag                -206 
640
641 #define CV_StsBadPoint               -207 
642
643 #define CV_StsBadMask                -208 
644
645 #define CV_StsUnmatchedSizes         -209 
646
647 #define CV_StsUnsupportedFormat      -210 
648
649 #define CV_StsOutOfRange             -211 
650
651 #define CV_StsParseError             -212 
652
653 #define CV_StsNotImplemented         -213 
654
655 #define CV_StsBadMemBlock            -214 
656
657 #define CV_BLUR_NO_SCALE 0
658
659 #define CV_BLUR  1
660
661 #define CV_GAUSSIAN  2
662
663 #define CV_MEDIAN 3
664
665 #define CV_BILATERAL 4
666
667 #define CV_INPAINT_NS      0
668
669 #define CV_INPAINT_TELEA   1
670
671 #define CV_SCHARR -1
672
673 #define CV_MAX_SOBEL_KSIZE 7
674
675 #define  CV_BGR2BGRA    0
676
677 #define  CV_RGB2RGBA    CV_BGR2BGRA
678
679 #define  CV_BGRA2BGR    1
680
681 #define  CV_RGBA2RGB    CV_BGRA2BGR
682
683 #define  CV_BGR2RGBA    2
684
685 #define  CV_RGB2BGRA    CV_BGR2RGBA
686
687 #define  CV_RGBA2BGR    3
688
689 #define  CV_BGRA2RGB    CV_RGBA2BGR
690
691 #define  CV_BGR2RGB     4
692
693 #define  CV_RGB2BGR     CV_BGR2RGB
694
695 #define  CV_BGRA2RGBA   5
696
697 #define  CV_RGBA2BGRA   CV_BGRA2RGBA
698
699 #define  CV_BGR2GRAY    6
700
701 #define  CV_RGB2GRAY    7
702
703 #define  CV_GRAY2BGR    8
704
705 #define  CV_GRAY2RGB    CV_GRAY2BGR
706
707 #define  CV_GRAY2BGRA   9
708
709 #define  CV_GRAY2RGBA   CV_GRAY2BGRA
710
711 #define  CV_BGRA2GRAY   10
712
713 #define  CV_RGBA2GRAY   11
714
715 #define  CV_BGR2BGR565  12
716
717 #define  CV_RGB2BGR565  13
718
719 #define  CV_BGR5652BGR  14
720
721 #define  CV_BGR5652RGB  15
722
723 #define  CV_BGRA2BGR565 16
724
725 #define  CV_RGBA2BGR565 17
726
727 #define  CV_BGR5652BGRA 18
728
729 #define  CV_BGR5652RGBA 19
730
731 #define  CV_GRAY2BGR565 20
732
733 #define  CV_BGR5652GRAY 21
734
735 #define  CV_BGR2BGR555  22
736
737 #define  CV_RGB2BGR555  23
738
739 #define  CV_BGR5552BGR  24
740
741 #define  CV_BGR5552RGB  25
742
743 #define  CV_BGRA2BGR555 26
744
745 #define  CV_RGBA2BGR555 27
746
747 #define  CV_BGR5552BGRA 28
748
749 #define  CV_BGR5552RGBA 29
750
751 #define  CV_GRAY2BGR555 30
752
753 #define  CV_BGR5552GRAY 31
754
755 #define  CV_BGR2XYZ     32
756
757 #define  CV_RGB2XYZ     33
758
759 #define  CV_XYZ2BGR     34
760
761 #define  CV_XYZ2RGB     35
762
763 #define  CV_BGR2YCrCb   36
764
765 #define  CV_RGB2YCrCb   37
766
767 #define  CV_YCrCb2BGR   38
768
769 #define  CV_YCrCb2RGB   39
770
771 #define  CV_BGR2HSV     40
772
773 #define  CV_RGB2HSV     41
774
775 #define  CV_BGR2Lab     44
776
777 #define  CV_RGB2Lab     45
778
779 #define  CV_BayerBG2BGR 46
780
781 #define  CV_BayerGB2BGR 47
782
783 #define  CV_BayerRG2BGR 48
784
785 #define  CV_BayerGR2BGR 49
786
787 #define  CV_BayerBG2RGB CV_BayerRG2BGR
788
789 #define  CV_BayerGB2RGB CV_BayerGR2BGR
790
791 #define  CV_BayerRG2RGB CV_BayerBG2BGR
792
793 #define  CV_BayerGR2RGB CV_BayerGB2BGR
794
795 #define  CV_BGR2Luv     50
796
797 #define  CV_RGB2Luv     51
798
799 #define  CV_BGR2HLS     52
800
801 #define  CV_RGB2HLS     53
802
803 #define  CV_HSV2BGR     54
804
805 #define  CV_HSV2RGB     55
806
807 #define  CV_Lab2BGR     56
808
809 #define  CV_Lab2RGB     57
810
811 #define  CV_Luv2BGR     58
812
813 #define  CV_Luv2RGB     59
814
815 #define  CV_HLS2BGR     60
816
817 #define  CV_HLS2RGB     61
818
819 #define  CV_COLORCVT_MAX  100
820
821 #define  CV_INTER_NN        0
822
823 #define  CV_INTER_LINEAR    1
824
825 #define  CV_INTER_CUBIC     2
826
827 #define  CV_INTER_AREA      3
828
829 #define  CV_WARP_FILL_OUTLIERS 8
830
831 #define  CV_WARP_INVERSE_MAP  16
832
833 #define  CV_SHAPE_RECT      0
834
835 #define  CV_SHAPE_CROSS     1
836
837 #define  CV_SHAPE_ELLIPSE   2
838
839 #define  CV_SHAPE_CUSTOM    100
840
841 #define CV_MOP_OPEN         2
842
843 #define CV_MOP_CLOSE        3
844
845 #define CV_MOP_GRADIENT     4
846
847 #define CV_MOP_TOPHAT       5
848
849 #define CV_MOP_BLACKHAT     6
850
851 #define  CV_TM_SQDIFF        0
852
853 #define  CV_TM_SQDIFF_NORMED 1
854
855 #define  CV_TM_CCORR         2
856
857 #define  CV_TM_CCORR_NORMED  3
858
859 #define  CV_TM_CCOEFF        4
860
861 #define  CV_TM_CCOEFF_NORMED 5
862
863 #define  CV_LKFLOW_PYR_A_READY       1
864
865 #define  CV_LKFLOW_PYR_B_READY       2
866
867 #define  CV_LKFLOW_INITIAL_GUESSES   4
868
869 #define CV_POLY_APPROX_DP 0
870
871 #define CV_DOMINANT_IPAN 1
872
873 #define CV_CONTOURS_MATCH_I1  1
874
875 #define CV_CONTOURS_MATCH_I2  2
876
877 #define CV_CONTOURS_MATCH_I3  3
878
879 #define  CV_CONTOUR_TREES_MATCH_I1  1
880
881 #define CV_CLOCKWISE         1
882
883 #define CV_COUNTER_CLOCKWISE 2
884
885 #define CV_COMP_CORREL        0
886
887 #define CV_COMP_CHISQR        1
888
889 #define CV_COMP_INTERSECT     2
890
891 #define CV_COMP_BHATTACHARYYA 3
892
893 #define  CV_VALUE  1
894
895 #define  CV_ARRAY  2
896
897 #define CV_DIST_MASK_3   3
898
899 #define CV_DIST_MASK_5   5
900
901 #define CV_DIST_MASK_PRECISE 0
902
903 #define CV_THRESH_BINARY      0  
904
905 #define CV_THRESH_BINARY_INV  1  
906
907 #define CV_THRESH_TRUNC       2  
908
909 #define CV_THRESH_TOZERO      3  
910
911 #define CV_THRESH_TOZERO_INV  4  
912
913 #define CV_THRESH_MASK        7
914
915 #define CV_THRESH_OTSU        8  
916
917 #define CV_ADAPTIVE_THRESH_MEAN_C  0
918
919 #define CV_ADAPTIVE_THRESH_GAUSSIAN_C  1
920
921 #define CV_FLOODFILL_FIXED_RANGE (1 << 16)
922
923 #define CV_FLOODFILL_MASK_ONLY   (1 << 17)
924
925 #define CV_CANNY_L2_GRADIENT  (1 << 31)
926
927 #define CV_HOUGH_STANDARD 0
928
929 #define CV_HOUGH_PROBABILISTIC 1
930
931 #define CV_HOUGH_MULTI_SCALE 2
932
933 #define CV_HOUGH_GRADIENT 3
934
935 #define CV_HAAR_DO_CANNY_PRUNING    1
936
937 #define CV_HAAR_SCALE_IMAGE         2
938
939 #define CV_HAAR_FIND_BIGGEST_OBJECT 4 
940
941 #define CV_HAAR_DO_ROUGH_SEARCH     8
942
943 #define CV_CALIB_USE_INTRINSIC_GUESS  1
944
945 #define CV_CALIB_FIX_ASPECT_RATIO     2
946
947 #define CV_CALIB_FIX_PRINCIPAL_POINT  4
948
949 #define CV_CALIB_ZERO_TANGENT_DIST    8
950
951 #define CV_CALIB_CB_ADAPTIVE_THRESH  1
952
953 #define CV_CALIB_CB_NORMALIZE_IMAGE  2
954
955 #define CV_CALIB_CB_FILTER_QUADS     4 
956
957 #define CV_FM_7POINT 1
958
959 #define CV_FM_8POINT 2
960
961 #define CV_FM_LMEDS_ONLY  4
962
963 #define CV_FM_RANSAC_ONLY 8
964
965 #define CV_FM_LMEDS (CV_FM_LMEDS_ONLY + CV_FM_8POINT)
966
967 #define CV_FM_RANSAC (CV_FM_RANSAC_ONLY + CV_FM_8POINT)
968
969 #define CV_RETR_EXTERNAL 0
970
971 #define CV_RETR_LIST     1
972
973 #define CV_RETR_CCOMP    2
974
975 #define CV_RETR_TREE     3
976
977 #define CV_CHAIN_CODE               0
978
979 #define CV_CHAIN_APPROX_NONE        1
980
981 #define CV_CHAIN_APPROX_SIMPLE      2
982
983 #define CV_CHAIN_APPROX_TC89_L1     3
984
985 #define CV_CHAIN_APPROX_TC89_KCOS   4
986
987 #define CV_LINK_RUNS                5
988
989 #define CV_SUBDIV2D_VIRTUAL_POINT_FLAG (1 << 30)
990
991 #define CV_DIST_USER    -1  
992
993 #define CV_DIST_L1      1   
994
995 #define CV_DIST_L2      2   
996
997 #define CV_DIST_C       3   
998
999 #define CV_DIST_L12     4   
1000
1001 #define CV_DIST_FAIR    5   
1002
1003 #define CV_DIST_WELSCH  6   
1004
1005 #define CV_DIST_HUBER   7   
1006
1007 #define CV_HAAR_MAGIC_VAL    0x42500000
1008
1009 #define CV_TYPE_NAME_HAAR    "opencv-haar-classifier"
1010
1011 #define CV_HAAR_FEATURE_MAX  3
1012