1 #define CV_AUTOSTEP 0x7fffffff
\r
3 #define cvGetSubArr cvGetSubRect
\r
5 #define CV_MAX_ARR 10
\r
7 #define CV_NO_DEPTH_CHECK 1
\r
9 #define CV_NO_CN_CHECK 2
\r
11 #define CV_NO_SIZE_CHECK 4
\r
13 #define cvZero cvSetZero
\r
15 #define cvCvtScale cvConvertScale
\r
17 #define cvScale cvConvertScale
\r
19 #define cvCvtScaleAbs cvConvertScaleAbs
\r
33 #define CV_CHECK_RANGE 1
\r
35 #define CV_CHECK_QUIET 2
\r
37 #define cvCheckArray cvCheckArr
\r
39 #define CV_RAND_UNI 0
\r
41 #define CV_RAND_NORMAL 1
\r
43 #define CV_SORT_EVERY_ROW 0
\r
45 #define CV_SORT_EVERY_COLUMN 1
\r
47 #define CV_SORT_ASCENDING 0
\r
49 #define CV_SORT_DESCENDING 16
\r
51 #define CV_GEMM_A_T 1
\r
53 #define CV_GEMM_B_T 2
\r
55 #define CV_GEMM_C_T 4
\r
57 #define cvMatMulAddEx cvGEMM
\r
59 #define cvMatMulAddS cvTransform
\r
61 #define cvT cvTranspose
\r
63 #define cvMirror cvFlip
\r
65 #define CV_SVD_MODIFY_A 1
\r
67 #define CV_SVD_U_T 2
\r
69 #define CV_SVD_V_T 4
\r
75 #define CV_SVD_SYM 2
\r
77 #define CV_CHOLESKY 3
\r
81 #define CV_NORMAL 16
\r
83 #define cvInv cvInvert
\r
85 #define CV_COVAR_SCRAMBLED 0
\r
87 #define CV_COVAR_NORMAL 1
\r
89 #define CV_COVAR_USE_AVG 2
\r
91 #define CV_COVAR_SCALE 4
\r
93 #define CV_COVAR_ROWS 8
\r
95 #define CV_COVAR_COLS 16
\r
97 #define CV_PCA_DATA_AS_ROW 0
\r
99 #define CV_PCA_DATA_AS_COL 1
\r
101 #define CV_PCA_USE_AVG 2
\r
103 #define cvMahalonobis cvMahalanobis
\r
111 #define CV_NORM_MASK 7
\r
113 #define CV_RELATIVE 8
\r
117 #define CV_MINMAX 32
\r
119 #define CV_DIFF_C (CV_DIFF | CV_C)
\r
121 #define CV_DIFF_L1 (CV_DIFF | CV_L1)
\r
123 #define CV_DIFF_L2 (CV_DIFF | CV_L2)
\r
125 #define CV_RELATIVE_C (CV_RELATIVE | CV_C)
\r
127 #define CV_RELATIVE_L1 (CV_RELATIVE | CV_L1)
\r
129 #define CV_RELATIVE_L2 (CV_RELATIVE | CV_L2)
\r
131 #define CV_REDUCE_SUM 0
\r
133 #define CV_REDUCE_AVG 1
\r
135 #define CV_REDUCE_MAX 2
\r
137 #define CV_REDUCE_MIN 3
\r
139 #define CV_DXT_FORWARD 0
\r
141 #define CV_DXT_INVERSE 1
\r
143 #define CV_DXT_SCALE 2
145 #define CV_DXT_INV_SCALE (CV_DXT_INVERSE + CV_DXT_SCALE)
\r
147 #define CV_DXT_INVERSE_SCALE CV_DXT_INV_SCALE
\r
149 #define CV_DXT_ROWS 4
151 #define CV_DXT_MUL_CONJ 8
153 #define cvFFT cvDFT
\r
159 #define cvGraphFindEdge cvFindGraphEdge
\r
161 #define cvGraphFindEdgeByPtr cvFindGraphEdgeByPtr
\r
163 #define CV_GRAPH_VERTEX 1
\r
165 #define CV_GRAPH_TREE_EDGE 2
\r
167 #define CV_GRAPH_BACK_EDGE 4
\r
169 #define CV_GRAPH_FORWARD_EDGE 8
\r
171 #define CV_GRAPH_CROSS_EDGE 16
\r
173 #define CV_GRAPH_ANY_EDGE 30
\r
175 #define CV_GRAPH_NEW_TREE 32
\r
177 #define CV_GRAPH_BACKTRACKING 64
\r
179 #define CV_GRAPH_OVER -1
\r
181 #define CV_GRAPH_ALL_ITEMS -1
\r
183 #define CV_GRAPH_ITEM_VISITED_FLAG (1 << 30)
\r
185 #define CV_GRAPH_SEARCH_TREE_NODE_FLAG (1 << 29)
\r
187 #define CV_GRAPH_FORWARD_EDGE_FLAG (1 << 28)
\r
189 #define CV_FILLED -1
\r
193 #define cvDrawRect cvRectangle
\r
195 #define cvDrawLine cvLine
\r
197 #define cvDrawCircle cvCircle
\r
199 #define cvDrawEllipse cvEllipse
\r
201 #define cvDrawPolyLine cvPolyLine
\r
203 #define CV_FONT_HERSHEY_SIMPLEX 0
\r
205 #define CV_FONT_HERSHEY_PLAIN 1
\r
207 #define CV_FONT_HERSHEY_DUPLEX 2
\r
209 #define CV_FONT_HERSHEY_COMPLEX 3
\r
211 #define CV_FONT_HERSHEY_TRIPLEX 4
\r
213 #define CV_FONT_HERSHEY_COMPLEX_SMALL 5
\r
215 #define CV_FONT_HERSHEY_SCRIPT_SIMPLEX 6
\r
217 #define CV_FONT_HERSHEY_SCRIPT_COMPLEX 7
\r
219 #define CV_FONT_ITALIC 16
\r
221 #define CV_FONT_VECTOR0 CV_FONT_HERSHEY_SIMPLEX
\r
223 #define CV_KMEANS_USE_INITIAL_LABELS 1
\r
225 #define CV_ErrModeLeaf 0
227 #define CV_ErrModeParent 1
229 #define CV_ErrModeSilent 2
231 #define CV_MAJOR_VERSION 2
233 #define CV_MINOR_VERSION 0
235 #define CV_SUBMINOR_VERSION 0
237 #define CV_VERSION CVAUX_STR(CV_MAJOR_VERSION) "." CVAUX_STR(CV_MINOR_VERSION) "." CVAUX_STR(CV_SUBMINOR_VERSION)
239 #define CV_PI 3.1415926535897932384626433832795
241 #define CV_LOG2 0.69314718055994530941723212145818
243 #define IPL_DEPTH_SIGN 0x80000000
245 #define IPL_DEPTH_1U 1
247 #define IPL_DEPTH_8U 8
249 #define IPL_DEPTH_16U 16
251 #define IPL_DEPTH_32F 32
253 #define IPL_DEPTH_8S (IPL_DEPTH_SIGN| 8)
255 #define IPL_DEPTH_16S (IPL_DEPTH_SIGN|16)
257 #define IPL_DEPTH_32S (IPL_DEPTH_SIGN|32)
259 #define IPL_DATA_ORDER_PIXEL 0
261 #define IPL_DATA_ORDER_PLANE 1
263 #define IPL_ORIGIN_TL 0
265 #define IPL_ORIGIN_BL 1
267 #define IPL_ALIGN_4BYTES 4
269 #define IPL_ALIGN_8BYTES 8
271 #define IPL_ALIGN_16BYTES 16
273 #define IPL_ALIGN_32BYTES 32
275 #define IPL_ALIGN_DWORD IPL_ALIGN_4BYTES
277 #define IPL_ALIGN_QWORD IPL_ALIGN_8BYTES
279 #define IPL_BORDER_CONSTANT 0
281 #define IPL_BORDER_REPLICATE 1
283 #define IPL_BORDER_REFLECT 2
285 #define IPL_BORDER_WRAP 3
287 #define IPL_IMAGE_HEADER 1
289 #define IPL_IMAGE_DATA 2
291 #define IPL_IMAGE_ROI 4
293 #define IPL_BORDER_REFLECT_101 4
295 #define IPL_IMAGE_MAGIC_VAL ((int)sizeof(IplImage))
297 #define CV_TYPE_NAME_IMAGE "opencv-image"
299 #define IPL_DEPTH_64F 64
303 #define CV_CN_SHIFT 3
305 #define CV_DEPTH_MAX (1 << CV_CN_SHIFT)
321 #define CV_USRTYPE1 7
323 #define CV_MAT_DEPTH_MASK (CV_DEPTH_MAX - 1)
325 #define CV_MAT_DEPTH(flags) ((flags) & CV_MAT_DEPTH_MASK)
327 #define CV_MAKETYPE(depth,cn) (CV_MAT_DEPTH(depth) + (((cn)-1) << CV_CN_SHIFT))
329 #define CV_MAKE_TYPE CV_MAKETYPE
331 #define CV_8UC1 CV_MAKETYPE(CV_8U,1)
333 #define CV_8UC2 CV_MAKETYPE(CV_8U,2)
335 #define CV_8UC3 CV_MAKETYPE(CV_8U,3)
337 #define CV_8UC4 CV_MAKETYPE(CV_8U,4)
339 #define CV_8SC1 CV_MAKETYPE(CV_8S,1)
341 #define CV_8SC2 CV_MAKETYPE(CV_8S,2)
343 #define CV_8SC3 CV_MAKETYPE(CV_8S,3)
345 #define CV_8SC4 CV_MAKETYPE(CV_8S,4)
347 #define CV_16UC1 CV_MAKETYPE(CV_16U,1)
349 #define CV_16UC2 CV_MAKETYPE(CV_16U,2)
351 #define CV_16UC3 CV_MAKETYPE(CV_16U,3)
353 #define CV_16UC4 CV_MAKETYPE(CV_16U,4)
355 #define CV_16SC1 CV_MAKETYPE(CV_16S,1)
357 #define CV_16SC2 CV_MAKETYPE(CV_16S,2)
359 #define CV_16SC3 CV_MAKETYPE(CV_16S,3)
361 #define CV_16SC4 CV_MAKETYPE(CV_16S,4)
363 #define CV_32SC1 CV_MAKETYPE(CV_32S,1)
365 #define CV_32SC2 CV_MAKETYPE(CV_32S,2)
367 #define CV_32SC3 CV_MAKETYPE(CV_32S,3)
369 #define CV_32SC4 CV_MAKETYPE(CV_32S,4)
371 #define CV_32FC1 CV_MAKETYPE(CV_32F,1)
373 #define CV_32FC2 CV_MAKETYPE(CV_32F,2)
375 #define CV_32FC3 CV_MAKETYPE(CV_32F,3)
377 #define CV_32FC4 CV_MAKETYPE(CV_32F,4)
379 #define CV_64FC1 CV_MAKETYPE(CV_64F,1)
381 #define CV_64FC2 CV_MAKETYPE(CV_64F,2)
383 #define CV_64FC3 CV_MAKETYPE(CV_64F,3)
385 #define CV_64FC4 CV_MAKETYPE(CV_64F,4)
387 #define CV_AUTO_STEP 0x7fffffff
389 #define CV_WHOLE_ARR cvSlice( 0, 0x3fffffff )
391 #define CV_MAT_CN_MASK ((CV_CN_MAX - 1) << CV_CN_SHIFT)
393 #define CV_MAT_TYPE_MASK (CV_DEPTH_MAX*CV_CN_MAX - 1)
395 #define CV_MAT_TYPE(flags) ((flags) & CV_MAT_TYPE_MASK)
397 #define CV_MAT_CONT_FLAG_SHIFT 14
399 #define CV_MAT_CONT_FLAG (1 << CV_MAT_CONT_FLAG_SHIFT)
401 #define CV_IS_CONT_MAT CV_IS_MAT_CONT
403 #define CV_MAT_TEMP_FLAG_SHIFT 15
405 #define CV_MAT_TEMP_FLAG (1 << CV_MAT_TEMP_FLAG_SHIFT)
407 #define CV_MAGIC_MASK 0xFFFF0000
409 #define CV_MAT_MAGIC_VAL 0x42420000
411 #define CV_TYPE_NAME_MAT "opencv-matrix"
413 #define CV_MATND_MAGIC_VAL 0x42430000
415 #define CV_TYPE_NAME_MATND "opencv-nd-matrix"
417 #define CV_MAX_DIM 32
419 #define CV_MAX_DIM_HEAP (1 << 16)
421 #define CV_SPARSE_MAT_MAGIC_VAL 0x42440000
423 #define CV_TYPE_NAME_SPARSE_MAT "opencv-sparse-matrix"
425 #define CV_HIST_MAGIC_VAL 0x42450000
427 #define CV_HIST_UNIFORM_FLAG (1 << 10)
429 #define CV_HIST_RANGES_FLAG (1 << 11)
431 #define CV_HIST_ARRAY 0
433 #define CV_HIST_SPARSE 1
435 #define CV_HIST_TREE CV_HIST_SPARSE
437 #define CV_HIST_UNIFORM 1
439 #define CV_TERMCRIT_ITER 1
441 #define CV_TERMCRIT_NUMBER CV_TERMCRIT_ITER
443 #define CV_TERMCRIT_EPS 2
445 #define CV_WHOLE_SEQ_END_INDEX 0x3fffffff
447 #define CV_WHOLE_SEQ cvSlice(0, CV_WHOLE_SEQ_END_INDEX)
449 #define CV_STORAGE_MAGIC_VAL 0x42890000
451 #define CV_TYPE_NAME_SEQ "opencv-sequence"
453 #define CV_TYPE_NAME_SEQ_TREE "opencv-sequence-tree"
455 #define CV_SET_ELEM_IDX_MASK ((1 << 26) - 1)
457 #define CV_SET_ELEM_FREE_FLAG (1 << (sizeof(int)*8-1))
459 #define CV_TYPE_NAME_GRAPH "opencv-graph"
461 #define CV_SEQ_MAGIC_VAL 0x42990000
463 #define CV_SET_MAGIC_VAL 0x42980000
465 #define CV_SEQ_ELTYPE_BITS 9
467 #define CV_SEQ_ELTYPE_MASK ((1 << CV_SEQ_ELTYPE_BITS) - 1)
469 #define CV_SEQ_ELTYPE_POINT CV_32SC2
471 #define CV_SEQ_ELTYPE_CODE CV_8UC1
473 #define CV_SEQ_ELTYPE_GENERIC 0
475 #define CV_SEQ_ELTYPE_PTR CV_USRTYPE1
477 #define CV_SEQ_ELTYPE_PPOINT CV_SEQ_ELTYPE_PTR
479 #define CV_SEQ_ELTYPE_INDEX CV_32SC1
481 #define CV_SEQ_ELTYPE_GRAPH_EDGE 0
483 #define CV_SEQ_ELTYPE_GRAPH_VERTEX 0
485 #define CV_SEQ_ELTYPE_TRIAN_ATR 0
487 #define CV_SEQ_ELTYPE_CONNECTED_COMP 0
489 #define CV_SEQ_ELTYPE_POINT3D CV_32FC3
491 #define CV_SEQ_KIND_BITS 3
493 #define CV_SEQ_KIND_MASK (((1 << CV_SEQ_KIND_BITS) - 1)<<CV_SEQ_ELTYPE_BITS)
495 #define CV_SEQ_KIND_GENERIC (0 << CV_SEQ_ELTYPE_BITS)
497 #define CV_SEQ_KIND_CURVE (1 << CV_SEQ_ELTYPE_BITS)
499 #define CV_SEQ_KIND_BIN_TREE (2 << CV_SEQ_ELTYPE_BITS)
501 #define CV_SEQ_KIND_GRAPH (3 << CV_SEQ_ELTYPE_BITS)
503 #define CV_SEQ_KIND_SUBDIV2D (4 << CV_SEQ_ELTYPE_BITS)
505 #define CV_SEQ_FLAG_SHIFT (CV_SEQ_KIND_BITS + CV_SEQ_ELTYPE_BITS)
507 #define CV_SEQ_FLAG_CLOSED (1 << CV_SEQ_FLAG_SHIFT)
509 #define CV_SEQ_FLAG_SIMPLE (2 << CV_SEQ_FLAG_SHIFT)
511 #define CV_SEQ_FLAG_CONVEX (4 << CV_SEQ_FLAG_SHIFT)
513 #define CV_SEQ_FLAG_HOLE (8 << CV_SEQ_FLAG_SHIFT)
515 #define CV_GRAPH_FLAG_ORIENTED (1 << CV_SEQ_FLAG_SHIFT)
517 #define CV_GRAPH CV_SEQ_KIND_GRAPH
519 #define CV_ORIENTED_GRAPH (CV_SEQ_KIND_GRAPH|CV_GRAPH_FLAG_ORIENTED)
521 #define CV_SEQ_POINT_SET (CV_SEQ_KIND_GENERIC| CV_SEQ_ELTYPE_POINT)
523 #define CV_SEQ_POINT3D_SET (CV_SEQ_KIND_GENERIC| CV_SEQ_ELTYPE_POINT3D)
525 #define CV_SEQ_POLYLINE (CV_SEQ_KIND_CURVE | CV_SEQ_ELTYPE_POINT)
527 #define CV_SEQ_POLYGON (CV_SEQ_FLAG_CLOSED | CV_SEQ_POLYLINE )
529 #define CV_SEQ_CONTOUR CV_SEQ_POLYGON
531 #define CV_SEQ_SIMPLE_POLYGON (CV_SEQ_FLAG_SIMPLE | CV_SEQ_POLYGON )
533 #define CV_SEQ_CHAIN (CV_SEQ_KIND_CURVE | CV_SEQ_ELTYPE_CODE)
535 #define CV_SEQ_CHAIN_CONTOUR (CV_SEQ_FLAG_CLOSED | CV_SEQ_CHAIN)
537 #define CV_SEQ_POLYGON_TREE (CV_SEQ_KIND_BIN_TREE | CV_SEQ_ELTYPE_TRIAN_ATR)
539 #define CV_SEQ_CONNECTED_COMP (CV_SEQ_KIND_GENERIC | CV_SEQ_ELTYPE_CONNECTED_COMP)
541 #define CV_SEQ_INDEX (CV_SEQ_KIND_GENERIC | CV_SEQ_ELTYPE_INDEX)
543 #define CV_STORAGE_READ 0
545 #define CV_STORAGE_WRITE 1
547 #define CV_STORAGE_WRITE_TEXT CV_STORAGE_WRITE
549 #define CV_STORAGE_WRITE_BINARY CV_STORAGE_WRITE
551 #define CV_STORAGE_APPEND 2
553 #define CV_NODE_NONE 0
555 #define CV_NODE_INT 1
557 #define CV_NODE_INTEGER CV_NODE_INT
559 #define CV_NODE_REAL 2
561 #define CV_NODE_FLOAT CV_NODE_REAL
563 #define CV_NODE_STR 3
565 #define CV_NODE_STRING CV_NODE_STR
567 #define CV_NODE_REF 4
569 #define CV_NODE_SEQ 5
571 #define CV_NODE_MAP 6
573 #define CV_NODE_TYPE_MASK 7
575 #define CV_NODE_FLOW 8
577 #define CV_NODE_USER 16
579 #define CV_NODE_EMPTY 32
581 #define CV_NODE_NAMED 64
583 #define CV_NODE_SEQ_SIMPLE 256
587 #define CV_StsBackTrace -1
589 #define CV_StsError -2
591 #define CV_StsInternal -3
593 #define CV_StsNoMem -4
595 #define CV_StsBadArg -5
597 #define CV_StsBadFunc -6
599 #define CV_StsNoConv -7
601 #define CV_StsAutoTrace -8
603 #define CV_HeaderIsNull -9
605 #define CV_BadImageSize -10
607 #define CV_BadOffset -11
609 #define CV_BadDataPtr -12
611 #define CV_BadStep -13
613 #define CV_BadModelOrChSeq -14
615 #define CV_BadNumChannels -15
617 #define CV_BadNumChannel1U -16
619 #define CV_BadDepth -17
621 #define CV_BadAlphaChannel -18
623 #define CV_BadOrder -19
625 #define CV_BadOrigin -20
627 #define CV_BadAlign -21
629 #define CV_BadCallBack -22
631 #define CV_BadTileSize -23
633 #define CV_BadCOI -24
635 #define CV_BadROISize -25
637 #define CV_MaskIsTiled -26
639 #define CV_StsNullPtr -27
641 #define CV_StsVecLengthErr -28
643 #define CV_StsFilterStructContentErr -29
645 #define CV_StsKernelStructContentErr -30
647 #define CV_StsFilterOffsetErr -31
649 #define CV_StsBadSize -201
651 #define CV_StsDivByZero -202
653 #define CV_StsInplaceNotSupported -203
655 #define CV_StsObjectNotFound -204
657 #define CV_StsUnmatchedFormats -205
659 #define CV_StsBadFlag -206
661 #define CV_StsBadPoint -207
663 #define CV_StsBadMask -208
665 #define CV_StsUnmatchedSizes -209
667 #define CV_StsUnsupportedFormat -210
669 #define CV_StsOutOfRange -211
671 #define CV_StsParseError -212
673 #define CV_StsNotImplemented -213
675 #define CV_StsBadMemBlock -214
677 #define CV_StsAssert -215
679 #define CV_BLUR_NO_SCALE 0
683 #define CV_GAUSSIAN 2
687 #define CV_BILATERAL 4
689 #define CV_INPAINT_NS 0
691 #define CV_INPAINT_TELEA 1
695 #define CV_MAX_SOBEL_KSIZE 7
697 #define CV_BGR2BGRA 0
699 #define CV_RGB2RGBA CV_BGR2BGRA
701 #define CV_BGRA2BGR 1
703 #define CV_RGBA2RGB CV_BGRA2BGR
705 #define CV_BGR2RGBA 2
707 #define CV_RGB2BGRA CV_BGR2RGBA
709 #define CV_RGBA2BGR 3
711 #define CV_BGRA2RGB CV_RGBA2BGR
715 #define CV_RGB2BGR CV_BGR2RGB
717 #define CV_BGRA2RGBA 5
719 #define CV_RGBA2BGRA CV_BGRA2RGBA
721 #define CV_BGR2GRAY 6
723 #define CV_RGB2GRAY 7
725 #define CV_GRAY2BGR 8
727 #define CV_GRAY2RGB CV_GRAY2BGR
729 #define CV_GRAY2BGRA 9
731 #define CV_GRAY2RGBA CV_GRAY2BGRA
733 #define CV_BGRA2GRAY 10
735 #define CV_RGBA2GRAY 11
737 #define CV_BGR2BGR565 12
739 #define CV_RGB2BGR565 13
741 #define CV_BGR5652BGR 14
743 #define CV_BGR5652RGB 15
745 #define CV_BGRA2BGR565 16
747 #define CV_RGBA2BGR565 17
749 #define CV_BGR5652BGRA 18
751 #define CV_BGR5652RGBA 19
753 #define CV_GRAY2BGR565 20
755 #define CV_BGR5652GRAY 21
757 #define CV_BGR2BGR555 22
759 #define CV_RGB2BGR555 23
761 #define CV_BGR5552BGR 24
763 #define CV_BGR5552RGB 25
765 #define CV_BGRA2BGR555 26
767 #define CV_RGBA2BGR555 27
769 #define CV_BGR5552BGRA 28
771 #define CV_BGR5552RGBA 29
773 #define CV_GRAY2BGR555 30
775 #define CV_BGR5552GRAY 31
777 #define CV_BGR2XYZ 32
779 #define CV_RGB2XYZ 33
781 #define CV_XYZ2BGR 34
783 #define CV_XYZ2RGB 35
785 #define CV_BGR2YCrCb 36
787 #define CV_RGB2YCrCb 37
789 #define CV_YCrCb2BGR 38
791 #define CV_YCrCb2RGB 39
793 #define CV_BGR2HSV 40
795 #define CV_RGB2HSV 41
797 #define CV_BGR2Lab 44
799 #define CV_RGB2Lab 45
801 #define CV_BayerBG2BGR 46
803 #define CV_BayerGB2BGR 47
805 #define CV_BayerRG2BGR 48
807 #define CV_BayerGR2BGR 49
809 #define CV_BayerBG2RGB CV_BayerRG2BGR
811 #define CV_BayerGB2RGB CV_BayerGR2BGR
813 #define CV_BayerRG2RGB CV_BayerBG2BGR
815 #define CV_BayerGR2RGB CV_BayerGB2BGR
817 #define CV_BGR2Luv 50
819 #define CV_RGB2Luv 51
821 #define CV_BGR2HLS 52
823 #define CV_RGB2HLS 53
825 #define CV_HSV2BGR 54
827 #define CV_HSV2RGB 55
829 #define CV_Lab2BGR 56
831 #define CV_Lab2RGB 57
833 #define CV_Luv2BGR 58
835 #define CV_Luv2RGB 59
837 #define CV_HLS2BGR 60
839 #define CV_HLS2RGB 61
841 #define CV_COLORCVT_MAX 100
843 #define CV_INTER_NN 0
845 #define CV_INTER_LINEAR 1
847 #define CV_INTER_CUBIC 2
849 #define CV_INTER_AREA 3
851 #define CV_WARP_FILL_OUTLIERS 8
853 #define CV_WARP_INVERSE_MAP 16
855 #define CV_SHAPE_RECT 0
857 #define CV_SHAPE_CROSS 1
859 #define CV_SHAPE_ELLIPSE 2
861 #define CV_SHAPE_CUSTOM 100
863 #define CV_MOP_OPEN 2
865 #define CV_MOP_CLOSE 3
867 #define CV_MOP_GRADIENT 4
869 #define CV_MOP_TOPHAT 5
871 #define CV_MOP_BLACKHAT 6
873 #define CV_TM_SQDIFF 0
875 #define CV_TM_SQDIFF_NORMED 1
877 #define CV_TM_CCORR 2
879 #define CV_TM_CCORR_NORMED 3
881 #define CV_TM_CCOEFF 4
883 #define CV_TM_CCOEFF_NORMED 5
885 #define CV_LKFLOW_PYR_A_READY 1
887 #define CV_LKFLOW_PYR_B_READY 2
889 #define CV_LKFLOW_INITIAL_GUESSES 4
891 #define CV_LKFLOW_GET_MIN_EIGENVALS 8
893 #define CV_POLY_APPROX_DP 0
895 #define CV_DOMINANT_IPAN 1
897 #define CV_CONTOURS_MATCH_I1 1
899 #define CV_CONTOURS_MATCH_I2 2
901 #define CV_CONTOURS_MATCH_I3 3
903 #define CV_CONTOUR_TREES_MATCH_I1 1
905 #define CV_CLOCKWISE 1
907 #define CV_COUNTER_CLOCKWISE 2
909 #define CV_COMP_CORREL 0
911 #define CV_COMP_CHISQR 1
913 #define CV_COMP_INTERSECT 2
915 #define CV_COMP_BHATTACHARYYA 3
921 #define CV_DIST_MASK_3 3
923 #define CV_DIST_MASK_5 5
925 #define CV_DIST_MASK_PRECISE 0
927 #define CV_THRESH_BINARY 0
929 #define CV_THRESH_BINARY_INV 1
931 #define CV_THRESH_TRUNC 2
933 #define CV_THRESH_TOZERO 3
935 #define CV_THRESH_TOZERO_INV 4
937 #define CV_THRESH_MASK 7
939 #define CV_THRESH_OTSU 8
941 #define CV_ADAPTIVE_THRESH_MEAN_C 0
943 #define CV_ADAPTIVE_THRESH_GAUSSIAN_C 1
945 #define CV_FLOODFILL_FIXED_RANGE (1 << 16)
947 #define CV_FLOODFILL_MASK_ONLY (1 << 17)
949 #define CV_CANNY_L2_GRADIENT (1 << 31)
951 #define CV_HOUGH_STANDARD 0
953 #define CV_HOUGH_PROBABILISTIC 1
955 #define CV_HOUGH_MULTI_SCALE 2
957 #define CV_HOUGH_GRADIENT 3
959 #define CV_HAAR_DO_CANNY_PRUNING 1
961 #define CV_HAAR_SCALE_IMAGE 2
963 #define CV_HAAR_FIND_BIGGEST_OBJECT 4
965 #define CV_HAAR_DO_ROUGH_SEARCH 8
971 #define CV_CALIB_CB_ADAPTIVE_THRESH 1
973 #define CV_CALIB_CB_NORMALIZE_IMAGE 2
975 #define CV_CALIB_CB_FILTER_QUADS 4
977 #define CV_CALIB_USE_INTRINSIC_GUESS 1
979 #define CV_CALIB_FIX_ASPECT_RATIO 2
981 #define CV_CALIB_FIX_PRINCIPAL_POINT 4
983 #define CV_CALIB_ZERO_TANGENT_DIST 8
985 #define CV_CALIB_FIX_FOCAL_LENGTH 16
987 #define CV_CALIB_FIX_K1 32
989 #define CV_CALIB_FIX_K2 64
991 #define CV_CALIB_FIX_K3 128
993 #define CV_CALIB_FIX_INTRINSIC 256
995 #define CV_CALIB_SAME_FOCAL_LENGTH 512
997 #define CV_CALIB_ZERO_DISPARITY 1024
999 #define CV_FM_7POINT 1
1001 #define CV_FM_8POINT 2
1003 #define CV_FM_LMEDS_ONLY CV_LMEDS
1005 #define CV_FM_RANSAC_ONLY CV_RANSAC
1007 #define CV_FM_LMEDS CV_LMEDS
1009 #define CV_FM_RANSAC CV_RANSAC
1011 #define CV_STEREO_BM_NORMALIZED_RESPONSE 0
1013 #define CV_STEREO_BM_BASIC 0
1015 #define CV_STEREO_BM_FISH_EYE 1
1017 #define CV_STEREO_BM_NARROW 2
1019 #define CV_STEREO_GC_OCCLUDED SHRT_MAX
1021 #define CV_RETR_EXTERNAL 0
1023 #define CV_RETR_LIST 1
1025 #define CV_RETR_CCOMP 2
1027 #define CV_RETR_TREE 3
1029 #define CV_CHAIN_CODE 0
1031 #define CV_CHAIN_APPROX_NONE 1
1033 #define CV_CHAIN_APPROX_SIMPLE 2
1035 #define CV_CHAIN_APPROX_TC89_L1 3
1037 #define CV_CHAIN_APPROX_TC89_KCOS 4
1039 #define CV_LINK_RUNS 5
1041 #define CV_SUBDIV2D_VIRTUAL_POINT_FLAG (1 << 30)
1043 #define CV_DIST_USER -1
1045 #define CV_DIST_L1 1
1047 #define CV_DIST_L2 2
1051 #define CV_DIST_L12 4
1053 #define CV_DIST_FAIR 5
1055 #define CV_DIST_WELSCH 6
1057 #define CV_DIST_HUBER 7
1059 #define CV_HAAR_MAGIC_VAL 0x42500000
1061 #define CV_TYPE_NAME_HAAR "opencv-haar-classifier"
1063 #define CV_HAAR_FEATURE_MAX 3