52 #pragma package <chopencv>
74 #define CV_BLUR_NO_SCALE 0
78 #define CV_BILATERAL 4
84 int size2 CV_DEFAULT(0),
85 double sigma1 CV_DEFAULT(0),
86 double sigma2 CV_DEFAULT(0));
111 int filter CV_DEFAULT(CV_GAUSSIAN_5x5) );
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) );
141 #define CV_INPAINT_NS 0
142 #define CV_INPAINT_TELEA 1
149 #define CV_MAX_SOBEL_KSIZE 7
156 int aperture_size CV_DEFAULT(3));
160 int aperture_size CV_DEFAULT(3) );
163 #define CV_BGR2BGRA 0
164 #define CV_RGB2RGBA CV_BGR2BGRA
166 #define CV_BGRA2BGR 1
167 #define CV_RGBA2RGB CV_BGRA2BGR
169 #define CV_BGR2RGBA 2
170 #define CV_RGB2BGRA CV_BGR2RGBA
172 #define CV_RGBA2BGR 3
173 #define CV_BGRA2RGB CV_RGBA2BGR
176 #define CV_RGB2BGR CV_BGR2RGB
178 #define CV_BGRA2RGBA 5
179 #define CV_RGBA2BGRA CV_BGRA2RGBA
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
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
199 #define CV_GRAY2BGR565 20
200 #define CV_BGR5652GRAY 21
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
211 #define CV_GRAY2BGR555 30
212 #define CV_BGR5552GRAY 31
214 #define CV_BGR2XYZ 32
215 #define CV_RGB2XYZ 33
216 #define CV_XYZ2BGR 34
217 #define CV_XYZ2RGB 35
219 #define CV_BGR2YCrCb 36
220 #define CV_RGB2YCrCb 37
221 #define CV_YCrCb2BGR 38
222 #define CV_YCrCb2RGB 39
224 #define CV_BGR2HSV 40
225 #define CV_RGB2HSV 41
227 #define CV_BGR2Lab 44
228 #define CV_RGB2Lab 45
230 #define CV_BayerBG2BGR 46
231 #define CV_BayerGB2BGR 47
232 #define CV_BayerRG2BGR 48
233 #define CV_BayerGR2BGR 49
235 #define CV_BayerBG2RGB CV_BayerRG2BGR
236 #define CV_BayerGB2RGB CV_BayerGR2BGR
237 #define CV_BayerRG2RGB CV_BayerBG2BGR
238 #define CV_BayerGR2RGB CV_BayerGB2BGR
240 #define CV_BGR2Luv 50
241 #define CV_RGB2Luv 51
242 #define CV_BGR2HLS 52
243 #define CV_RGB2HLS 53
245 #define CV_HSV2BGR 54
246 #define CV_HSV2RGB 55
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
255 #define CV_COLORCVT_MAX 100
260 #define CV_INTER_NN 0
261 #define CV_INTER_LINEAR 1
262 #define CV_INTER_CUBIC 2
263 #define CV_INTER_AREA 3
265 #define CV_WARP_FILL_OUTLIERS 8
266 #define CV_WARP_INVERSE_MAP 16
280 CvMat * map_matrix );
288 int flags CV_DEFAULT(CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS),
299 int flags CV_DEFAULT(CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS),
309 int flags CV_DEFAULT(CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS));
311 #define CV_SHAPE_RECT 0
312 #define CV_SHAPE_CROSS 1
313 #define CV_SHAPE_ELLIPSE 2
314 #define CV_SHAPE_CUSTOM 100
319 int shape,
int* values CV_DEFAULT(NULL) );
328 int iterations CV_DEFAULT(1) );
334 int iterations CV_DEFAULT(1) );
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
345 int operation,
int iterations CV_DEFAULT(1) );
354 int x_order,
int y_order );
364 int connectivity CV_DEFAULT(8));
378 const
CvMat* map_matrix );
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
399 const
CvArr* cost_matrix CV_DEFAULT(NULL),
400 CvArr* flow CV_DEFAULT(NULL),
414 CvPoint offset CV_DEFAULT(cvPoint(0,0)));
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)));
442 int method CV_DEFAULT(CV_CHAIN_APPROX_SIMPLE),
444 int minimal_perimeter CV_DEFAULT(0),
445 int recursive CV_DEFAULT(0));
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
508 CvSize win_size,
int level,
509 char* status,
float* track_error,
536 int aperture_size CV_DEFAULT(3));
542 const
CvArr* mhi,
double timestamp,
555 const
CvArr* mask CV_DEFAULT(NULL) );
559 const
CvArr* mask CV_DEFAULT(NULL) );
563 const
CvArr* mask CV_DEFAULT(NULL) );
567 const
CvArr* mask CV_DEFAULT(NULL) );
578 CvBox2D* box CV_DEFAULT(NULL) );
601 int control_params CV_DEFAULT(0));
608 const
CvMat* control CV_DEFAULT(NULL));
672 return (edge & ~3) + ((edge + rotate) & 3);
683 edge = e->next[(edge + (
int)type) & 3];
684 return (edge & ~3) + ((edge + ((
int)type >> 4)) & 3);
704 return (b.
x - a.
x) * (c.
y - a.
y) - (b.
y - a.
y) * (c.
x - a.
x);
712 #define CV_POLY_APPROX_DP 0
719 int parameter2 CV_DEFAULT(0));
721 #define CV_DOMINANT_IPAN 1
726 double parameter1 CV_DEFAULT(0),
727 double parameter2 CV_DEFAULT(0),
728 double parameter3 CV_DEFAULT(0),
729 double parameter4 CV_DEFAULT(0));
735 #define cvContourPerimeter( contour ) cvArcLength( contour, CV_WHOLE_SEQ, 1 )
753 #define CV_CONTOURS_MATCH_I1 1
754 #define CV_CONTOURS_MATCH_I2 2
755 #define CV_CONTOURS_MATCH_I3 3
759 int method,
double parameter CV_DEFAULT(0));
772 #define CV_CONTOUR_TREES_MATCH_I1 1
776 int method,
double threshold );
781 #define CV_CLOCKWISE 1
782 #define CV_COUNTER_CLOCKWISE 2
786 void* hull_storage CV_DEFAULT(NULL),
788 int return_points CV_DEFAULT(0));
825 float**
ranges CV_DEFAULT(NULL),
826 int uniform CV_DEFAULT(1));
830 int uniform CV_DEFAULT(1));
835 float*
data,
float** ranges CV_DEFAULT(NULL),
836 int uniform CV_DEFAULT(1));
847 int* min_idx CV_DEFAULT(NULL),
848 int* max_idx CV_DEFAULT(NULL));
859 #define CV_COMP_CORREL 0
860 #define CV_COMP_CHISQR 1
861 #define CV_COMP_INTERSECT 2
862 #define CV_COMP_BHATTACHARYYA 3
881 int accumulate CV_DEFAULT(0),
885 int accumulate CV_DEFAULT(0),
894 #define cvCalcBackProject(image, dst, hist) cvCalcArrBackProject((CvArr**)image, dst, hist)
902 #define cvCalcBackProjectPatch( image, dst, range, hist, method, factor ) \
903 cvCalcArrBackProjectPatch( (CvArr**)image, dst, range, hist, method, factor )
928 #define CV_DIST_MASK_3 3
929 #define CV_DIST_MASK_5 5
930 #define CV_DIST_MASK_PRECISE 0
935 int mask_size CV_DEFAULT(3),
936 const
float*
mask CV_DEFAULT(NULL),
941 #define CV_THRESH_BINARY 0
942 #define CV_THRESH_BINARY_INV 1
943 #define CV_THRESH_TRUNC 2
944 #define CV_THRESH_TOZERO 3
945 #define CV_THRESH_TOZERO_INV 4
946 #define CV_THRESH_MASK 7
948 #define CV_THRESH_OTSU 8
954 double threshold,
double max_value,
957 #define CV_ADAPTIVE_THRESH_MEAN_C 0
958 #define CV_ADAPTIVE_THRESH_GAUSSIAN_C 1
968 int block_size CV_DEFAULT(3),
969 double param1 CV_DEFAULT(5));
971 #define CV_FLOODFILL_FIXED_RANGE (1 << 16)
972 #define CV_FLOODFILL_MASK_ONLY (1 << 17)
977 CvScalar up_diff CV_DEFAULT(cvScalarAll(0)),
979 int flags CV_DEFAULT(4),
986 #define CV_CANNY_L2_GRADIENT (1 << 31)
990 double threshold2,
int aperture_size CV_DEFAULT(3) );
996 int aperture_size CV_DEFAULT(3) );
1001 int block_size,
int aperture_size CV_DEFAULT(3) );
1006 int block_size,
int aperture_size CV_DEFAULT(3) );
1011 int block_size,
int aperture_size CV_DEFAULT(3),
1012 double k CV_DEFAULT(0.04) );
1026 int block_size CV_DEFAULT(3),
1028 double k CV_DEFAULT(0.04) );
1030 #define CV_HOUGH_STANDARD 0
1031 #define CV_HOUGH_PROBABILISTIC 1
1032 #define CV_HOUGH_MULTI_SCALE 2
1033 #define CV_HOUGH_GRADIENT 3
1043 double rho,
double theta,
int threshold,
1044 double param1 CV_DEFAULT(0),
double param2 CV_DEFAULT(0));
1049 double param1 CV_DEFAULT(100),
1050 double param2 CV_DEFAULT(100),
1051 int min_radius CV_DEFAULT(0),
1052 int max_radius CV_DEFAULT(0));
1056 double reps,
double aeps,
float* line );
1126 #define CV_HAAR_DO_CANNY_PRUNING 1
1127 #define CV_HAAR_SCALE_IMAGE 2
1128 #define CV_HAAR_FIND_BIGGEST_OBJECT 4
1129 #define CV_HAAR_DO_ROUGH_SEARCH 8
1133 CvMemStorage* storage,
double scale_factor CV_DEFAULT(1.1),
1134 int min_neighbors CV_DEFAULT(3),
int flags CV_DEFAULT(0),
1144 CvPoint pt,
int start_stage CV_DEFAULT(0));
1158 const
CvMat* distortion_coeffs,
1170 const
CvMat* camera_matrix,
1171 const
CvMat* dist_coeffs,
1172 const
CvMat* R CV_DEFAULT(0),
1173 const
CvMat* P CV_DEFAULT(0));
1177 CvMat* jacobian CV_DEFAULT(0) );
1186 int method CV_DEFAULT(0),
1187 double ransacReprojThreshold CV_DEFAULT(0),
1188 CvMat* mask CV_DEFAULT(0));
1192 CvMat *matrixQx CV_DEFAULT(NULL),
1193 CvMat *matrixQy CV_DEFAULT(NULL),
1194 CvMat *matrixQz CV_DEFAULT(NULL),
1200 CvMat *rotMatrX CV_DEFAULT(NULL),
1201 CvMat *rotMatrY CV_DEFAULT(NULL),
1202 CvMat *rotMatrZ CV_DEFAULT(NULL),
1213 CvMat* dr3dr1 CV_DEFAULT(0),
CvMat* dr3dt1 CV_DEFAULT(0),
1214 CvMat* dr3dr2 CV_DEFAULT(0),
CvMat* dr3dt2 CV_DEFAULT(0),
1215 CvMat* dt3dr1 CV_DEFAULT(0),
CvMat* dt3dt1 CV_DEFAULT(0),
1216 CvMat* dt3dr2 CV_DEFAULT(0),
CvMat* dt3dt2 CV_DEFAULT(0) );
1223 CvMat* dpdrot CV_DEFAULT(NULL),
CvMat* dpdt CV_DEFAULT(NULL),
1224 CvMat* dpdf CV_DEFAULT(NULL),
CvMat* dpdc CV_DEFAULT(NULL),
1225 CvMat* dpddist CV_DEFAULT(NULL),
1226 double aspect_ratio CV_DEFAULT(0));
1231 const
CvMat* image_points,
1232 const
CvMat* camera_matrix,
1233 const
CvMat* distortion_coeffs,
1234 CvMat* rotation_vector,
1235 CvMat* translation_vector );
1242 CvMat* camera_matrix,
1243 double aspect_ratio CV_DEFAULT(1.) );
1245 #define CV_CALIB_CB_ADAPTIVE_THRESH 1
1246 #define CV_CALIB_CB_NORMALIZE_IMAGE 2
1247 #define CV_CALIB_CB_FILTER_QUADS 4
1252 int* corner_count CV_DEFAULT(NULL),
1261 #define CV_CALIB_USE_INTRINSIC_GUESS 1
1262 #define CV_CALIB_FIX_ASPECT_RATIO 2
1263 #define CV_CALIB_FIX_PRINCIPAL_POINT 4
1264 #define CV_CALIB_ZERO_TANGENT_DIST 8
1265 #define CV_CALIB_FIX_FOCAL_LENGTH 16
1266 #define CV_CALIB_FIX_K1 32
1267 #define CV_CALIB_FIX_K2 64
1268 #define CV_CALIB_FIX_K3 128
1276 CvMat* camera_matrix,
1277 CvMat* distortion_coeffs,
1278 CvMat* rotation_vectors CV_DEFAULT(NULL),
1279 CvMat* translation_vectors CV_DEFAULT(NULL),
1280 int flags CV_DEFAULT(0) );
1286 double aperture_width CV_DEFAULT(0),
1287 double aperture_height CV_DEFAULT(0),
1288 double *fovx CV_DEFAULT(NULL),
1289 double *fovy CV_DEFAULT(NULL),
1292 double *pixel_aspect_ratio CV_DEFAULT(NULL));
1294 #define CV_CALIB_FIX_INTRINSIC 256
1295 #define CV_CALIB_SAME_FOCAL_LENGTH 512
1310 #define CV_CALIB_ZERO_DISPARITY 1024
1315 const
CvMat* dist_coeffs1, const
CvMat* dist_coeffs2,
1326 double threshold CV_DEFAULT(5));
1350 #define CV_FM_7POINT 1
1351 #define CV_FM_8POINT 2
1352 #define CV_FM_LMEDS_ONLY CV_LMEDS
1353 #define CV_FM_RANSAC_ONLY CV_RANSAC
1354 #define CV_FM_LMEDS CV_LMEDS
1355 #define CV_FM_RANSAC CV_RANSAC
1359 double param1 CV_DEFAULT(3.),
double param2 CV_DEFAULT(0.99),
1367 const
CvMat* fundamental_matrix,
1372 #define CV_STEREO_BM_NORMALIZED_RESPONSE 0
1403 #define CV_STEREO_BM_BASIC 0
1404 #define CV_STEREO_BM_FISH_EYE 1
1405 #define CV_STEREO_BM_NARROW 2
1408 int numberOfDisparities CV_DEFAULT(0));
1416 #define CV_STEREO_GC_OCCLUDED SHRT_MAX
1445 int useDisparityGuess CV_DEFAULT(0) );
1463 #ifndef CV_NO_BACKWARD_COMPATIBILITY