1 2 // 3 // This file is auto-generated. Please don't modify it! 4 // 5 package org.opencv.imgproc; 6 7 import java.lang.String; 8 import java.util.ArrayList; 9 import java.util.List; 10 import org.opencv.core.Mat; 11 import org.opencv.core.MatOfFloat; 12 import org.opencv.core.MatOfInt; 13 import org.opencv.core.MatOfInt4; 14 import org.opencv.core.MatOfPoint; 15 import org.opencv.core.MatOfPoint2f; 16 import org.opencv.core.Point; 17 import org.opencv.core.Rect; 18 import org.opencv.core.RotatedRect; 19 import org.opencv.core.Scalar; 20 import org.opencv.core.Size; 21 import org.opencv.core.TermCriteria; 22 import org.opencv.utils.Converters; 23 24 public class Imgproc { 25 26 private static final int 27 IPL_BORDER_CONSTANT = 0, 28 IPL_BORDER_REPLICATE = 1, 29 IPL_BORDER_REFLECT = 2, 30 IPL_BORDER_WRAP = 3, 31 IPL_BORDER_REFLECT_101 = 4, 32 IPL_BORDER_TRANSPARENT = 5, 33 CV_INTER_NN = 0, 34 CV_INTER_LINEAR = 1, 35 CV_INTER_CUBIC = 2, 36 CV_INTER_AREA = 3, 37 CV_INTER_LANCZOS4 = 4, 38 CV_MOP_ERODE = 0, 39 CV_MOP_DILATE = 1, 40 CV_MOP_OPEN = 2, 41 CV_MOP_CLOSE = 3, 42 CV_MOP_GRADIENT = 4, 43 CV_MOP_TOPHAT = 5, 44 CV_MOP_BLACKHAT = 6, 45 CV_RETR_EXTERNAL = 0, 46 CV_RETR_LIST = 1, 47 CV_RETR_CCOMP = 2, 48 CV_RETR_TREE = 3, 49 CV_RETR_FLOODFILL = 4, 50 CV_CHAIN_APPROX_NONE = 1, 51 CV_CHAIN_APPROX_SIMPLE = 2, 52 CV_CHAIN_APPROX_TC89_L1 = 3, 53 CV_CHAIN_APPROX_TC89_KCOS = 4, 54 CV_THRESH_BINARY = 0, 55 CV_THRESH_BINARY_INV = 1, 56 CV_THRESH_TRUNC = 2, 57 CV_THRESH_TOZERO = 3, 58 CV_THRESH_TOZERO_INV = 4, 59 CV_THRESH_MASK = 7, 60 CV_THRESH_OTSU = 8, 61 CV_THRESH_TRIANGLE = 16; 62 63 64 public static final int 65 LINE_AA = 16, 66 LINE_8 = 8, 67 LINE_4 = 4, 68 CV_BLUR_NO_SCALE = 0, 69 CV_BLUR = 1, 70 CV_GAUSSIAN = 2, 71 CV_MEDIAN = 3, 72 CV_BILATERAL = 4, 73 CV_GAUSSIAN_5x5 = 7, 74 CV_SCHARR = -1, 75 CV_MAX_SOBEL_KSIZE = 7, 76 CV_RGBA2mRGBA = 125, 77 CV_mRGBA2RGBA = 126, 78 CV_WARP_FILL_OUTLIERS = 8, 79 CV_WARP_INVERSE_MAP = 16, 80 CV_SHAPE_RECT = 0, 81 CV_SHAPE_CROSS = 1, 82 CV_SHAPE_ELLIPSE = 2, 83 CV_SHAPE_CUSTOM = 100, 84 CV_CHAIN_CODE = 0, 85 CV_LINK_RUNS = 5, 86 CV_POLY_APPROX_DP = 0, 87 CV_CONTOURS_MATCH_I1 = 1, 88 CV_CONTOURS_MATCH_I2 = 2, 89 CV_CONTOURS_MATCH_I3 = 3, 90 CV_CLOCKWISE = 1, 91 CV_COUNTER_CLOCKWISE = 2, 92 CV_COMP_CORREL = 0, 93 CV_COMP_CHISQR = 1, 94 CV_COMP_INTERSECT = 2, 95 CV_COMP_BHATTACHARYYA = 3, 96 CV_COMP_HELLINGER = CV_COMP_BHATTACHARYYA, 97 CV_COMP_CHISQR_ALT = 4, 98 CV_COMP_KL_DIV = 5, 99 CV_DIST_MASK_3 = 3, 100 CV_DIST_MASK_5 = 5, 101 CV_DIST_MASK_PRECISE = 0, 102 CV_DIST_LABEL_CCOMP = 0, 103 CV_DIST_LABEL_PIXEL = 1, 104 CV_DIST_USER = -1, 105 CV_DIST_L1 = 1, 106 CV_DIST_L2 = 2, 107 CV_DIST_C = 3, 108 CV_DIST_L12 = 4, 109 CV_DIST_FAIR = 5, 110 CV_DIST_WELSCH = 6, 111 CV_DIST_HUBER = 7, 112 CV_CANNY_L2_GRADIENT = (1 << 31), 113 CV_HOUGH_STANDARD = 0, 114 CV_HOUGH_PROBABILISTIC = 1, 115 CV_HOUGH_MULTI_SCALE = 2, 116 CV_HOUGH_GRADIENT = 3, 117 MORPH_ERODE = 0, 118 MORPH_DILATE = 1, 119 MORPH_OPEN = 2, 120 MORPH_CLOSE = 3, 121 MORPH_GRADIENT = 4, 122 MORPH_TOPHAT = 5, 123 MORPH_BLACKHAT = 6, 124 MORPH_RECT = 0, 125 MORPH_CROSS = 1, 126 MORPH_ELLIPSE = 2, 127 INTER_NEAREST = 0, 128 INTER_LINEAR = 1, 129 INTER_CUBIC = 2, 130 INTER_AREA = 3, 131 INTER_LANCZOS4 = 4, 132 INTER_MAX = 7, 133 WARP_FILL_OUTLIERS = 8, 134 WARP_INVERSE_MAP = 16, 135 INTER_BITS = 5, 136 INTER_BITS2 = INTER_BITS * 2, 137 INTER_TAB_SIZE = 1 << INTER_BITS, 138 INTER_TAB_SIZE2 = INTER_TAB_SIZE * INTER_TAB_SIZE, 139 DIST_USER = -1, 140 DIST_L1 = 1, 141 DIST_L2 = 2, 142 DIST_C = 3, 143 DIST_L12 = 4, 144 DIST_FAIR = 5, 145 DIST_WELSCH = 6, 146 DIST_HUBER = 7, 147 DIST_MASK_3 = 3, 148 DIST_MASK_5 = 5, 149 DIST_MASK_PRECISE = 0, 150 THRESH_BINARY = 0, 151 THRESH_BINARY_INV = 1, 152 THRESH_TRUNC = 2, 153 THRESH_TOZERO = 3, 154 THRESH_TOZERO_INV = 4, 155 THRESH_MASK = 7, 156 THRESH_OTSU = 8, 157 THRESH_TRIANGLE = 16, 158 ADAPTIVE_THRESH_MEAN_C = 0, 159 ADAPTIVE_THRESH_GAUSSIAN_C = 1, 160 PROJ_SPHERICAL_ORTHO = 0, 161 PROJ_SPHERICAL_EQRECT = 1, 162 GC_BGD = 0, 163 GC_FGD = 1, 164 GC_PR_BGD = 2, 165 GC_PR_FGD = 3, 166 GC_INIT_WITH_RECT = 0, 167 GC_INIT_WITH_MASK = 1, 168 GC_EVAL = 2, 169 DIST_LABEL_CCOMP = 0, 170 DIST_LABEL_PIXEL = 1, 171 FLOODFILL_FIXED_RANGE = 1 << 16, 172 FLOODFILL_MASK_ONLY = 1 << 17, 173 CC_STAT_LEFT = 0, 174 CC_STAT_TOP = 1, 175 CC_STAT_WIDTH = 2, 176 CC_STAT_HEIGHT = 3, 177 CC_STAT_AREA = 4, 178 CC_STAT_MAX = 5, 179 RETR_EXTERNAL = 0, 180 RETR_LIST = 1, 181 RETR_CCOMP = 2, 182 RETR_TREE = 3, 183 RETR_FLOODFILL = 4, 184 CHAIN_APPROX_NONE = 1, 185 CHAIN_APPROX_SIMPLE = 2, 186 CHAIN_APPROX_TC89_L1 = 3, 187 CHAIN_APPROX_TC89_KCOS = 4, 188 HOUGH_STANDARD = 0, 189 HOUGH_PROBABILISTIC = 1, 190 HOUGH_MULTI_SCALE = 2, 191 HOUGH_GRADIENT = 3, 192 LSD_REFINE_NONE = 0, 193 LSD_REFINE_STD = 1, 194 LSD_REFINE_ADV = 2, 195 HISTCMP_CORREL = 0, 196 HISTCMP_CHISQR = 1, 197 HISTCMP_INTERSECT = 2, 198 HISTCMP_BHATTACHARYYA = 3, 199 HISTCMP_HELLINGER = HISTCMP_BHATTACHARYYA, 200 HISTCMP_CHISQR_ALT = 4, 201 HISTCMP_KL_DIV = 5, 202 COLOR_BGR2BGRA = 0, 203 COLOR_RGB2RGBA = COLOR_BGR2BGRA, 204 COLOR_BGRA2BGR = 1, 205 COLOR_RGBA2RGB = COLOR_BGRA2BGR, 206 COLOR_BGR2RGBA = 2, 207 COLOR_RGB2BGRA = COLOR_BGR2RGBA, 208 COLOR_RGBA2BGR = 3, 209 COLOR_BGRA2RGB = COLOR_RGBA2BGR, 210 COLOR_BGR2RGB = 4, 211 COLOR_RGB2BGR = COLOR_BGR2RGB, 212 COLOR_BGRA2RGBA = 5, 213 COLOR_RGBA2BGRA = COLOR_BGRA2RGBA, 214 COLOR_BGR2GRAY = 6, 215 COLOR_RGB2GRAY = 7, 216 COLOR_GRAY2BGR = 8, 217 COLOR_GRAY2RGB = COLOR_GRAY2BGR, 218 COLOR_GRAY2BGRA = 9, 219 COLOR_GRAY2RGBA = COLOR_GRAY2BGRA, 220 COLOR_BGRA2GRAY = 10, 221 COLOR_RGBA2GRAY = 11, 222 COLOR_BGR2BGR565 = 12, 223 COLOR_RGB2BGR565 = 13, 224 COLOR_BGR5652BGR = 14, 225 COLOR_BGR5652RGB = 15, 226 COLOR_BGRA2BGR565 = 16, 227 COLOR_RGBA2BGR565 = 17, 228 COLOR_BGR5652BGRA = 18, 229 COLOR_BGR5652RGBA = 19, 230 COLOR_GRAY2BGR565 = 20, 231 COLOR_BGR5652GRAY = 21, 232 COLOR_BGR2BGR555 = 22, 233 COLOR_RGB2BGR555 = 23, 234 COLOR_BGR5552BGR = 24, 235 COLOR_BGR5552RGB = 25, 236 COLOR_BGRA2BGR555 = 26, 237 COLOR_RGBA2BGR555 = 27, 238 COLOR_BGR5552BGRA = 28, 239 COLOR_BGR5552RGBA = 29, 240 COLOR_GRAY2BGR555 = 30, 241 COLOR_BGR5552GRAY = 31, 242 COLOR_BGR2XYZ = 32, 243 COLOR_RGB2XYZ = 33, 244 COLOR_XYZ2BGR = 34, 245 COLOR_XYZ2RGB = 35, 246 COLOR_BGR2YCrCb = 36, 247 COLOR_RGB2YCrCb = 37, 248 COLOR_YCrCb2BGR = 38, 249 COLOR_YCrCb2RGB = 39, 250 COLOR_BGR2HSV = 40, 251 COLOR_RGB2HSV = 41, 252 COLOR_BGR2Lab = 44, 253 COLOR_RGB2Lab = 45, 254 COLOR_BGR2Luv = 50, 255 COLOR_RGB2Luv = 51, 256 COLOR_BGR2HLS = 52, 257 COLOR_RGB2HLS = 53, 258 COLOR_HSV2BGR = 54, 259 COLOR_HSV2RGB = 55, 260 COLOR_Lab2BGR = 56, 261 COLOR_Lab2RGB = 57, 262 COLOR_Luv2BGR = 58, 263 COLOR_Luv2RGB = 59, 264 COLOR_HLS2BGR = 60, 265 COLOR_HLS2RGB = 61, 266 COLOR_BGR2HSV_FULL = 66, 267 COLOR_RGB2HSV_FULL = 67, 268 COLOR_BGR2HLS_FULL = 68, 269 COLOR_RGB2HLS_FULL = 69, 270 COLOR_HSV2BGR_FULL = 70, 271 COLOR_HSV2RGB_FULL = 71, 272 COLOR_HLS2BGR_FULL = 72, 273 COLOR_HLS2RGB_FULL = 73, 274 COLOR_LBGR2Lab = 74, 275 COLOR_LRGB2Lab = 75, 276 COLOR_LBGR2Luv = 76, 277 COLOR_LRGB2Luv = 77, 278 COLOR_Lab2LBGR = 78, 279 COLOR_Lab2LRGB = 79, 280 COLOR_Luv2LBGR = 80, 281 COLOR_Luv2LRGB = 81, 282 COLOR_BGR2YUV = 82, 283 COLOR_RGB2YUV = 83, 284 COLOR_YUV2BGR = 84, 285 COLOR_YUV2RGB = 85, 286 COLOR_YUV2RGB_NV12 = 90, 287 COLOR_YUV2BGR_NV12 = 91, 288 COLOR_YUV2RGB_NV21 = 92, 289 COLOR_YUV2BGR_NV21 = 93, 290 COLOR_YUV420sp2RGB = COLOR_YUV2RGB_NV21, 291 COLOR_YUV420sp2BGR = COLOR_YUV2BGR_NV21, 292 COLOR_YUV2RGBA_NV12 = 94, 293 COLOR_YUV2BGRA_NV12 = 95, 294 COLOR_YUV2RGBA_NV21 = 96, 295 COLOR_YUV2BGRA_NV21 = 97, 296 COLOR_YUV420sp2RGBA = COLOR_YUV2RGBA_NV21, 297 COLOR_YUV420sp2BGRA = COLOR_YUV2BGRA_NV21, 298 COLOR_YUV2RGB_YV12 = 98, 299 COLOR_YUV2BGR_YV12 = 99, 300 COLOR_YUV2RGB_IYUV = 100, 301 COLOR_YUV2BGR_IYUV = 101, 302 COLOR_YUV2RGB_I420 = COLOR_YUV2RGB_IYUV, 303 COLOR_YUV2BGR_I420 = COLOR_YUV2BGR_IYUV, 304 COLOR_YUV420p2RGB = COLOR_YUV2RGB_YV12, 305 COLOR_YUV420p2BGR = COLOR_YUV2BGR_YV12, 306 COLOR_YUV2RGBA_YV12 = 102, 307 COLOR_YUV2BGRA_YV12 = 103, 308 COLOR_YUV2RGBA_IYUV = 104, 309 COLOR_YUV2BGRA_IYUV = 105, 310 COLOR_YUV2RGBA_I420 = COLOR_YUV2RGBA_IYUV, 311 COLOR_YUV2BGRA_I420 = COLOR_YUV2BGRA_IYUV, 312 COLOR_YUV420p2RGBA = COLOR_YUV2RGBA_YV12, 313 COLOR_YUV420p2BGRA = COLOR_YUV2BGRA_YV12, 314 COLOR_YUV2GRAY_420 = 106, 315 COLOR_YUV2GRAY_NV21 = COLOR_YUV2GRAY_420, 316 COLOR_YUV2GRAY_NV12 = COLOR_YUV2GRAY_420, 317 COLOR_YUV2GRAY_YV12 = COLOR_YUV2GRAY_420, 318 COLOR_YUV2GRAY_IYUV = COLOR_YUV2GRAY_420, 319 COLOR_YUV2GRAY_I420 = COLOR_YUV2GRAY_420, 320 COLOR_YUV420sp2GRAY = COLOR_YUV2GRAY_420, 321 COLOR_YUV420p2GRAY = COLOR_YUV2GRAY_420, 322 COLOR_YUV2RGB_UYVY = 107, 323 COLOR_YUV2BGR_UYVY = 108, 324 COLOR_YUV2RGB_Y422 = COLOR_YUV2RGB_UYVY, 325 COLOR_YUV2BGR_Y422 = COLOR_YUV2BGR_UYVY, 326 COLOR_YUV2RGB_UYNV = COLOR_YUV2RGB_UYVY, 327 COLOR_YUV2BGR_UYNV = COLOR_YUV2BGR_UYVY, 328 COLOR_YUV2RGBA_UYVY = 111, 329 COLOR_YUV2BGRA_UYVY = 112, 330 COLOR_YUV2RGBA_Y422 = COLOR_YUV2RGBA_UYVY, 331 COLOR_YUV2BGRA_Y422 = COLOR_YUV2BGRA_UYVY, 332 COLOR_YUV2RGBA_UYNV = COLOR_YUV2RGBA_UYVY, 333 COLOR_YUV2BGRA_UYNV = COLOR_YUV2BGRA_UYVY, 334 COLOR_YUV2RGB_YUY2 = 115, 335 COLOR_YUV2BGR_YUY2 = 116, 336 COLOR_YUV2RGB_YVYU = 117, 337 COLOR_YUV2BGR_YVYU = 118, 338 COLOR_YUV2RGB_YUYV = COLOR_YUV2RGB_YUY2, 339 COLOR_YUV2BGR_YUYV = COLOR_YUV2BGR_YUY2, 340 COLOR_YUV2RGB_YUNV = COLOR_YUV2RGB_YUY2, 341 COLOR_YUV2BGR_YUNV = COLOR_YUV2BGR_YUY2, 342 COLOR_YUV2RGBA_YUY2 = 119, 343 COLOR_YUV2BGRA_YUY2 = 120, 344 COLOR_YUV2RGBA_YVYU = 121, 345 COLOR_YUV2BGRA_YVYU = 122, 346 COLOR_YUV2RGBA_YUYV = COLOR_YUV2RGBA_YUY2, 347 COLOR_YUV2BGRA_YUYV = COLOR_YUV2BGRA_YUY2, 348 COLOR_YUV2RGBA_YUNV = COLOR_YUV2RGBA_YUY2, 349 COLOR_YUV2BGRA_YUNV = COLOR_YUV2BGRA_YUY2, 350 COLOR_YUV2GRAY_UYVY = 123, 351 COLOR_YUV2GRAY_YUY2 = 124, 352 COLOR_YUV2GRAY_Y422 = COLOR_YUV2GRAY_UYVY, 353 COLOR_YUV2GRAY_UYNV = COLOR_YUV2GRAY_UYVY, 354 COLOR_YUV2GRAY_YVYU = COLOR_YUV2GRAY_YUY2, 355 COLOR_YUV2GRAY_YUYV = COLOR_YUV2GRAY_YUY2, 356 COLOR_YUV2GRAY_YUNV = COLOR_YUV2GRAY_YUY2, 357 COLOR_RGBA2mRGBA = 125, 358 COLOR_mRGBA2RGBA = 126, 359 COLOR_RGB2YUV_I420 = 127, 360 COLOR_BGR2YUV_I420 = 128, 361 COLOR_RGB2YUV_IYUV = COLOR_RGB2YUV_I420, 362 COLOR_BGR2YUV_IYUV = COLOR_BGR2YUV_I420, 363 COLOR_RGBA2YUV_I420 = 129, 364 COLOR_BGRA2YUV_I420 = 130, 365 COLOR_RGBA2YUV_IYUV = COLOR_RGBA2YUV_I420, 366 COLOR_BGRA2YUV_IYUV = COLOR_BGRA2YUV_I420, 367 COLOR_RGB2YUV_YV12 = 131, 368 COLOR_BGR2YUV_YV12 = 132, 369 COLOR_RGBA2YUV_YV12 = 133, 370 COLOR_BGRA2YUV_YV12 = 134, 371 COLOR_BayerBG2BGR = 46, 372 COLOR_BayerGB2BGR = 47, 373 COLOR_BayerRG2BGR = 48, 374 COLOR_BayerGR2BGR = 49, 375 COLOR_BayerBG2RGB = COLOR_BayerRG2BGR, 376 COLOR_BayerGB2RGB = COLOR_BayerGR2BGR, 377 COLOR_BayerRG2RGB = COLOR_BayerBG2BGR, 378 COLOR_BayerGR2RGB = COLOR_BayerGB2BGR, 379 COLOR_BayerBG2GRAY = 86, 380 COLOR_BayerGB2GRAY = 87, 381 COLOR_BayerRG2GRAY = 88, 382 COLOR_BayerGR2GRAY = 89, 383 COLOR_BayerBG2BGR_VNG = 62, 384 COLOR_BayerGB2BGR_VNG = 63, 385 COLOR_BayerRG2BGR_VNG = 64, 386 COLOR_BayerGR2BGR_VNG = 65, 387 COLOR_BayerBG2RGB_VNG = COLOR_BayerRG2BGR_VNG, 388 COLOR_BayerGB2RGB_VNG = COLOR_BayerGR2BGR_VNG, 389 COLOR_BayerRG2RGB_VNG = COLOR_BayerBG2BGR_VNG, 390 COLOR_BayerGR2RGB_VNG = COLOR_BayerGB2BGR_VNG, 391 COLOR_BayerBG2BGR_EA = 135, 392 COLOR_BayerGB2BGR_EA = 136, 393 COLOR_BayerRG2BGR_EA = 137, 394 COLOR_BayerGR2BGR_EA = 138, 395 COLOR_BayerBG2RGB_EA = COLOR_BayerRG2BGR_EA, 396 COLOR_BayerGB2RGB_EA = COLOR_BayerGR2BGR_EA, 397 COLOR_BayerRG2RGB_EA = COLOR_BayerBG2BGR_EA, 398 COLOR_BayerGR2RGB_EA = COLOR_BayerGB2BGR_EA, 399 COLOR_COLORCVT_MAX = 139, 400 INTERSECT_NONE = 0, 401 INTERSECT_PARTIAL = 1, 402 INTERSECT_FULL = 2, 403 TM_SQDIFF = 0, 404 TM_SQDIFF_NORMED = 1, 405 TM_CCORR = 2, 406 TM_CCORR_NORMED = 3, 407 TM_CCOEFF = 4, 408 TM_CCOEFF_NORMED = 5, 409 COLORMAP_AUTUMN = 0, 410 COLORMAP_BONE = 1, 411 COLORMAP_JET = 2, 412 COLORMAP_WINTER = 3, 413 COLORMAP_RAINBOW = 4, 414 COLORMAP_OCEAN = 5, 415 COLORMAP_SUMMER = 6, 416 COLORMAP_SPRING = 7, 417 COLORMAP_COOL = 8, 418 COLORMAP_HSV = 9, 419 COLORMAP_PINK = 10, 420 COLORMAP_HOT = 11, 421 COLORMAP_PARULA = 12; 422 423 424 // 425 // C++: void remap(Mat src, Mat& dst, Mat map1, Mat map2, int interpolation, int borderMode = BORDER_CONSTANT, Scalar borderValue = Scalar()) 426 // 427 428 //javadoc: remap(src, dst, map1, map2, interpolation, borderMode, borderValue) 429 public static void remap(Mat src, Mat dst, Mat map1, Mat map2, int interpolation, int borderMode, Scalar borderValue) 430 { 431 432 remap_0(src.nativeObj, dst.nativeObj, map1.nativeObj, map2.nativeObj, interpolation, borderMode, borderValue.val[0], borderValue.val[1], borderValue.val[2], borderValue.val[3]); 433 434 return; 435 } 436 437 //javadoc: remap(src, dst, map1, map2, interpolation) 438 public static void remap(Mat src, Mat dst, Mat map1, Mat map2, int interpolation) 439 { 440 441 remap_1(src.nativeObj, dst.nativeObj, map1.nativeObj, map2.nativeObj, interpolation); 442 443 return; 444 } 445 446 447 // 448 // C++: void convertMaps(Mat map1, Mat map2, Mat& dstmap1, Mat& dstmap2, int dstmap1type, bool nninterpolation = false) 449 // 450 451 //javadoc: convertMaps(map1, map2, dstmap1, dstmap2, dstmap1type, nninterpolation) 452 public static void convertMaps(Mat map1, Mat map2, Mat dstmap1, Mat dstmap2, int dstmap1type, boolean nninterpolation) 453 { 454 455 convertMaps_0(map1.nativeObj, map2.nativeObj, dstmap1.nativeObj, dstmap2.nativeObj, dstmap1type, nninterpolation); 456 457 return; 458 } 459 460 //javadoc: convertMaps(map1, map2, dstmap1, dstmap2, dstmap1type) 461 public static void convertMaps(Mat map1, Mat map2, Mat dstmap1, Mat dstmap2, int dstmap1type) 462 { 463 464 convertMaps_1(map1.nativeObj, map2.nativeObj, dstmap1.nativeObj, dstmap2.nativeObj, dstmap1type); 465 466 return; 467 } 468 469 470 // 471 // C++: Mat getRotationMatrix2D(Point2f center, double angle, double scale) 472 // 473 474 //javadoc: getRotationMatrix2D(center, angle, scale) 475 public static Mat getRotationMatrix2D(Point center, double angle, double scale) 476 { 477 478 Mat retVal = new Mat(getRotationMatrix2D_0(center.x, center.y, angle, scale)); 479 480 return retVal; 481 } 482 483 484 // 485 // C++: void invertAffineTransform(Mat M, Mat& iM) 486 // 487 488 //javadoc: invertAffineTransform(M, iM) 489 public static void invertAffineTransform(Mat M, Mat iM) 490 { 491 492 invertAffineTransform_0(M.nativeObj, iM.nativeObj); 493 494 return; 495 } 496 497 498 // 499 // C++: Mat getPerspectiveTransform(Mat src, Mat dst) 500 // 501 502 //javadoc: getPerspectiveTransform(src, dst) 503 public static Mat getPerspectiveTransform(Mat src, Mat dst) 504 { 505 506 Mat retVal = new Mat(getPerspectiveTransform_0(src.nativeObj, dst.nativeObj)); 507 508 return retVal; 509 } 510 511 512 // 513 // C++: Mat getAffineTransform(vector_Point2f src, vector_Point2f dst) 514 // 515 516 //javadoc: getAffineTransform(src, dst) 517 public static Mat getAffineTransform(MatOfPoint2f src, MatOfPoint2f dst) 518 { 519 Mat src_mat = src; 520 Mat dst_mat = dst; 521 Mat retVal = new Mat(getAffineTransform_0(src_mat.nativeObj, dst_mat.nativeObj)); 522 523 return retVal; 524 } 525 526 527 // 528 // C++: void getRectSubPix(Mat image, Size patchSize, Point2f center, Mat& patch, int patchType = -1) 529 // 530 531 //javadoc: getRectSubPix(image, patchSize, center, patch, patchType) 532 public static void getRectSubPix(Mat image, Size patchSize, Point center, Mat patch, int patchType) 533 { 534 535 getRectSubPix_0(image.nativeObj, patchSize.width, patchSize.height, center.x, center.y, patch.nativeObj, patchType); 536 537 return; 538 } 539 540 //javadoc: getRectSubPix(image, patchSize, center, patch) 541 public static void getRectSubPix(Mat image, Size patchSize, Point center, Mat patch) 542 { 543 544 getRectSubPix_1(image.nativeObj, patchSize.width, patchSize.height, center.x, center.y, patch.nativeObj); 545 546 return; 547 } 548 549 550 // 551 // C++: void logPolar(Mat src, Mat& dst, Point2f center, double M, int flags) 552 // 553 554 //javadoc: logPolar(src, dst, center, M, flags) 555 public static void logPolar(Mat src, Mat dst, Point center, double M, int flags) 556 { 557 558 logPolar_0(src.nativeObj, dst.nativeObj, center.x, center.y, M, flags); 559 560 return; 561 } 562 563 564 // 565 // C++: void linearPolar(Mat src, Mat& dst, Point2f center, double maxRadius, int flags) 566 // 567 568 //javadoc: linearPolar(src, dst, center, maxRadius, flags) 569 public static void linearPolar(Mat src, Mat dst, Point center, double maxRadius, int flags) 570 { 571 572 linearPolar_0(src.nativeObj, dst.nativeObj, center.x, center.y, maxRadius, flags); 573 574 return; 575 } 576 577 578 // 579 // C++: void integral(Mat src, Mat& sum, int sdepth = -1) 580 // 581 582 //javadoc: integral(src, sum, sdepth) 583 public static void integral(Mat src, Mat sum, int sdepth) 584 { 585 586 integral_0(src.nativeObj, sum.nativeObj, sdepth); 587 588 return; 589 } 590 591 //javadoc: integral(src, sum) 592 public static void integral(Mat src, Mat sum) 593 { 594 595 integral_1(src.nativeObj, sum.nativeObj); 596 597 return; 598 } 599 600 601 // 602 // C++: void filter2D(Mat src, Mat& dst, int ddepth, Mat kernel, Point anchor = Point(-1,-1), double delta = 0, int borderType = BORDER_DEFAULT) 603 // 604 605 //javadoc: filter2D(src, dst, ddepth, kernel, anchor, delta, borderType) 606 public static void filter2D(Mat src, Mat dst, int ddepth, Mat kernel, Point anchor, double delta, int borderType) 607 { 608 609 filter2D_0(src.nativeObj, dst.nativeObj, ddepth, kernel.nativeObj, anchor.x, anchor.y, delta, borderType); 610 611 return; 612 } 613 614 //javadoc: filter2D(src, dst, ddepth, kernel, anchor, delta) 615 public static void filter2D(Mat src, Mat dst, int ddepth, Mat kernel, Point anchor, double delta) 616 { 617 618 filter2D_1(src.nativeObj, dst.nativeObj, ddepth, kernel.nativeObj, anchor.x, anchor.y, delta); 619 620 return; 621 } 622 623 //javadoc: filter2D(src, dst, ddepth, kernel) 624 public static void filter2D(Mat src, Mat dst, int ddepth, Mat kernel) 625 { 626 627 filter2D_2(src.nativeObj, dst.nativeObj, ddepth, kernel.nativeObj); 628 629 return; 630 } 631 632 633 // 634 // C++: void sepFilter2D(Mat src, Mat& dst, int ddepth, Mat kernelX, Mat kernelY, Point anchor = Point(-1,-1), double delta = 0, int borderType = BORDER_DEFAULT) 635 // 636 637 //javadoc: sepFilter2D(src, dst, ddepth, kernelX, kernelY, anchor, delta, borderType) 638 public static void sepFilter2D(Mat src, Mat dst, int ddepth, Mat kernelX, Mat kernelY, Point anchor, double delta, int borderType) 639 { 640 641 sepFilter2D_0(src.nativeObj, dst.nativeObj, ddepth, kernelX.nativeObj, kernelY.nativeObj, anchor.x, anchor.y, delta, borderType); 642 643 return; 644 } 645 646 //javadoc: sepFilter2D(src, dst, ddepth, kernelX, kernelY, anchor, delta) 647 public static void sepFilter2D(Mat src, Mat dst, int ddepth, Mat kernelX, Mat kernelY, Point anchor, double delta) 648 { 649 650 sepFilter2D_1(src.nativeObj, dst.nativeObj, ddepth, kernelX.nativeObj, kernelY.nativeObj, anchor.x, anchor.y, delta); 651 652 return; 653 } 654 655 //javadoc: sepFilter2D(src, dst, ddepth, kernelX, kernelY) 656 public static void sepFilter2D(Mat src, Mat dst, int ddepth, Mat kernelX, Mat kernelY) 657 { 658 659 sepFilter2D_2(src.nativeObj, dst.nativeObj, ddepth, kernelX.nativeObj, kernelY.nativeObj); 660 661 return; 662 } 663 664 665 // 666 // C++: void Sobel(Mat src, Mat& dst, int ddepth, int dx, int dy, int ksize = 3, double scale = 1, double delta = 0, int borderType = BORDER_DEFAULT) 667 // 668 669 //javadoc: Sobel(src, dst, ddepth, dx, dy, ksize, scale, delta, borderType) 670 public static void Sobel(Mat src, Mat dst, int ddepth, int dx, int dy, int ksize, double scale, double delta, int borderType) 671 { 672 673 Sobel_0(src.nativeObj, dst.nativeObj, ddepth, dx, dy, ksize, scale, delta, borderType); 674 675 return; 676 } 677 678 //javadoc: Sobel(src, dst, ddepth, dx, dy, ksize, scale, delta) 679 public static void Sobel(Mat src, Mat dst, int ddepth, int dx, int dy, int ksize, double scale, double delta) 680 { 681 682 Sobel_1(src.nativeObj, dst.nativeObj, ddepth, dx, dy, ksize, scale, delta); 683 684 return; 685 } 686 687 //javadoc: Sobel(src, dst, ddepth, dx, dy) 688 public static void Sobel(Mat src, Mat dst, int ddepth, int dx, int dy) 689 { 690 691 Sobel_2(src.nativeObj, dst.nativeObj, ddepth, dx, dy); 692 693 return; 694 } 695 696 697 // 698 // C++: void Scharr(Mat src, Mat& dst, int ddepth, int dx, int dy, double scale = 1, double delta = 0, int borderType = BORDER_DEFAULT) 699 // 700 701 //javadoc: Scharr(src, dst, ddepth, dx, dy, scale, delta, borderType) 702 public static void Scharr(Mat src, Mat dst, int ddepth, int dx, int dy, double scale, double delta, int borderType) 703 { 704 705 Scharr_0(src.nativeObj, dst.nativeObj, ddepth, dx, dy, scale, delta, borderType); 706 707 return; 708 } 709 710 //javadoc: Scharr(src, dst, ddepth, dx, dy, scale, delta) 711 public static void Scharr(Mat src, Mat dst, int ddepth, int dx, int dy, double scale, double delta) 712 { 713 714 Scharr_1(src.nativeObj, dst.nativeObj, ddepth, dx, dy, scale, delta); 715 716 return; 717 } 718 719 //javadoc: Scharr(src, dst, ddepth, dx, dy) 720 public static void Scharr(Mat src, Mat dst, int ddepth, int dx, int dy) 721 { 722 723 Scharr_2(src.nativeObj, dst.nativeObj, ddepth, dx, dy); 724 725 return; 726 } 727 728 729 // 730 // C++: void Laplacian(Mat src, Mat& dst, int ddepth, int ksize = 1, double scale = 1, double delta = 0, int borderType = BORDER_DEFAULT) 731 // 732 733 //javadoc: Laplacian(src, dst, ddepth, ksize, scale, delta, borderType) 734 public static void Laplacian(Mat src, Mat dst, int ddepth, int ksize, double scale, double delta, int borderType) 735 { 736 737 Laplacian_0(src.nativeObj, dst.nativeObj, ddepth, ksize, scale, delta, borderType); 738 739 return; 740 } 741 742 //javadoc: Laplacian(src, dst, ddepth, ksize, scale, delta) 743 public static void Laplacian(Mat src, Mat dst, int ddepth, int ksize, double scale, double delta) 744 { 745 746 Laplacian_1(src.nativeObj, dst.nativeObj, ddepth, ksize, scale, delta); 747 748 return; 749 } 750 751 //javadoc: Laplacian(src, dst, ddepth) 752 public static void Laplacian(Mat src, Mat dst, int ddepth) 753 { 754 755 Laplacian_2(src.nativeObj, dst.nativeObj, ddepth); 756 757 return; 758 } 759 760 761 // 762 // C++: void Canny(Mat image, Mat& edges, double threshold1, double threshold2, int apertureSize = 3, bool L2gradient = false) 763 // 764 765 //javadoc: Canny(image, edges, threshold1, threshold2, apertureSize, L2gradient) 766 public static void Canny(Mat image, Mat edges, double threshold1, double threshold2, int apertureSize, boolean L2gradient) 767 { 768 769 Canny_0(image.nativeObj, edges.nativeObj, threshold1, threshold2, apertureSize, L2gradient); 770 771 return; 772 } 773 774 //javadoc: Canny(image, edges, threshold1, threshold2) 775 public static void Canny(Mat image, Mat edges, double threshold1, double threshold2) 776 { 777 778 Canny_1(image.nativeObj, edges.nativeObj, threshold1, threshold2); 779 780 return; 781 } 782 783 784 // 785 // C++: void cornerMinEigenVal(Mat src, Mat& dst, int blockSize, int ksize = 3, int borderType = BORDER_DEFAULT) 786 // 787 788 //javadoc: cornerMinEigenVal(src, dst, blockSize, ksize, borderType) 789 public static void cornerMinEigenVal(Mat src, Mat dst, int blockSize, int ksize, int borderType) 790 { 791 792 cornerMinEigenVal_0(src.nativeObj, dst.nativeObj, blockSize, ksize, borderType); 793 794 return; 795 } 796 797 //javadoc: cornerMinEigenVal(src, dst, blockSize, ksize) 798 public static void cornerMinEigenVal(Mat src, Mat dst, int blockSize, int ksize) 799 { 800 801 cornerMinEigenVal_1(src.nativeObj, dst.nativeObj, blockSize, ksize); 802 803 return; 804 } 805 806 //javadoc: cornerMinEigenVal(src, dst, blockSize) 807 public static void cornerMinEigenVal(Mat src, Mat dst, int blockSize) 808 { 809 810 cornerMinEigenVal_2(src.nativeObj, dst.nativeObj, blockSize); 811 812 return; 813 } 814 815 816 // 817 // C++: Ptr_LineSegmentDetector createLineSegmentDetector(int _refine = LSD_REFINE_STD, double _scale = 0.8, double _sigma_scale = 0.6, double _quant = 2.0, double _ang_th = 22.5, double _log_eps = 0, double _density_th = 0.7, int _n_bins = 1024) 818 // 819 820 //javadoc: createLineSegmentDetector(_refine, _scale, _sigma_scale, _quant, _ang_th, _log_eps, _density_th, _n_bins) 821 public static LineSegmentDetector createLineSegmentDetector(int _refine, double _scale, double _sigma_scale, double _quant, double _ang_th, double _log_eps, double _density_th, int _n_bins) 822 { 823 824 LineSegmentDetector retVal = new LineSegmentDetector(createLineSegmentDetector_0(_refine, _scale, _sigma_scale, _quant, _ang_th, _log_eps, _density_th, _n_bins)); 825 826 return retVal; 827 } 828 829 //javadoc: createLineSegmentDetector() 830 public static LineSegmentDetector createLineSegmentDetector() 831 { 832 833 LineSegmentDetector retVal = new LineSegmentDetector(createLineSegmentDetector_1()); 834 835 return retVal; 836 } 837 838 839 // 840 // C++: Mat getGaussianKernel(int ksize, double sigma, int ktype = CV_64F) 841 // 842 843 //javadoc: getGaussianKernel(ksize, sigma, ktype) 844 public static Mat getGaussianKernel(int ksize, double sigma, int ktype) 845 { 846 847 Mat retVal = new Mat(getGaussianKernel_0(ksize, sigma, ktype)); 848 849 return retVal; 850 } 851 852 //javadoc: getGaussianKernel(ksize, sigma) 853 public static Mat getGaussianKernel(int ksize, double sigma) 854 { 855 856 Mat retVal = new Mat(getGaussianKernel_1(ksize, sigma)); 857 858 return retVal; 859 } 860 861 862 // 863 // C++: void getDerivKernels(Mat& kx, Mat& ky, int dx, int dy, int ksize, bool normalize = false, int ktype = CV_32F) 864 // 865 866 //javadoc: getDerivKernels(kx, ky, dx, dy, ksize, normalize, ktype) 867 public static void getDerivKernels(Mat kx, Mat ky, int dx, int dy, int ksize, boolean normalize, int ktype) 868 { 869 870 getDerivKernels_0(kx.nativeObj, ky.nativeObj, dx, dy, ksize, normalize, ktype); 871 872 return; 873 } 874 875 //javadoc: getDerivKernels(kx, ky, dx, dy, ksize) 876 public static void getDerivKernels(Mat kx, Mat ky, int dx, int dy, int ksize) 877 { 878 879 getDerivKernels_1(kx.nativeObj, ky.nativeObj, dx, dy, ksize); 880 881 return; 882 } 883 884 885 // 886 // C++: Mat getGaborKernel(Size ksize, double sigma, double theta, double lambd, double gamma, double psi = CV_PI*0.5, int ktype = CV_64F) 887 // 888 889 //javadoc: getGaborKernel(ksize, sigma, theta, lambd, gamma, psi, ktype) 890 public static Mat getGaborKernel(Size ksize, double sigma, double theta, double lambd, double gamma, double psi, int ktype) 891 { 892 893 Mat retVal = new Mat(getGaborKernel_0(ksize.width, ksize.height, sigma, theta, lambd, gamma, psi, ktype)); 894 895 return retVal; 896 } 897 898 //javadoc: getGaborKernel(ksize, sigma, theta, lambd, gamma) 899 public static Mat getGaborKernel(Size ksize, double sigma, double theta, double lambd, double gamma) 900 { 901 902 Mat retVal = new Mat(getGaborKernel_1(ksize.width, ksize.height, sigma, theta, lambd, gamma)); 903 904 return retVal; 905 } 906 907 908 // 909 // C++: Mat getStructuringElement(int shape, Size ksize, Point anchor = Point(-1,-1)) 910 // 911 912 //javadoc: getStructuringElement(shape, ksize, anchor) 913 public static Mat getStructuringElement(int shape, Size ksize, Point anchor) 914 { 915 916 Mat retVal = new Mat(getStructuringElement_0(shape, ksize.width, ksize.height, anchor.x, anchor.y)); 917 918 return retVal; 919 } 920 921 //javadoc: getStructuringElement(shape, ksize) 922 public static Mat getStructuringElement(int shape, Size ksize) 923 { 924 925 Mat retVal = new Mat(getStructuringElement_1(shape, ksize.width, ksize.height)); 926 927 return retVal; 928 } 929 930 931 // 932 // C++: void medianBlur(Mat src, Mat& dst, int ksize) 933 // 934 935 //javadoc: medianBlur(src, dst, ksize) 936 public static void medianBlur(Mat src, Mat dst, int ksize) 937 { 938 939 medianBlur_0(src.nativeObj, dst.nativeObj, ksize); 940 941 return; 942 } 943 944 945 // 946 // C++: void GaussianBlur(Mat src, Mat& dst, Size ksize, double sigmaX, double sigmaY = 0, int borderType = BORDER_DEFAULT) 947 // 948 949 //javadoc: GaussianBlur(src, dst, ksize, sigmaX, sigmaY, borderType) 950 public static void GaussianBlur(Mat src, Mat dst, Size ksize, double sigmaX, double sigmaY, int borderType) 951 { 952 953 GaussianBlur_0(src.nativeObj, dst.nativeObj, ksize.width, ksize.height, sigmaX, sigmaY, borderType); 954 955 return; 956 } 957 958 //javadoc: GaussianBlur(src, dst, ksize, sigmaX, sigmaY) 959 public static void GaussianBlur(Mat src, Mat dst, Size ksize, double sigmaX, double sigmaY) 960 { 961 962 GaussianBlur_1(src.nativeObj, dst.nativeObj, ksize.width, ksize.height, sigmaX, sigmaY); 963 964 return; 965 } 966 967 //javadoc: GaussianBlur(src, dst, ksize, sigmaX) 968 public static void GaussianBlur(Mat src, Mat dst, Size ksize, double sigmaX) 969 { 970 971 GaussianBlur_2(src.nativeObj, dst.nativeObj, ksize.width, ksize.height, sigmaX); 972 973 return; 974 } 975 976 977 // 978 // C++: void bilateralFilter(Mat src, Mat& dst, int d, double sigmaColor, double sigmaSpace, int borderType = BORDER_DEFAULT) 979 // 980 981 //javadoc: bilateralFilter(src, dst, d, sigmaColor, sigmaSpace, borderType) 982 public static void bilateralFilter(Mat src, Mat dst, int d, double sigmaColor, double sigmaSpace, int borderType) 983 { 984 985 bilateralFilter_0(src.nativeObj, dst.nativeObj, d, sigmaColor, sigmaSpace, borderType); 986 987 return; 988 } 989 990 //javadoc: bilateralFilter(src, dst, d, sigmaColor, sigmaSpace) 991 public static void bilateralFilter(Mat src, Mat dst, int d, double sigmaColor, double sigmaSpace) 992 { 993 994 bilateralFilter_1(src.nativeObj, dst.nativeObj, d, sigmaColor, sigmaSpace); 995 996 return; 997 } 998 999 1000 // 1001 // C++: void boxFilter(Mat src, Mat& dst, int ddepth, Size ksize, Point anchor = Point(-1,-1), bool normalize = true, int borderType = BORDER_DEFAULT) 1002 // 1003 1004 //javadoc: boxFilter(src, dst, ddepth, ksize, anchor, normalize, borderType) 1005 public static void boxFilter(Mat src, Mat dst, int ddepth, Size ksize, Point anchor, boolean normalize, int borderType) 1006 { 1007 1008 boxFilter_0(src.nativeObj, dst.nativeObj, ddepth, ksize.width, ksize.height, anchor.x, anchor.y, normalize, borderType); 1009 1010 return; 1011 } 1012 1013 //javadoc: boxFilter(src, dst, ddepth, ksize, anchor, normalize) 1014 public static void boxFilter(Mat src, Mat dst, int ddepth, Size ksize, Point anchor, boolean normalize) 1015 { 1016 1017 boxFilter_1(src.nativeObj, dst.nativeObj, ddepth, ksize.width, ksize.height, anchor.x, anchor.y, normalize); 1018 1019 return; 1020 } 1021 1022 //javadoc: boxFilter(src, dst, ddepth, ksize) 1023 public static void boxFilter(Mat src, Mat dst, int ddepth, Size ksize) 1024 { 1025 1026 boxFilter_2(src.nativeObj, dst.nativeObj, ddepth, ksize.width, ksize.height); 1027 1028 return; 1029 } 1030 1031 1032 // 1033 // C++: void sqrBoxFilter(Mat _src, Mat& _dst, int ddepth, Size ksize, Point anchor = Point(-1, -1), bool normalize = true, int borderType = BORDER_DEFAULT) 1034 // 1035 1036 //javadoc: sqrBoxFilter(_src, _dst, ddepth, ksize, anchor, normalize, borderType) 1037 public static void sqrBoxFilter(Mat _src, Mat _dst, int ddepth, Size ksize, Point anchor, boolean normalize, int borderType) 1038 { 1039 1040 sqrBoxFilter_0(_src.nativeObj, _dst.nativeObj, ddepth, ksize.width, ksize.height, anchor.x, anchor.y, normalize, borderType); 1041 1042 return; 1043 } 1044 1045 //javadoc: sqrBoxFilter(_src, _dst, ddepth, ksize, anchor, normalize) 1046 public static void sqrBoxFilter(Mat _src, Mat _dst, int ddepth, Size ksize, Point anchor, boolean normalize) 1047 { 1048 1049 sqrBoxFilter_1(_src.nativeObj, _dst.nativeObj, ddepth, ksize.width, ksize.height, anchor.x, anchor.y, normalize); 1050 1051 return; 1052 } 1053 1054 //javadoc: sqrBoxFilter(_src, _dst, ddepth, ksize) 1055 public static void sqrBoxFilter(Mat _src, Mat _dst, int ddepth, Size ksize) 1056 { 1057 1058 sqrBoxFilter_2(_src.nativeObj, _dst.nativeObj, ddepth, ksize.width, ksize.height); 1059 1060 return; 1061 } 1062 1063 1064 // 1065 // C++: void blur(Mat src, Mat& dst, Size ksize, Point anchor = Point(-1,-1), int borderType = BORDER_DEFAULT) 1066 // 1067 1068 //javadoc: blur(src, dst, ksize, anchor, borderType) 1069 public static void blur(Mat src, Mat dst, Size ksize, Point anchor, int borderType) 1070 { 1071 1072 blur_0(src.nativeObj, dst.nativeObj, ksize.width, ksize.height, anchor.x, anchor.y, borderType); 1073 1074 return; 1075 } 1076 1077 //javadoc: blur(src, dst, ksize, anchor) 1078 public static void blur(Mat src, Mat dst, Size ksize, Point anchor) 1079 { 1080 1081 blur_1(src.nativeObj, dst.nativeObj, ksize.width, ksize.height, anchor.x, anchor.y); 1082 1083 return; 1084 } 1085 1086 //javadoc: blur(src, dst, ksize) 1087 public static void blur(Mat src, Mat dst, Size ksize) 1088 { 1089 1090 blur_2(src.nativeObj, dst.nativeObj, ksize.width, ksize.height); 1091 1092 return; 1093 } 1094 1095 1096 // 1097 // C++: void cornerHarris(Mat src, Mat& dst, int blockSize, int ksize, double k, int borderType = BORDER_DEFAULT) 1098 // 1099 1100 //javadoc: cornerHarris(src, dst, blockSize, ksize, k, borderType) 1101 public static void cornerHarris(Mat src, Mat dst, int blockSize, int ksize, double k, int borderType) 1102 { 1103 1104 cornerHarris_0(src.nativeObj, dst.nativeObj, blockSize, ksize, k, borderType); 1105 1106 return; 1107 } 1108 1109 //javadoc: cornerHarris(src, dst, blockSize, ksize, k) 1110 public static void cornerHarris(Mat src, Mat dst, int blockSize, int ksize, double k) 1111 { 1112 1113 cornerHarris_1(src.nativeObj, dst.nativeObj, blockSize, ksize, k); 1114 1115 return; 1116 } 1117 1118 1119 // 1120 // C++: void cornerEigenValsAndVecs(Mat src, Mat& dst, int blockSize, int ksize, int borderType = BORDER_DEFAULT) 1121 // 1122 1123 //javadoc: cornerEigenValsAndVecs(src, dst, blockSize, ksize, borderType) 1124 public static void cornerEigenValsAndVecs(Mat src, Mat dst, int blockSize, int ksize, int borderType) 1125 { 1126 1127 cornerEigenValsAndVecs_0(src.nativeObj, dst.nativeObj, blockSize, ksize, borderType); 1128 1129 return; 1130 } 1131 1132 //javadoc: cornerEigenValsAndVecs(src, dst, blockSize, ksize) 1133 public static void cornerEigenValsAndVecs(Mat src, Mat dst, int blockSize, int ksize) 1134 { 1135 1136 cornerEigenValsAndVecs_1(src.nativeObj, dst.nativeObj, blockSize, ksize); 1137 1138 return; 1139 } 1140 1141 1142 // 1143 // C++: void preCornerDetect(Mat src, Mat& dst, int ksize, int borderType = BORDER_DEFAULT) 1144 // 1145 1146 //javadoc: preCornerDetect(src, dst, ksize, borderType) 1147 public static void preCornerDetect(Mat src, Mat dst, int ksize, int borderType) 1148 { 1149 1150 preCornerDetect_0(src.nativeObj, dst.nativeObj, ksize, borderType); 1151 1152 return; 1153 } 1154 1155 //javadoc: preCornerDetect(src, dst, ksize) 1156 public static void preCornerDetect(Mat src, Mat dst, int ksize) 1157 { 1158 1159 preCornerDetect_1(src.nativeObj, dst.nativeObj, ksize); 1160 1161 return; 1162 } 1163 1164 1165 // 1166 // C++: void cornerSubPix(Mat image, vector_Point2f& corners, Size winSize, Size zeroZone, TermCriteria criteria) 1167 // 1168 1169 //javadoc: cornerSubPix(image, corners, winSize, zeroZone, criteria) 1170 public static void cornerSubPix(Mat image, MatOfPoint2f corners, Size winSize, Size zeroZone, TermCriteria criteria) 1171 { 1172 Mat corners_mat = corners; 1173 cornerSubPix_0(image.nativeObj, corners_mat.nativeObj, winSize.width, winSize.height, zeroZone.width, zeroZone.height, criteria.type, criteria.maxCount, criteria.epsilon); 1174 1175 return; 1176 } 1177 1178 1179 // 1180 // C++: void goodFeaturesToTrack(Mat image, vector_Point& corners, int maxCorners, double qualityLevel, double minDistance, Mat mask = Mat(), int blockSize = 3, bool useHarrisDetector = false, double k = 0.04) 1181 // 1182 1183 //javadoc: goodFeaturesToTrack(image, corners, maxCorners, qualityLevel, minDistance, mask, blockSize, useHarrisDetector, k) 1184 public static void goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize, boolean useHarrisDetector, double k) 1185 { 1186 Mat corners_mat = corners; 1187 goodFeaturesToTrack_0(image.nativeObj, corners_mat.nativeObj, maxCorners, qualityLevel, minDistance, mask.nativeObj, blockSize, useHarrisDetector, k); 1188 1189 return; 1190 } 1191 1192 //javadoc: goodFeaturesToTrack(image, corners, maxCorners, qualityLevel, minDistance) 1193 public static void goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance) 1194 { 1195 Mat corners_mat = corners; 1196 goodFeaturesToTrack_1(image.nativeObj, corners_mat.nativeObj, maxCorners, qualityLevel, minDistance); 1197 1198 return; 1199 } 1200 1201 1202 // 1203 // C++: void HoughLines(Mat image, Mat& lines, double rho, double theta, int threshold, double srn = 0, double stn = 0, double min_theta = 0, double max_theta = CV_PI) 1204 // 1205 1206 //javadoc: HoughLines(image, lines, rho, theta, threshold, srn, stn, min_theta, max_theta) 1207 public static void HoughLines(Mat image, Mat lines, double rho, double theta, int threshold, double srn, double stn, double min_theta, double max_theta) 1208 { 1209 1210 HoughLines_0(image.nativeObj, lines.nativeObj, rho, theta, threshold, srn, stn, min_theta, max_theta); 1211 1212 return; 1213 } 1214 1215 //javadoc: HoughLines(image, lines, rho, theta, threshold) 1216 public static void HoughLines(Mat image, Mat lines, double rho, double theta, int threshold) 1217 { 1218 1219 HoughLines_1(image.nativeObj, lines.nativeObj, rho, theta, threshold); 1220 1221 return; 1222 } 1223 1224 1225 // 1226 // C++: void HoughLinesP(Mat image, Mat& lines, double rho, double theta, int threshold, double minLineLength = 0, double maxLineGap = 0) 1227 // 1228 1229 //javadoc: HoughLinesP(image, lines, rho, theta, threshold, minLineLength, maxLineGap) 1230 public static void HoughLinesP(Mat image, Mat lines, double rho, double theta, int threshold, double minLineLength, double maxLineGap) 1231 { 1232 1233 HoughLinesP_0(image.nativeObj, lines.nativeObj, rho, theta, threshold, minLineLength, maxLineGap); 1234 1235 return; 1236 } 1237 1238 //javadoc: HoughLinesP(image, lines, rho, theta, threshold) 1239 public static void HoughLinesP(Mat image, Mat lines, double rho, double theta, int threshold) 1240 { 1241 1242 HoughLinesP_1(image.nativeObj, lines.nativeObj, rho, theta, threshold); 1243 1244 return; 1245 } 1246 1247 1248 // 1249 // C++: void HoughCircles(Mat image, Mat& circles, int method, double dp, double minDist, double param1 = 100, double param2 = 100, int minRadius = 0, int maxRadius = 0) 1250 // 1251 1252 //javadoc: HoughCircles(image, circles, method, dp, minDist, param1, param2, minRadius, maxRadius) 1253 public static void HoughCircles(Mat image, Mat circles, int method, double dp, double minDist, double param1, double param2, int minRadius, int maxRadius) 1254 { 1255 1256 HoughCircles_0(image.nativeObj, circles.nativeObj, method, dp, minDist, param1, param2, minRadius, maxRadius); 1257 1258 return; 1259 } 1260 1261 //javadoc: HoughCircles(image, circles, method, dp, minDist) 1262 public static void HoughCircles(Mat image, Mat circles, int method, double dp, double minDist) 1263 { 1264 1265 HoughCircles_1(image.nativeObj, circles.nativeObj, method, dp, minDist); 1266 1267 return; 1268 } 1269 1270 1271 // 1272 // C++: void erode(Mat src, Mat& dst, Mat kernel, Point anchor = Point(-1,-1), int iterations = 1, int borderType = BORDER_CONSTANT, Scalar borderValue = morphologyDefaultBorderValue()) 1273 // 1274 1275 //javadoc: erode(src, dst, kernel, anchor, iterations, borderType, borderValue) 1276 public static void erode(Mat src, Mat dst, Mat kernel, Point anchor, int iterations, int borderType, Scalar borderValue) 1277 { 1278 1279 erode_0(src.nativeObj, dst.nativeObj, kernel.nativeObj, anchor.x, anchor.y, iterations, borderType, borderValue.val[0], borderValue.val[1], borderValue.val[2], borderValue.val[3]); 1280 1281 return; 1282 } 1283 1284 //javadoc: erode(src, dst, kernel, anchor, iterations) 1285 public static void erode(Mat src, Mat dst, Mat kernel, Point anchor, int iterations) 1286 { 1287 1288 erode_1(src.nativeObj, dst.nativeObj, kernel.nativeObj, anchor.x, anchor.y, iterations); 1289 1290 return; 1291 } 1292 1293 //javadoc: erode(src, dst, kernel) 1294 public static void erode(Mat src, Mat dst, Mat kernel) 1295 { 1296 1297 erode_2(src.nativeObj, dst.nativeObj, kernel.nativeObj); 1298 1299 return; 1300 } 1301 1302 1303 // 1304 // C++: void dilate(Mat src, Mat& dst, Mat kernel, Point anchor = Point(-1,-1), int iterations = 1, int borderType = BORDER_CONSTANT, Scalar borderValue = morphologyDefaultBorderValue()) 1305 // 1306 1307 //javadoc: dilate(src, dst, kernel, anchor, iterations, borderType, borderValue) 1308 public static void dilate(Mat src, Mat dst, Mat kernel, Point anchor, int iterations, int borderType, Scalar borderValue) 1309 { 1310 1311 dilate_0(src.nativeObj, dst.nativeObj, kernel.nativeObj, anchor.x, anchor.y, iterations, borderType, borderValue.val[0], borderValue.val[1], borderValue.val[2], borderValue.val[3]); 1312 1313 return; 1314 } 1315 1316 //javadoc: dilate(src, dst, kernel, anchor, iterations) 1317 public static void dilate(Mat src, Mat dst, Mat kernel, Point anchor, int iterations) 1318 { 1319 1320 dilate_1(src.nativeObj, dst.nativeObj, kernel.nativeObj, anchor.x, anchor.y, iterations); 1321 1322 return; 1323 } 1324 1325 //javadoc: dilate(src, dst, kernel) 1326 public static void dilate(Mat src, Mat dst, Mat kernel) 1327 { 1328 1329 dilate_2(src.nativeObj, dst.nativeObj, kernel.nativeObj); 1330 1331 return; 1332 } 1333 1334 1335 // 1336 // C++: void morphologyEx(Mat src, Mat& dst, int op, Mat kernel, Point anchor = Point(-1,-1), int iterations = 1, int borderType = BORDER_CONSTANT, Scalar borderValue = morphologyDefaultBorderValue()) 1337 // 1338 1339 //javadoc: morphologyEx(src, dst, op, kernel, anchor, iterations, borderType, borderValue) 1340 public static void morphologyEx(Mat src, Mat dst, int op, Mat kernel, Point anchor, int iterations, int borderType, Scalar borderValue) 1341 { 1342 1343 morphologyEx_0(src.nativeObj, dst.nativeObj, op, kernel.nativeObj, anchor.x, anchor.y, iterations, borderType, borderValue.val[0], borderValue.val[1], borderValue.val[2], borderValue.val[3]); 1344 1345 return; 1346 } 1347 1348 //javadoc: morphologyEx(src, dst, op, kernel, anchor, iterations) 1349 public static void morphologyEx(Mat src, Mat dst, int op, Mat kernel, Point anchor, int iterations) 1350 { 1351 1352 morphologyEx_1(src.nativeObj, dst.nativeObj, op, kernel.nativeObj, anchor.x, anchor.y, iterations); 1353 1354 return; 1355 } 1356 1357 //javadoc: morphologyEx(src, dst, op, kernel) 1358 public static void morphologyEx(Mat src, Mat dst, int op, Mat kernel) 1359 { 1360 1361 morphologyEx_2(src.nativeObj, dst.nativeObj, op, kernel.nativeObj); 1362 1363 return; 1364 } 1365 1366 1367 // 1368 // C++: void resize(Mat src, Mat& dst, Size dsize, double fx = 0, double fy = 0, int interpolation = INTER_LINEAR) 1369 // 1370 1371 //javadoc: resize(src, dst, dsize, fx, fy, interpolation) 1372 public static void resize(Mat src, Mat dst, Size dsize, double fx, double fy, int interpolation) 1373 { 1374 1375 resize_0(src.nativeObj, dst.nativeObj, dsize.width, dsize.height, fx, fy, interpolation); 1376 1377 return; 1378 } 1379 1380 //javadoc: resize(src, dst, dsize) 1381 public static void resize(Mat src, Mat dst, Size dsize) 1382 { 1383 1384 resize_1(src.nativeObj, dst.nativeObj, dsize.width, dsize.height); 1385 1386 return; 1387 } 1388 1389 1390 // 1391 // C++: void warpAffine(Mat src, Mat& dst, Mat M, Size dsize, int flags = INTER_LINEAR, int borderMode = BORDER_CONSTANT, Scalar borderValue = Scalar()) 1392 // 1393 1394 //javadoc: warpAffine(src, dst, M, dsize, flags, borderMode, borderValue) 1395 public static void warpAffine(Mat src, Mat dst, Mat M, Size dsize, int flags, int borderMode, Scalar borderValue) 1396 { 1397 1398 warpAffine_0(src.nativeObj, dst.nativeObj, M.nativeObj, dsize.width, dsize.height, flags, borderMode, borderValue.val[0], borderValue.val[1], borderValue.val[2], borderValue.val[3]); 1399 1400 return; 1401 } 1402 1403 //javadoc: warpAffine(src, dst, M, dsize, flags) 1404 public static void warpAffine(Mat src, Mat dst, Mat M, Size dsize, int flags) 1405 { 1406 1407 warpAffine_1(src.nativeObj, dst.nativeObj, M.nativeObj, dsize.width, dsize.height, flags); 1408 1409 return; 1410 } 1411 1412 //javadoc: warpAffine(src, dst, M, dsize) 1413 public static void warpAffine(Mat src, Mat dst, Mat M, Size dsize) 1414 { 1415 1416 warpAffine_2(src.nativeObj, dst.nativeObj, M.nativeObj, dsize.width, dsize.height); 1417 1418 return; 1419 } 1420 1421 1422 // 1423 // C++: void warpPerspective(Mat src, Mat& dst, Mat M, Size dsize, int flags = INTER_LINEAR, int borderMode = BORDER_CONSTANT, Scalar borderValue = Scalar()) 1424 // 1425 1426 //javadoc: warpPerspective(src, dst, M, dsize, flags, borderMode, borderValue) 1427 public static void warpPerspective(Mat src, Mat dst, Mat M, Size dsize, int flags, int borderMode, Scalar borderValue) 1428 { 1429 1430 warpPerspective_0(src.nativeObj, dst.nativeObj, M.nativeObj, dsize.width, dsize.height, flags, borderMode, borderValue.val[0], borderValue.val[1], borderValue.val[2], borderValue.val[3]); 1431 1432 return; 1433 } 1434 1435 //javadoc: warpPerspective(src, dst, M, dsize, flags) 1436 public static void warpPerspective(Mat src, Mat dst, Mat M, Size dsize, int flags) 1437 { 1438 1439 warpPerspective_1(src.nativeObj, dst.nativeObj, M.nativeObj, dsize.width, dsize.height, flags); 1440 1441 return; 1442 } 1443 1444 //javadoc: warpPerspective(src, dst, M, dsize) 1445 public static void warpPerspective(Mat src, Mat dst, Mat M, Size dsize) 1446 { 1447 1448 warpPerspective_2(src.nativeObj, dst.nativeObj, M.nativeObj, dsize.width, dsize.height); 1449 1450 return; 1451 } 1452 1453 1454 // 1455 // C++: void integral(Mat src, Mat& sum, Mat& sqsum, int sdepth = -1, int sqdepth = -1) 1456 // 1457 1458 //javadoc: integral(src, sum, sqsum, sdepth, sqdepth) 1459 public static void integral2(Mat src, Mat sum, Mat sqsum, int sdepth, int sqdepth) 1460 { 1461 1462 integral2_0(src.nativeObj, sum.nativeObj, sqsum.nativeObj, sdepth, sqdepth); 1463 1464 return; 1465 } 1466 1467 //javadoc: integral(src, sum, sqsum) 1468 public static void integral2(Mat src, Mat sum, Mat sqsum) 1469 { 1470 1471 integral2_1(src.nativeObj, sum.nativeObj, sqsum.nativeObj); 1472 1473 return; 1474 } 1475 1476 1477 // 1478 // C++: void integral(Mat src, Mat& sum, Mat& sqsum, Mat& tilted, int sdepth = -1, int sqdepth = -1) 1479 // 1480 1481 //javadoc: integral(src, sum, sqsum, tilted, sdepth, sqdepth) 1482 public static void integral3(Mat src, Mat sum, Mat sqsum, Mat tilted, int sdepth, int sqdepth) 1483 { 1484 1485 integral3_0(src.nativeObj, sum.nativeObj, sqsum.nativeObj, tilted.nativeObj, sdepth, sqdepth); 1486 1487 return; 1488 } 1489 1490 //javadoc: integral(src, sum, sqsum, tilted) 1491 public static void integral3(Mat src, Mat sum, Mat sqsum, Mat tilted) 1492 { 1493 1494 integral3_1(src.nativeObj, sum.nativeObj, sqsum.nativeObj, tilted.nativeObj); 1495 1496 return; 1497 } 1498 1499 1500 // 1501 // C++: void accumulate(Mat src, Mat& dst, Mat mask = Mat()) 1502 // 1503 1504 //javadoc: accumulate(src, dst, mask) 1505 public static void accumulate(Mat src, Mat dst, Mat mask) 1506 { 1507 1508 accumulate_0(src.nativeObj, dst.nativeObj, mask.nativeObj); 1509 1510 return; 1511 } 1512 1513 //javadoc: accumulate(src, dst) 1514 public static void accumulate(Mat src, Mat dst) 1515 { 1516 1517 accumulate_1(src.nativeObj, dst.nativeObj); 1518 1519 return; 1520 } 1521 1522 1523 // 1524 // C++: void accumulateSquare(Mat src, Mat& dst, Mat mask = Mat()) 1525 // 1526 1527 //javadoc: accumulateSquare(src, dst, mask) 1528 public static void accumulateSquare(Mat src, Mat dst, Mat mask) 1529 { 1530 1531 accumulateSquare_0(src.nativeObj, dst.nativeObj, mask.nativeObj); 1532 1533 return; 1534 } 1535 1536 //javadoc: accumulateSquare(src, dst) 1537 public static void accumulateSquare(Mat src, Mat dst) 1538 { 1539 1540 accumulateSquare_1(src.nativeObj, dst.nativeObj); 1541 1542 return; 1543 } 1544 1545 1546 // 1547 // C++: void accumulateProduct(Mat src1, Mat src2, Mat& dst, Mat mask = Mat()) 1548 // 1549 1550 //javadoc: accumulateProduct(src1, src2, dst, mask) 1551 public static void accumulateProduct(Mat src1, Mat src2, Mat dst, Mat mask) 1552 { 1553 1554 accumulateProduct_0(src1.nativeObj, src2.nativeObj, dst.nativeObj, mask.nativeObj); 1555 1556 return; 1557 } 1558 1559 //javadoc: accumulateProduct(src1, src2, dst) 1560 public static void accumulateProduct(Mat src1, Mat src2, Mat dst) 1561 { 1562 1563 accumulateProduct_1(src1.nativeObj, src2.nativeObj, dst.nativeObj); 1564 1565 return; 1566 } 1567 1568 1569 // 1570 // C++: void accumulateWeighted(Mat src, Mat& dst, double alpha, Mat mask = Mat()) 1571 // 1572 1573 //javadoc: accumulateWeighted(src, dst, alpha, mask) 1574 public static void accumulateWeighted(Mat src, Mat dst, double alpha, Mat mask) 1575 { 1576 1577 accumulateWeighted_0(src.nativeObj, dst.nativeObj, alpha, mask.nativeObj); 1578 1579 return; 1580 } 1581 1582 //javadoc: accumulateWeighted(src, dst, alpha) 1583 public static void accumulateWeighted(Mat src, Mat dst, double alpha) 1584 { 1585 1586 accumulateWeighted_1(src.nativeObj, dst.nativeObj, alpha); 1587 1588 return; 1589 } 1590 1591 1592 // 1593 // C++: Point2d phaseCorrelate(Mat src1, Mat src2, Mat window = Mat(), double* response = 0) 1594 // 1595 1596 //javadoc: phaseCorrelate(src1, src2, window, response) 1597 public static Point phaseCorrelate(Mat src1, Mat src2, Mat window, double[] response) 1598 { 1599 double[] response_out = new double[1]; 1600 Point retVal = new Point(phaseCorrelate_0(src1.nativeObj, src2.nativeObj, window.nativeObj, response_out)); 1601 if(response!=null) response[0] = (double)response_out[0]; 1602 return retVal; 1603 } 1604 1605 //javadoc: phaseCorrelate(src1, src2) 1606 public static Point phaseCorrelate(Mat src1, Mat src2) 1607 { 1608 1609 Point retVal = new Point(phaseCorrelate_1(src1.nativeObj, src2.nativeObj)); 1610 1611 return retVal; 1612 } 1613 1614 1615 // 1616 // C++: void createHanningWindow(Mat& dst, Size winSize, int type) 1617 // 1618 1619 //javadoc: createHanningWindow(dst, winSize, type) 1620 public static void createHanningWindow(Mat dst, Size winSize, int type) 1621 { 1622 1623 createHanningWindow_0(dst.nativeObj, winSize.width, winSize.height, type); 1624 1625 return; 1626 } 1627 1628 1629 // 1630 // C++: double threshold(Mat src, Mat& dst, double thresh, double maxval, int type) 1631 // 1632 1633 //javadoc: threshold(src, dst, thresh, maxval, type) 1634 public static double threshold(Mat src, Mat dst, double thresh, double maxval, int type) 1635 { 1636 1637 double retVal = threshold_0(src.nativeObj, dst.nativeObj, thresh, maxval, type); 1638 1639 return retVal; 1640 } 1641 1642 1643 // 1644 // C++: void adaptiveThreshold(Mat src, Mat& dst, double maxValue, int adaptiveMethod, int thresholdType, int blockSize, double C) 1645 // 1646 1647 //javadoc: adaptiveThreshold(src, dst, maxValue, adaptiveMethod, thresholdType, blockSize, C) 1648 public static void adaptiveThreshold(Mat src, Mat dst, double maxValue, int adaptiveMethod, int thresholdType, int blockSize, double C) 1649 { 1650 1651 adaptiveThreshold_0(src.nativeObj, dst.nativeObj, maxValue, adaptiveMethod, thresholdType, blockSize, C); 1652 1653 return; 1654 } 1655 1656 1657 // 1658 // C++: void pyrDown(Mat src, Mat& dst, Size dstsize = Size(), int borderType = BORDER_DEFAULT) 1659 // 1660 1661 //javadoc: pyrDown(src, dst, dstsize, borderType) 1662 public static void pyrDown(Mat src, Mat dst, Size dstsize, int borderType) 1663 { 1664 1665 pyrDown_0(src.nativeObj, dst.nativeObj, dstsize.width, dstsize.height, borderType); 1666 1667 return; 1668 } 1669 1670 //javadoc: pyrDown(src, dst, dstsize) 1671 public static void pyrDown(Mat src, Mat dst, Size dstsize) 1672 { 1673 1674 pyrDown_1(src.nativeObj, dst.nativeObj, dstsize.width, dstsize.height); 1675 1676 return; 1677 } 1678 1679 //javadoc: pyrDown(src, dst) 1680 public static void pyrDown(Mat src, Mat dst) 1681 { 1682 1683 pyrDown_2(src.nativeObj, dst.nativeObj); 1684 1685 return; 1686 } 1687 1688 1689 // 1690 // C++: void pyrUp(Mat src, Mat& dst, Size dstsize = Size(), int borderType = BORDER_DEFAULT) 1691 // 1692 1693 //javadoc: pyrUp(src, dst, dstsize, borderType) 1694 public static void pyrUp(Mat src, Mat dst, Size dstsize, int borderType) 1695 { 1696 1697 pyrUp_0(src.nativeObj, dst.nativeObj, dstsize.width, dstsize.height, borderType); 1698 1699 return; 1700 } 1701 1702 //javadoc: pyrUp(src, dst, dstsize) 1703 public static void pyrUp(Mat src, Mat dst, Size dstsize) 1704 { 1705 1706 pyrUp_1(src.nativeObj, dst.nativeObj, dstsize.width, dstsize.height); 1707 1708 return; 1709 } 1710 1711 //javadoc: pyrUp(src, dst) 1712 public static void pyrUp(Mat src, Mat dst) 1713 { 1714 1715 pyrUp_2(src.nativeObj, dst.nativeObj); 1716 1717 return; 1718 } 1719 1720 1721 // 1722 // C++: void undistort(Mat src, Mat& dst, Mat cameraMatrix, Mat distCoeffs, Mat newCameraMatrix = Mat()) 1723 // 1724 1725 //javadoc: undistort(src, dst, cameraMatrix, distCoeffs, newCameraMatrix) 1726 public static void undistort(Mat src, Mat dst, Mat cameraMatrix, Mat distCoeffs, Mat newCameraMatrix) 1727 { 1728 1729 undistort_0(src.nativeObj, dst.nativeObj, cameraMatrix.nativeObj, distCoeffs.nativeObj, newCameraMatrix.nativeObj); 1730 1731 return; 1732 } 1733 1734 //javadoc: undistort(src, dst, cameraMatrix, distCoeffs) 1735 public static void undistort(Mat src, Mat dst, Mat cameraMatrix, Mat distCoeffs) 1736 { 1737 1738 undistort_1(src.nativeObj, dst.nativeObj, cameraMatrix.nativeObj, distCoeffs.nativeObj); 1739 1740 return; 1741 } 1742 1743 1744 // 1745 // C++: void initUndistortRectifyMap(Mat cameraMatrix, Mat distCoeffs, Mat R, Mat newCameraMatrix, Size size, int m1type, Mat& map1, Mat& map2) 1746 // 1747 1748 //javadoc: initUndistortRectifyMap(cameraMatrix, distCoeffs, R, newCameraMatrix, size, m1type, map1, map2) 1749 public static void initUndistortRectifyMap(Mat cameraMatrix, Mat distCoeffs, Mat R, Mat newCameraMatrix, Size size, int m1type, Mat map1, Mat map2) 1750 { 1751 1752 initUndistortRectifyMap_0(cameraMatrix.nativeObj, distCoeffs.nativeObj, R.nativeObj, newCameraMatrix.nativeObj, size.width, size.height, m1type, map1.nativeObj, map2.nativeObj); 1753 1754 return; 1755 } 1756 1757 1758 // 1759 // C++: float initWideAngleProjMap(Mat cameraMatrix, Mat distCoeffs, Size imageSize, int destImageWidth, int m1type, Mat& map1, Mat& map2, int projType = PROJ_SPHERICAL_EQRECT, double alpha = 0) 1760 // 1761 1762 //javadoc: initWideAngleProjMap(cameraMatrix, distCoeffs, imageSize, destImageWidth, m1type, map1, map2, projType, alpha) 1763 public static float initWideAngleProjMap(Mat cameraMatrix, Mat distCoeffs, Size imageSize, int destImageWidth, int m1type, Mat map1, Mat map2, int projType, double alpha) 1764 { 1765 1766 float retVal = initWideAngleProjMap_0(cameraMatrix.nativeObj, distCoeffs.nativeObj, imageSize.width, imageSize.height, destImageWidth, m1type, map1.nativeObj, map2.nativeObj, projType, alpha); 1767 1768 return retVal; 1769 } 1770 1771 //javadoc: initWideAngleProjMap(cameraMatrix, distCoeffs, imageSize, destImageWidth, m1type, map1, map2) 1772 public static float initWideAngleProjMap(Mat cameraMatrix, Mat distCoeffs, Size imageSize, int destImageWidth, int m1type, Mat map1, Mat map2) 1773 { 1774 1775 float retVal = initWideAngleProjMap_1(cameraMatrix.nativeObj, distCoeffs.nativeObj, imageSize.width, imageSize.height, destImageWidth, m1type, map1.nativeObj, map2.nativeObj); 1776 1777 return retVal; 1778 } 1779 1780 1781 // 1782 // C++: Mat getDefaultNewCameraMatrix(Mat cameraMatrix, Size imgsize = Size(), bool centerPrincipalPoint = false) 1783 // 1784 1785 //javadoc: getDefaultNewCameraMatrix(cameraMatrix, imgsize, centerPrincipalPoint) 1786 public static Mat getDefaultNewCameraMatrix(Mat cameraMatrix, Size imgsize, boolean centerPrincipalPoint) 1787 { 1788 1789 Mat retVal = new Mat(getDefaultNewCameraMatrix_0(cameraMatrix.nativeObj, imgsize.width, imgsize.height, centerPrincipalPoint)); 1790 1791 return retVal; 1792 } 1793 1794 //javadoc: getDefaultNewCameraMatrix(cameraMatrix) 1795 public static Mat getDefaultNewCameraMatrix(Mat cameraMatrix) 1796 { 1797 1798 Mat retVal = new Mat(getDefaultNewCameraMatrix_1(cameraMatrix.nativeObj)); 1799 1800 return retVal; 1801 } 1802 1803 1804 // 1805 // C++: void undistortPoints(vector_Point2f src, vector_Point2f& dst, Mat cameraMatrix, Mat distCoeffs, Mat R = Mat(), Mat P = Mat()) 1806 // 1807 1808 //javadoc: undistortPoints(src, dst, cameraMatrix, distCoeffs, R, P) 1809 public static void undistortPoints(MatOfPoint2f src, MatOfPoint2f dst, Mat cameraMatrix, Mat distCoeffs, Mat R, Mat P) 1810 { 1811 Mat src_mat = src; 1812 Mat dst_mat = dst; 1813 undistortPoints_0(src_mat.nativeObj, dst_mat.nativeObj, cameraMatrix.nativeObj, distCoeffs.nativeObj, R.nativeObj, P.nativeObj); 1814 1815 return; 1816 } 1817 1818 //javadoc: undistortPoints(src, dst, cameraMatrix, distCoeffs) 1819 public static void undistortPoints(MatOfPoint2f src, MatOfPoint2f dst, Mat cameraMatrix, Mat distCoeffs) 1820 { 1821 Mat src_mat = src; 1822 Mat dst_mat = dst; 1823 undistortPoints_1(src_mat.nativeObj, dst_mat.nativeObj, cameraMatrix.nativeObj, distCoeffs.nativeObj); 1824 1825 return; 1826 } 1827 1828 1829 // 1830 // C++: void calcHist(vector_Mat images, vector_int channels, Mat mask, Mat& hist, vector_int histSize, vector_float ranges, bool accumulate = false) 1831 // 1832 1833 //javadoc: calcHist(images, channels, mask, hist, histSize, ranges, accumulate) 1834 public static void calcHist(List<Mat> images, MatOfInt channels, Mat mask, Mat hist, MatOfInt histSize, MatOfFloat ranges, boolean accumulate) 1835 { 1836 Mat images_mat = Converters.vector_Mat_to_Mat(images); 1837 Mat channels_mat = channels; 1838 Mat histSize_mat = histSize; 1839 Mat ranges_mat = ranges; 1840 calcHist_0(images_mat.nativeObj, channels_mat.nativeObj, mask.nativeObj, hist.nativeObj, histSize_mat.nativeObj, ranges_mat.nativeObj, accumulate); 1841 1842 return; 1843 } 1844 1845 //javadoc: calcHist(images, channels, mask, hist, histSize, ranges) 1846 public static void calcHist(List<Mat> images, MatOfInt channels, Mat mask, Mat hist, MatOfInt histSize, MatOfFloat ranges) 1847 { 1848 Mat images_mat = Converters.vector_Mat_to_Mat(images); 1849 Mat channels_mat = channels; 1850 Mat histSize_mat = histSize; 1851 Mat ranges_mat = ranges; 1852 calcHist_1(images_mat.nativeObj, channels_mat.nativeObj, mask.nativeObj, hist.nativeObj, histSize_mat.nativeObj, ranges_mat.nativeObj); 1853 1854 return; 1855 } 1856 1857 1858 // 1859 // C++: void calcBackProject(vector_Mat images, vector_int channels, Mat hist, Mat& dst, vector_float ranges, double scale) 1860 // 1861 1862 //javadoc: calcBackProject(images, channels, hist, dst, ranges, scale) 1863 public static void calcBackProject(List<Mat> images, MatOfInt channels, Mat hist, Mat dst, MatOfFloat ranges, double scale) 1864 { 1865 Mat images_mat = Converters.vector_Mat_to_Mat(images); 1866 Mat channels_mat = channels; 1867 Mat ranges_mat = ranges; 1868 calcBackProject_0(images_mat.nativeObj, channels_mat.nativeObj, hist.nativeObj, dst.nativeObj, ranges_mat.nativeObj, scale); 1869 1870 return; 1871 } 1872 1873 1874 // 1875 // C++: double compareHist(Mat H1, Mat H2, int method) 1876 // 1877 1878 //javadoc: compareHist(H1, H2, method) 1879 public static double compareHist(Mat H1, Mat H2, int method) 1880 { 1881 1882 double retVal = compareHist_0(H1.nativeObj, H2.nativeObj, method); 1883 1884 return retVal; 1885 } 1886 1887 1888 // 1889 // C++: void equalizeHist(Mat src, Mat& dst) 1890 // 1891 1892 //javadoc: equalizeHist(src, dst) 1893 public static void equalizeHist(Mat src, Mat dst) 1894 { 1895 1896 equalizeHist_0(src.nativeObj, dst.nativeObj); 1897 1898 return; 1899 } 1900 1901 1902 // 1903 // C++: void watershed(Mat image, Mat& markers) 1904 // 1905 1906 //javadoc: watershed(image, markers) 1907 public static void watershed(Mat image, Mat markers) 1908 { 1909 1910 watershed_0(image.nativeObj, markers.nativeObj); 1911 1912 return; 1913 } 1914 1915 1916 // 1917 // C++: void pyrMeanShiftFiltering(Mat src, Mat& dst, double sp, double sr, int maxLevel = 1, TermCriteria termcrit = TermCriteria(TermCriteria::MAX_ITER+TermCriteria::EPS,5,1)) 1918 // 1919 1920 //javadoc: pyrMeanShiftFiltering(src, dst, sp, sr, maxLevel, termcrit) 1921 public static void pyrMeanShiftFiltering(Mat src, Mat dst, double sp, double sr, int maxLevel, TermCriteria termcrit) 1922 { 1923 1924 pyrMeanShiftFiltering_0(src.nativeObj, dst.nativeObj, sp, sr, maxLevel, termcrit.type, termcrit.maxCount, termcrit.epsilon); 1925 1926 return; 1927 } 1928 1929 //javadoc: pyrMeanShiftFiltering(src, dst, sp, sr) 1930 public static void pyrMeanShiftFiltering(Mat src, Mat dst, double sp, double sr) 1931 { 1932 1933 pyrMeanShiftFiltering_1(src.nativeObj, dst.nativeObj, sp, sr); 1934 1935 return; 1936 } 1937 1938 1939 // 1940 // C++: void grabCut(Mat img, Mat& mask, Rect rect, Mat& bgdModel, Mat& fgdModel, int iterCount, int mode = GC_EVAL) 1941 // 1942 1943 //javadoc: grabCut(img, mask, rect, bgdModel, fgdModel, iterCount, mode) 1944 public static void grabCut(Mat img, Mat mask, Rect rect, Mat bgdModel, Mat fgdModel, int iterCount, int mode) 1945 { 1946 1947 grabCut_0(img.nativeObj, mask.nativeObj, rect.x, rect.y, rect.width, rect.height, bgdModel.nativeObj, fgdModel.nativeObj, iterCount, mode); 1948 1949 return; 1950 } 1951 1952 //javadoc: grabCut(img, mask, rect, bgdModel, fgdModel, iterCount) 1953 public static void grabCut(Mat img, Mat mask, Rect rect, Mat bgdModel, Mat fgdModel, int iterCount) 1954 { 1955 1956 grabCut_1(img.nativeObj, mask.nativeObj, rect.x, rect.y, rect.width, rect.height, bgdModel.nativeObj, fgdModel.nativeObj, iterCount); 1957 1958 return; 1959 } 1960 1961 1962 // 1963 // C++: void distanceTransform(Mat src, Mat& dst, Mat& labels, int distanceType, int maskSize, int labelType = DIST_LABEL_CCOMP) 1964 // 1965 1966 //javadoc: distanceTransform(src, dst, labels, distanceType, maskSize, labelType) 1967 public static void distanceTransformWithLabels(Mat src, Mat dst, Mat labels, int distanceType, int maskSize, int labelType) 1968 { 1969 1970 distanceTransformWithLabels_0(src.nativeObj, dst.nativeObj, labels.nativeObj, distanceType, maskSize, labelType); 1971 1972 return; 1973 } 1974 1975 //javadoc: distanceTransform(src, dst, labels, distanceType, maskSize) 1976 public static void distanceTransformWithLabels(Mat src, Mat dst, Mat labels, int distanceType, int maskSize) 1977 { 1978 1979 distanceTransformWithLabels_1(src.nativeObj, dst.nativeObj, labels.nativeObj, distanceType, maskSize); 1980 1981 return; 1982 } 1983 1984 1985 // 1986 // C++: void distanceTransform(Mat src, Mat& dst, int distanceType, int maskSize, int dstType = CV_32F) 1987 // 1988 1989 //javadoc: distanceTransform(src, dst, distanceType, maskSize, dstType) 1990 public static void distanceTransform(Mat src, Mat dst, int distanceType, int maskSize, int dstType) 1991 { 1992 1993 distanceTransform_0(src.nativeObj, dst.nativeObj, distanceType, maskSize, dstType); 1994 1995 return; 1996 } 1997 1998 //javadoc: distanceTransform(src, dst, distanceType, maskSize) 1999 public static void distanceTransform(Mat src, Mat dst, int distanceType, int maskSize) 2000 { 2001 2002 distanceTransform_1(src.nativeObj, dst.nativeObj, distanceType, maskSize); 2003 2004 return; 2005 } 2006 2007 2008 // 2009 // C++: int floodFill(Mat& image, Mat& mask, Point seedPoint, Scalar newVal, Rect* rect = 0, Scalar loDiff = Scalar(), Scalar upDiff = Scalar(), int flags = 4) 2010 // 2011 2012 //javadoc: floodFill(image, mask, seedPoint, newVal, rect, loDiff, upDiff, flags) 2013 public static int floodFill(Mat image, Mat mask, Point seedPoint, Scalar newVal, Rect rect, Scalar loDiff, Scalar upDiff, int flags) 2014 { 2015 double[] rect_out = new double[4]; 2016 int retVal = floodFill_0(image.nativeObj, mask.nativeObj, seedPoint.x, seedPoint.y, newVal.val[0], newVal.val[1], newVal.val[2], newVal.val[3], rect_out, loDiff.val[0], loDiff.val[1], loDiff.val[2], loDiff.val[3], upDiff.val[0], upDiff.val[1], upDiff.val[2], upDiff.val[3], flags); 2017 if(rect!=null){ rect.x = (int)rect_out[0]; rect.y = (int)rect_out[1]; rect.width = (int)rect_out[2]; rect.height = (int)rect_out[3]; } 2018 return retVal; 2019 } 2020 2021 //javadoc: floodFill(image, mask, seedPoint, newVal) 2022 public static int floodFill(Mat image, Mat mask, Point seedPoint, Scalar newVal) 2023 { 2024 2025 int retVal = floodFill_1(image.nativeObj, mask.nativeObj, seedPoint.x, seedPoint.y, newVal.val[0], newVal.val[1], newVal.val[2], newVal.val[3]); 2026 2027 return retVal; 2028 } 2029 2030 2031 // 2032 // C++: void cvtColor(Mat src, Mat& dst, int code, int dstCn = 0) 2033 // 2034 2035 //javadoc: cvtColor(src, dst, code, dstCn) 2036 public static void cvtColor(Mat src, Mat dst, int code, int dstCn) 2037 { 2038 2039 cvtColor_0(src.nativeObj, dst.nativeObj, code, dstCn); 2040 2041 return; 2042 } 2043 2044 //javadoc: cvtColor(src, dst, code) 2045 public static void cvtColor(Mat src, Mat dst, int code) 2046 { 2047 2048 cvtColor_1(src.nativeObj, dst.nativeObj, code); 2049 2050 return; 2051 } 2052 2053 2054 // 2055 // C++: void demosaicing(Mat _src, Mat& _dst, int code, int dcn = 0) 2056 // 2057 2058 //javadoc: demosaicing(_src, _dst, code, dcn) 2059 public static void demosaicing(Mat _src, Mat _dst, int code, int dcn) 2060 { 2061 2062 demosaicing_0(_src.nativeObj, _dst.nativeObj, code, dcn); 2063 2064 return; 2065 } 2066 2067 //javadoc: demosaicing(_src, _dst, code) 2068 public static void demosaicing(Mat _src, Mat _dst, int code) 2069 { 2070 2071 demosaicing_1(_src.nativeObj, _dst.nativeObj, code); 2072 2073 return; 2074 } 2075 2076 2077 // 2078 // C++: Moments moments(Mat array, bool binaryImage = false) 2079 // 2080 2081 // Return type 'Moments' is not supported, skipping the function 2082 2083 2084 // 2085 // C++: void HuMoments(Moments m, Mat& hu) 2086 // 2087 2088 // Unknown type 'Moments' (I), skipping the function 2089 2090 2091 // 2092 // C++: void matchTemplate(Mat image, Mat templ, Mat& result, int method, Mat mask = Mat()) 2093 // 2094 2095 //javadoc: matchTemplate(image, templ, result, method, mask) 2096 public static void matchTemplate(Mat image, Mat templ, Mat result, int method, Mat mask) 2097 { 2098 2099 matchTemplate_0(image.nativeObj, templ.nativeObj, result.nativeObj, method, mask.nativeObj); 2100 2101 return; 2102 } 2103 2104 //javadoc: matchTemplate(image, templ, result, method) 2105 public static void matchTemplate(Mat image, Mat templ, Mat result, int method) 2106 { 2107 2108 matchTemplate_1(image.nativeObj, templ.nativeObj, result.nativeObj, method); 2109 2110 return; 2111 } 2112 2113 2114 // 2115 // C++: int connectedComponents(Mat image, Mat& labels, int connectivity = 8, int ltype = CV_32S) 2116 // 2117 2118 //javadoc: connectedComponents(image, labels, connectivity, ltype) 2119 public static int connectedComponents(Mat image, Mat labels, int connectivity, int ltype) 2120 { 2121 2122 int retVal = connectedComponents_0(image.nativeObj, labels.nativeObj, connectivity, ltype); 2123 2124 return retVal; 2125 } 2126 2127 //javadoc: connectedComponents(image, labels) 2128 public static int connectedComponents(Mat image, Mat labels) 2129 { 2130 2131 int retVal = connectedComponents_1(image.nativeObj, labels.nativeObj); 2132 2133 return retVal; 2134 } 2135 2136 2137 // 2138 // C++: int connectedComponentsWithStats(Mat image, Mat& labels, Mat& stats, Mat& centroids, int connectivity = 8, int ltype = CV_32S) 2139 // 2140 2141 //javadoc: connectedComponentsWithStats(image, labels, stats, centroids, connectivity, ltype) 2142 public static int connectedComponentsWithStats(Mat image, Mat labels, Mat stats, Mat centroids, int connectivity, int ltype) 2143 { 2144 2145 int retVal = connectedComponentsWithStats_0(image.nativeObj, labels.nativeObj, stats.nativeObj, centroids.nativeObj, connectivity, ltype); 2146 2147 return retVal; 2148 } 2149 2150 //javadoc: connectedComponentsWithStats(image, labels, stats, centroids) 2151 public static int connectedComponentsWithStats(Mat image, Mat labels, Mat stats, Mat centroids) 2152 { 2153 2154 int retVal = connectedComponentsWithStats_1(image.nativeObj, labels.nativeObj, stats.nativeObj, centroids.nativeObj); 2155 2156 return retVal; 2157 } 2158 2159 2160 // 2161 // C++: void findContours(Mat& image, vector_vector_Point& contours, Mat& hierarchy, int mode, int method, Point offset = Point()) 2162 // 2163 2164 //javadoc: findContours(image, contours, hierarchy, mode, method, offset) 2165 public static void findContours(Mat image, List<MatOfPoint> contours, Mat hierarchy, int mode, int method, Point offset) 2166 { 2167 Mat contours_mat = new Mat(); 2168 findContours_0(image.nativeObj, contours_mat.nativeObj, hierarchy.nativeObj, mode, method, offset.x, offset.y); 2169 Converters.Mat_to_vector_vector_Point(contours_mat, contours); 2170 contours_mat.release(); 2171 return; 2172 } 2173 2174 //javadoc: findContours(image, contours, hierarchy, mode, method) 2175 public static void findContours(Mat image, List<MatOfPoint> contours, Mat hierarchy, int mode, int method) 2176 { 2177 Mat contours_mat = new Mat(); 2178 findContours_1(image.nativeObj, contours_mat.nativeObj, hierarchy.nativeObj, mode, method); 2179 Converters.Mat_to_vector_vector_Point(contours_mat, contours); 2180 contours_mat.release(); 2181 return; 2182 } 2183 2184 2185 // 2186 // C++: void approxPolyDP(vector_Point2f curve, vector_Point2f& approxCurve, double epsilon, bool closed) 2187 // 2188 2189 //javadoc: approxPolyDP(curve, approxCurve, epsilon, closed) 2190 public static void approxPolyDP(MatOfPoint2f curve, MatOfPoint2f approxCurve, double epsilon, boolean closed) 2191 { 2192 Mat curve_mat = curve; 2193 Mat approxCurve_mat = approxCurve; 2194 approxPolyDP_0(curve_mat.nativeObj, approxCurve_mat.nativeObj, epsilon, closed); 2195 2196 return; 2197 } 2198 2199 2200 // 2201 // C++: double arcLength(vector_Point2f curve, bool closed) 2202 // 2203 2204 //javadoc: arcLength(curve, closed) 2205 public static double arcLength(MatOfPoint2f curve, boolean closed) 2206 { 2207 Mat curve_mat = curve; 2208 double retVal = arcLength_0(curve_mat.nativeObj, closed); 2209 2210 return retVal; 2211 } 2212 2213 2214 // 2215 // C++: Rect boundingRect(vector_Point points) 2216 // 2217 2218 //javadoc: boundingRect(points) 2219 public static Rect boundingRect(MatOfPoint points) 2220 { 2221 Mat points_mat = points; 2222 Rect retVal = new Rect(boundingRect_0(points_mat.nativeObj)); 2223 2224 return retVal; 2225 } 2226 2227 2228 // 2229 // C++: double contourArea(Mat contour, bool oriented = false) 2230 // 2231 2232 //javadoc: contourArea(contour, oriented) 2233 public static double contourArea(Mat contour, boolean oriented) 2234 { 2235 2236 double retVal = contourArea_0(contour.nativeObj, oriented); 2237 2238 return retVal; 2239 } 2240 2241 //javadoc: contourArea(contour) 2242 public static double contourArea(Mat contour) 2243 { 2244 2245 double retVal = contourArea_1(contour.nativeObj); 2246 2247 return retVal; 2248 } 2249 2250 2251 // 2252 // C++: RotatedRect minAreaRect(vector_Point2f points) 2253 // 2254 2255 //javadoc: minAreaRect(points) 2256 public static RotatedRect minAreaRect(MatOfPoint2f points) 2257 { 2258 Mat points_mat = points; 2259 RotatedRect retVal = new RotatedRect(minAreaRect_0(points_mat.nativeObj)); 2260 2261 return retVal; 2262 } 2263 2264 2265 // 2266 // C++: void boxPoints(RotatedRect box, Mat& points) 2267 // 2268 2269 //javadoc: boxPoints(box, points) 2270 public static void boxPoints(RotatedRect box, Mat points) 2271 { 2272 2273 boxPoints_0(box.center.x, box.center.y, box.size.width, box.size.height, box.angle, points.nativeObj); 2274 2275 return; 2276 } 2277 2278 2279 // 2280 // C++: void minEnclosingCircle(vector_Point2f points, Point2f& center, float& radius) 2281 // 2282 2283 //javadoc: minEnclosingCircle(points, center, radius) 2284 public static void minEnclosingCircle(MatOfPoint2f points, Point center, float[] radius) 2285 { 2286 Mat points_mat = points; 2287 double[] center_out = new double[2]; 2288 double[] radius_out = new double[1]; 2289 minEnclosingCircle_0(points_mat.nativeObj, center_out, radius_out); 2290 if(center!=null){ center.x = center_out[0]; center.y = center_out[1]; } 2291 if(radius!=null) radius[0] = (float)radius_out[0]; 2292 return; 2293 } 2294 2295 2296 // 2297 // C++: double minEnclosingTriangle(Mat points, Mat& triangle) 2298 // 2299 2300 //javadoc: minEnclosingTriangle(points, triangle) 2301 public static double minEnclosingTriangle(Mat points, Mat triangle) 2302 { 2303 2304 double retVal = minEnclosingTriangle_0(points.nativeObj, triangle.nativeObj); 2305 2306 return retVal; 2307 } 2308 2309 2310 // 2311 // C++: double matchShapes(Mat contour1, Mat contour2, int method, double parameter) 2312 // 2313 2314 //javadoc: matchShapes(contour1, contour2, method, parameter) 2315 public static double matchShapes(Mat contour1, Mat contour2, int method, double parameter) 2316 { 2317 2318 double retVal = matchShapes_0(contour1.nativeObj, contour2.nativeObj, method, parameter); 2319 2320 return retVal; 2321 } 2322 2323 2324 // 2325 // C++: void convexHull(vector_Point points, vector_int& hull, bool clockwise = false, _hidden_ returnPoints = true) 2326 // 2327 2328 //javadoc: convexHull(points, hull, clockwise) 2329 public static void convexHull(MatOfPoint points, MatOfInt hull, boolean clockwise) 2330 { 2331 Mat points_mat = points; 2332 Mat hull_mat = hull; 2333 convexHull_0(points_mat.nativeObj, hull_mat.nativeObj, clockwise); 2334 2335 return; 2336 } 2337 2338 //javadoc: convexHull(points, hull) 2339 public static void convexHull(MatOfPoint points, MatOfInt hull) 2340 { 2341 Mat points_mat = points; 2342 Mat hull_mat = hull; 2343 convexHull_1(points_mat.nativeObj, hull_mat.nativeObj); 2344 2345 return; 2346 } 2347 2348 2349 // 2350 // C++: void convexityDefects(vector_Point contour, vector_int convexhull, vector_Vec4i& convexityDefects) 2351 // 2352 2353 //javadoc: convexityDefects(contour, convexhull, convexityDefects) 2354 public static void convexityDefects(MatOfPoint contour, MatOfInt convexhull, MatOfInt4 convexityDefects) 2355 { 2356 Mat contour_mat = contour; 2357 Mat convexhull_mat = convexhull; 2358 Mat convexityDefects_mat = convexityDefects; 2359 convexityDefects_0(contour_mat.nativeObj, convexhull_mat.nativeObj, convexityDefects_mat.nativeObj); 2360 2361 return; 2362 } 2363 2364 2365 // 2366 // C++: bool isContourConvex(vector_Point contour) 2367 // 2368 2369 //javadoc: isContourConvex(contour) 2370 public static boolean isContourConvex(MatOfPoint contour) 2371 { 2372 Mat contour_mat = contour; 2373 boolean retVal = isContourConvex_0(contour_mat.nativeObj); 2374 2375 return retVal; 2376 } 2377 2378 2379 // 2380 // C++: float intersectConvexConvex(Mat _p1, Mat _p2, Mat& _p12, bool handleNested = true) 2381 // 2382 2383 //javadoc: intersectConvexConvex(_p1, _p2, _p12, handleNested) 2384 public static float intersectConvexConvex(Mat _p1, Mat _p2, Mat _p12, boolean handleNested) 2385 { 2386 2387 float retVal = intersectConvexConvex_0(_p1.nativeObj, _p2.nativeObj, _p12.nativeObj, handleNested); 2388 2389 return retVal; 2390 } 2391 2392 //javadoc: intersectConvexConvex(_p1, _p2, _p12) 2393 public static float intersectConvexConvex(Mat _p1, Mat _p2, Mat _p12) 2394 { 2395 2396 float retVal = intersectConvexConvex_1(_p1.nativeObj, _p2.nativeObj, _p12.nativeObj); 2397 2398 return retVal; 2399 } 2400 2401 2402 // 2403 // C++: RotatedRect fitEllipse(vector_Point2f points) 2404 // 2405 2406 //javadoc: fitEllipse(points) 2407 public static RotatedRect fitEllipse(MatOfPoint2f points) 2408 { 2409 Mat points_mat = points; 2410 RotatedRect retVal = new RotatedRect(fitEllipse_0(points_mat.nativeObj)); 2411 2412 return retVal; 2413 } 2414 2415 2416 // 2417 // C++: void fitLine(Mat points, Mat& line, int distType, double param, double reps, double aeps) 2418 // 2419 2420 //javadoc: fitLine(points, line, distType, param, reps, aeps) 2421 public static void fitLine(Mat points, Mat line, int distType, double param, double reps, double aeps) 2422 { 2423 2424 fitLine_0(points.nativeObj, line.nativeObj, distType, param, reps, aeps); 2425 2426 return; 2427 } 2428 2429 2430 // 2431 // C++: double pointPolygonTest(vector_Point2f contour, Point2f pt, bool measureDist) 2432 // 2433 2434 //javadoc: pointPolygonTest(contour, pt, measureDist) 2435 public static double pointPolygonTest(MatOfPoint2f contour, Point pt, boolean measureDist) 2436 { 2437 Mat contour_mat = contour; 2438 double retVal = pointPolygonTest_0(contour_mat.nativeObj, pt.x, pt.y, measureDist); 2439 2440 return retVal; 2441 } 2442 2443 2444 // 2445 // C++: int rotatedRectangleIntersection(RotatedRect rect1, RotatedRect rect2, Mat& intersectingRegion) 2446 // 2447 2448 //javadoc: rotatedRectangleIntersection(rect1, rect2, intersectingRegion) 2449 public static int rotatedRectangleIntersection(RotatedRect rect1, RotatedRect rect2, Mat intersectingRegion) 2450 { 2451 2452 int retVal = rotatedRectangleIntersection_0(rect1.center.x, rect1.center.y, rect1.size.width, rect1.size.height, rect1.angle, rect2.center.x, rect2.center.y, rect2.size.width, rect2.size.height, rect2.angle, intersectingRegion.nativeObj); 2453 2454 return retVal; 2455 } 2456 2457 2458 // 2459 // C++: Ptr_CLAHE createCLAHE(double clipLimit = 40.0, Size tileGridSize = Size(8, 8)) 2460 // 2461 2462 //javadoc: createCLAHE(clipLimit, tileGridSize) 2463 public static CLAHE createCLAHE(double clipLimit, Size tileGridSize) 2464 { 2465 2466 CLAHE retVal = new CLAHE(createCLAHE_0(clipLimit, tileGridSize.width, tileGridSize.height)); 2467 2468 return retVal; 2469 } 2470 2471 //javadoc: createCLAHE() 2472 public static CLAHE createCLAHE() 2473 { 2474 2475 CLAHE retVal = new CLAHE(createCLAHE_1()); 2476 2477 return retVal; 2478 } 2479 2480 2481 // 2482 // C++: void applyColorMap(Mat src, Mat& dst, int colormap) 2483 // 2484 2485 //javadoc: applyColorMap(src, dst, colormap) 2486 public static void applyColorMap(Mat src, Mat dst, int colormap) 2487 { 2488 2489 applyColorMap_0(src.nativeObj, dst.nativeObj, colormap); 2490 2491 return; 2492 } 2493 2494 2495 // 2496 // C++: void line(Mat& img, Point pt1, Point pt2, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0) 2497 // 2498 2499 //javadoc: line(img, pt1, pt2, color, thickness, lineType, shift) 2500 public static void line(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int lineType, int shift) 2501 { 2502 2503 line_0(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType, shift); 2504 2505 return; 2506 } 2507 2508 //javadoc: line(img, pt1, pt2, color, thickness) 2509 public static void line(Mat img, Point pt1, Point pt2, Scalar color, int thickness) 2510 { 2511 2512 line_1(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3], thickness); 2513 2514 return; 2515 } 2516 2517 //javadoc: line(img, pt1, pt2, color) 2518 public static void line(Mat img, Point pt1, Point pt2, Scalar color) 2519 { 2520 2521 line_2(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3]); 2522 2523 return; 2524 } 2525 2526 2527 // 2528 // C++: void arrowedLine(Mat& img, Point pt1, Point pt2, Scalar color, int thickness = 1, int line_type = 8, int shift = 0, double tipLength = 0.1) 2529 // 2530 2531 //javadoc: arrowedLine(img, pt1, pt2, color, thickness, line_type, shift, tipLength) 2532 public static void arrowedLine(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int line_type, int shift, double tipLength) 2533 { 2534 2535 arrowedLine_0(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3], thickness, line_type, shift, tipLength); 2536 2537 return; 2538 } 2539 2540 //javadoc: arrowedLine(img, pt1, pt2, color) 2541 public static void arrowedLine(Mat img, Point pt1, Point pt2, Scalar color) 2542 { 2543 2544 arrowedLine_1(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3]); 2545 2546 return; 2547 } 2548 2549 2550 // 2551 // C++: void rectangle(Mat& img, Point pt1, Point pt2, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0) 2552 // 2553 2554 //javadoc: rectangle(img, pt1, pt2, color, thickness, lineType, shift) 2555 public static void rectangle(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int lineType, int shift) 2556 { 2557 2558 rectangle_0(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType, shift); 2559 2560 return; 2561 } 2562 2563 //javadoc: rectangle(img, pt1, pt2, color, thickness) 2564 public static void rectangle(Mat img, Point pt1, Point pt2, Scalar color, int thickness) 2565 { 2566 2567 rectangle_1(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3], thickness); 2568 2569 return; 2570 } 2571 2572 //javadoc: rectangle(img, pt1, pt2, color) 2573 public static void rectangle(Mat img, Point pt1, Point pt2, Scalar color) 2574 { 2575 2576 rectangle_2(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3]); 2577 2578 return; 2579 } 2580 2581 2582 // 2583 // C++: void circle(Mat& img, Point center, int radius, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0) 2584 // 2585 2586 //javadoc: circle(img, center, radius, color, thickness, lineType, shift) 2587 public static void circle(Mat img, Point center, int radius, Scalar color, int thickness, int lineType, int shift) 2588 { 2589 2590 circle_0(img.nativeObj, center.x, center.y, radius, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType, shift); 2591 2592 return; 2593 } 2594 2595 //javadoc: circle(img, center, radius, color, thickness) 2596 public static void circle(Mat img, Point center, int radius, Scalar color, int thickness) 2597 { 2598 2599 circle_1(img.nativeObj, center.x, center.y, radius, color.val[0], color.val[1], color.val[2], color.val[3], thickness); 2600 2601 return; 2602 } 2603 2604 //javadoc: circle(img, center, radius, color) 2605 public static void circle(Mat img, Point center, int radius, Scalar color) 2606 { 2607 2608 circle_2(img.nativeObj, center.x, center.y, radius, color.val[0], color.val[1], color.val[2], color.val[3]); 2609 2610 return; 2611 } 2612 2613 2614 // 2615 // C++: void ellipse(Mat& img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0) 2616 // 2617 2618 //javadoc: ellipse(img, center, axes, angle, startAngle, endAngle, color, thickness, lineType, shift) 2619 public static void ellipse(Mat img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color, int thickness, int lineType, int shift) 2620 { 2621 2622 ellipse_0(img.nativeObj, center.x, center.y, axes.width, axes.height, angle, startAngle, endAngle, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType, shift); 2623 2624 return; 2625 } 2626 2627 //javadoc: ellipse(img, center, axes, angle, startAngle, endAngle, color, thickness) 2628 public static void ellipse(Mat img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color, int thickness) 2629 { 2630 2631 ellipse_1(img.nativeObj, center.x, center.y, axes.width, axes.height, angle, startAngle, endAngle, color.val[0], color.val[1], color.val[2], color.val[3], thickness); 2632 2633 return; 2634 } 2635 2636 //javadoc: ellipse(img, center, axes, angle, startAngle, endAngle, color) 2637 public static void ellipse(Mat img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color) 2638 { 2639 2640 ellipse_2(img.nativeObj, center.x, center.y, axes.width, axes.height, angle, startAngle, endAngle, color.val[0], color.val[1], color.val[2], color.val[3]); 2641 2642 return; 2643 } 2644 2645 2646 // 2647 // C++: void ellipse(Mat& img, RotatedRect box, Scalar color, int thickness = 1, int lineType = LINE_8) 2648 // 2649 2650 //javadoc: ellipse(img, box, color, thickness, lineType) 2651 public static void ellipse(Mat img, RotatedRect box, Scalar color, int thickness, int lineType) 2652 { 2653 2654 ellipse_3(img.nativeObj, box.center.x, box.center.y, box.size.width, box.size.height, box.angle, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType); 2655 2656 return; 2657 } 2658 2659 //javadoc: ellipse(img, box, color, thickness) 2660 public static void ellipse(Mat img, RotatedRect box, Scalar color, int thickness) 2661 { 2662 2663 ellipse_4(img.nativeObj, box.center.x, box.center.y, box.size.width, box.size.height, box.angle, color.val[0], color.val[1], color.val[2], color.val[3], thickness); 2664 2665 return; 2666 } 2667 2668 //javadoc: ellipse(img, box, color) 2669 public static void ellipse(Mat img, RotatedRect box, Scalar color) 2670 { 2671 2672 ellipse_5(img.nativeObj, box.center.x, box.center.y, box.size.width, box.size.height, box.angle, color.val[0], color.val[1], color.val[2], color.val[3]); 2673 2674 return; 2675 } 2676 2677 2678 // 2679 // C++: void fillConvexPoly(Mat& img, vector_Point points, Scalar color, int lineType = LINE_8, int shift = 0) 2680 // 2681 2682 //javadoc: fillConvexPoly(img, points, color, lineType, shift) 2683 public static void fillConvexPoly(Mat img, MatOfPoint points, Scalar color, int lineType, int shift) 2684 { 2685 Mat points_mat = points; 2686 fillConvexPoly_0(img.nativeObj, points_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3], lineType, shift); 2687 2688 return; 2689 } 2690 2691 //javadoc: fillConvexPoly(img, points, color) 2692 public static void fillConvexPoly(Mat img, MatOfPoint points, Scalar color) 2693 { 2694 Mat points_mat = points; 2695 fillConvexPoly_1(img.nativeObj, points_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3]); 2696 2697 return; 2698 } 2699 2700 2701 // 2702 // C++: void fillPoly(Mat& img, vector_vector_Point pts, Scalar color, int lineType = LINE_8, int shift = 0, Point offset = Point()) 2703 // 2704 2705 //javadoc: fillPoly(img, pts, color, lineType, shift, offset) 2706 public static void fillPoly(Mat img, List<MatOfPoint> pts, Scalar color, int lineType, int shift, Point offset) 2707 { 2708 List<Mat> pts_tmplm = new ArrayList<Mat>((pts != null) ? pts.size() : 0); 2709 Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm); 2710 fillPoly_0(img.nativeObj, pts_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3], lineType, shift, offset.x, offset.y); 2711 2712 return; 2713 } 2714 2715 //javadoc: fillPoly(img, pts, color) 2716 public static void fillPoly(Mat img, List<MatOfPoint> pts, Scalar color) 2717 { 2718 List<Mat> pts_tmplm = new ArrayList<Mat>((pts != null) ? pts.size() : 0); 2719 Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm); 2720 fillPoly_1(img.nativeObj, pts_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3]); 2721 2722 return; 2723 } 2724 2725 2726 // 2727 // C++: void polylines(Mat& img, vector_vector_Point pts, bool isClosed, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0) 2728 // 2729 2730 //javadoc: polylines(img, pts, isClosed, color, thickness, lineType, shift) 2731 public static void polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color, int thickness, int lineType, int shift) 2732 { 2733 List<Mat> pts_tmplm = new ArrayList<Mat>((pts != null) ? pts.size() : 0); 2734 Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm); 2735 polylines_0(img.nativeObj, pts_mat.nativeObj, isClosed, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType, shift); 2736 2737 return; 2738 } 2739 2740 //javadoc: polylines(img, pts, isClosed, color, thickness) 2741 public static void polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color, int thickness) 2742 { 2743 List<Mat> pts_tmplm = new ArrayList<Mat>((pts != null) ? pts.size() : 0); 2744 Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm); 2745 polylines_1(img.nativeObj, pts_mat.nativeObj, isClosed, color.val[0], color.val[1], color.val[2], color.val[3], thickness); 2746 2747 return; 2748 } 2749 2750 //javadoc: polylines(img, pts, isClosed, color) 2751 public static void polylines(Mat img, List<MatOfPoint> pts, boolean isClosed, Scalar color) 2752 { 2753 List<Mat> pts_tmplm = new ArrayList<Mat>((pts != null) ? pts.size() : 0); 2754 Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm); 2755 polylines_2(img.nativeObj, pts_mat.nativeObj, isClosed, color.val[0], color.val[1], color.val[2], color.val[3]); 2756 2757 return; 2758 } 2759 2760 2761 // 2762 // C++: void drawContours(Mat& image, vector_vector_Point contours, int contourIdx, Scalar color, int thickness = 1, int lineType = LINE_8, Mat hierarchy = Mat(), int maxLevel = INT_MAX, Point offset = Point()) 2763 // 2764 2765 //javadoc: drawContours(image, contours, contourIdx, color, thickness, lineType, hierarchy, maxLevel, offset) 2766 public static void drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness, int lineType, Mat hierarchy, int maxLevel, Point offset) 2767 { 2768 List<Mat> contours_tmplm = new ArrayList<Mat>((contours != null) ? contours.size() : 0); 2769 Mat contours_mat = Converters.vector_vector_Point_to_Mat(contours, contours_tmplm); 2770 drawContours_0(image.nativeObj, contours_mat.nativeObj, contourIdx, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType, hierarchy.nativeObj, maxLevel, offset.x, offset.y); 2771 2772 return; 2773 } 2774 2775 //javadoc: drawContours(image, contours, contourIdx, color, thickness) 2776 public static void drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness) 2777 { 2778 List<Mat> contours_tmplm = new ArrayList<Mat>((contours != null) ? contours.size() : 0); 2779 Mat contours_mat = Converters.vector_vector_Point_to_Mat(contours, contours_tmplm); 2780 drawContours_1(image.nativeObj, contours_mat.nativeObj, contourIdx, color.val[0], color.val[1], color.val[2], color.val[3], thickness); 2781 2782 return; 2783 } 2784 2785 //javadoc: drawContours(image, contours, contourIdx, color) 2786 public static void drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color) 2787 { 2788 List<Mat> contours_tmplm = new ArrayList<Mat>((contours != null) ? contours.size() : 0); 2789 Mat contours_mat = Converters.vector_vector_Point_to_Mat(contours, contours_tmplm); 2790 drawContours_2(image.nativeObj, contours_mat.nativeObj, contourIdx, color.val[0], color.val[1], color.val[2], color.val[3]); 2791 2792 return; 2793 } 2794 2795 2796 // 2797 // C++: bool clipLine(Rect imgRect, Point& pt1, Point& pt2) 2798 // 2799 2800 //javadoc: clipLine(imgRect, pt1, pt2) 2801 public static boolean clipLine(Rect imgRect, Point pt1, Point pt2) 2802 { 2803 double[] pt1_out = new double[2]; 2804 double[] pt2_out = new double[2]; 2805 boolean retVal = clipLine_0(imgRect.x, imgRect.y, imgRect.width, imgRect.height, pt1.x, pt1.y, pt1_out, pt2.x, pt2.y, pt2_out); 2806 if(pt1!=null){ pt1.x = pt1_out[0]; pt1.y = pt1_out[1]; } 2807 if(pt2!=null){ pt2.x = pt2_out[0]; pt2.y = pt2_out[1]; } 2808 return retVal; 2809 } 2810 2811 2812 // 2813 // C++: void ellipse2Poly(Point center, Size axes, int angle, int arcStart, int arcEnd, int delta, vector_Point& pts) 2814 // 2815 2816 //javadoc: ellipse2Poly(center, axes, angle, arcStart, arcEnd, delta, pts) 2817 public static void ellipse2Poly(Point center, Size axes, int angle, int arcStart, int arcEnd, int delta, MatOfPoint pts) 2818 { 2819 Mat pts_mat = pts; 2820 ellipse2Poly_0(center.x, center.y, axes.width, axes.height, angle, arcStart, arcEnd, delta, pts_mat.nativeObj); 2821 2822 return; 2823 } 2824 2825 2826 // 2827 // C++: void putText(Mat& img, String text, Point org, int fontFace, double fontScale, Scalar color, int thickness = 1, int lineType = LINE_8, bool bottomLeftOrigin = false) 2828 // 2829 2830 //javadoc: putText(img, text, org, fontFace, fontScale, color, thickness, lineType, bottomLeftOrigin) 2831 public static void putText(Mat img, String text, Point org, int fontFace, double fontScale, Scalar color, int thickness, int lineType, boolean bottomLeftOrigin) 2832 { 2833 2834 putText_0(img.nativeObj, text, org.x, org.y, fontFace, fontScale, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType, bottomLeftOrigin); 2835 2836 return; 2837 } 2838 2839 //javadoc: putText(img, text, org, fontFace, fontScale, color, thickness) 2840 public static void putText(Mat img, String text, Point org, int fontFace, double fontScale, Scalar color, int thickness) 2841 { 2842 2843 putText_1(img.nativeObj, text, org.x, org.y, fontFace, fontScale, color.val[0], color.val[1], color.val[2], color.val[3], thickness); 2844 2845 return; 2846 } 2847 2848 //javadoc: putText(img, text, org, fontFace, fontScale, color) 2849 public static void putText(Mat img, String text, Point org, int fontFace, double fontScale, Scalar color) 2850 { 2851 2852 putText_2(img.nativeObj, text, org.x, org.y, fontFace, fontScale, color.val[0], color.val[1], color.val[2], color.val[3]); 2853 2854 return; 2855 } 2856 2857 2858 // C++: Size getTextSize(const String& text, int fontFace, double fontScale, int thickness, int* baseLine); 2859 //javadoc:getTextSize(text, fontFace, fontScale, thickness, baseLine) 2860 public static Size getTextSize(String text, int fontFace, double fontScale, int thickness, int[] baseLine) { 2861 if(baseLine != null && baseLine.length != 1) 2862 throw new java.lang.IllegalArgumentException("'baseLine' must be 'int[1]' or 'null'."); 2863 Size retVal = new Size(n_getTextSize(text, fontFace, fontScale, thickness, baseLine)); 2864 return retVal; 2865 } 2866 2867 2868 2869 // C++: void remap(Mat src, Mat& dst, Mat map1, Mat map2, int interpolation, int borderMode = BORDER_CONSTANT, Scalar borderValue = Scalar()) 2870 private static native void remap_0(long src_nativeObj, long dst_nativeObj, long map1_nativeObj, long map2_nativeObj, int interpolation, int borderMode, double borderValue_val0, double borderValue_val1, double borderValue_val2, double borderValue_val3); 2871 private static native void remap_1(long src_nativeObj, long dst_nativeObj, long map1_nativeObj, long map2_nativeObj, int interpolation); 2872 2873 // C++: void convertMaps(Mat map1, Mat map2, Mat& dstmap1, Mat& dstmap2, int dstmap1type, bool nninterpolation = false) 2874 private static native void convertMaps_0(long map1_nativeObj, long map2_nativeObj, long dstmap1_nativeObj, long dstmap2_nativeObj, int dstmap1type, boolean nninterpolation); 2875 private static native void convertMaps_1(long map1_nativeObj, long map2_nativeObj, long dstmap1_nativeObj, long dstmap2_nativeObj, int dstmap1type); 2876 2877 // C++: Mat getRotationMatrix2D(Point2f center, double angle, double scale) 2878 private static native long getRotationMatrix2D_0(double center_x, double center_y, double angle, double scale); 2879 2880 // C++: void invertAffineTransform(Mat M, Mat& iM) 2881 private static native void invertAffineTransform_0(long M_nativeObj, long iM_nativeObj); 2882 2883 // C++: Mat getPerspectiveTransform(Mat src, Mat dst) 2884 private static native long getPerspectiveTransform_0(long src_nativeObj, long dst_nativeObj); 2885 2886 // C++: Mat getAffineTransform(vector_Point2f src, vector_Point2f dst) 2887 private static native long getAffineTransform_0(long src_mat_nativeObj, long dst_mat_nativeObj); 2888 2889 // C++: void getRectSubPix(Mat image, Size patchSize, Point2f center, Mat& patch, int patchType = -1) 2890 private static native void getRectSubPix_0(long image_nativeObj, double patchSize_width, double patchSize_height, double center_x, double center_y, long patch_nativeObj, int patchType); 2891 private static native void getRectSubPix_1(long image_nativeObj, double patchSize_width, double patchSize_height, double center_x, double center_y, long patch_nativeObj); 2892 2893 // C++: void logPolar(Mat src, Mat& dst, Point2f center, double M, int flags) 2894 private static native void logPolar_0(long src_nativeObj, long dst_nativeObj, double center_x, double center_y, double M, int flags); 2895 2896 // C++: void linearPolar(Mat src, Mat& dst, Point2f center, double maxRadius, int flags) 2897 private static native void linearPolar_0(long src_nativeObj, long dst_nativeObj, double center_x, double center_y, double maxRadius, int flags); 2898 2899 // C++: void integral(Mat src, Mat& sum, int sdepth = -1) 2900 private static native void integral_0(long src_nativeObj, long sum_nativeObj, int sdepth); 2901 private static native void integral_1(long src_nativeObj, long sum_nativeObj); 2902 2903 // C++: void filter2D(Mat src, Mat& dst, int ddepth, Mat kernel, Point anchor = Point(-1,-1), double delta = 0, int borderType = BORDER_DEFAULT) 2904 private static native void filter2D_0(long src_nativeObj, long dst_nativeObj, int ddepth, long kernel_nativeObj, double anchor_x, double anchor_y, double delta, int borderType); 2905 private static native void filter2D_1(long src_nativeObj, long dst_nativeObj, int ddepth, long kernel_nativeObj, double anchor_x, double anchor_y, double delta); 2906 private static native void filter2D_2(long src_nativeObj, long dst_nativeObj, int ddepth, long kernel_nativeObj); 2907 2908 // C++: void sepFilter2D(Mat src, Mat& dst, int ddepth, Mat kernelX, Mat kernelY, Point anchor = Point(-1,-1), double delta = 0, int borderType = BORDER_DEFAULT) 2909 private static native void sepFilter2D_0(long src_nativeObj, long dst_nativeObj, int ddepth, long kernelX_nativeObj, long kernelY_nativeObj, double anchor_x, double anchor_y, double delta, int borderType); 2910 private static native void sepFilter2D_1(long src_nativeObj, long dst_nativeObj, int ddepth, long kernelX_nativeObj, long kernelY_nativeObj, double anchor_x, double anchor_y, double delta); 2911 private static native void sepFilter2D_2(long src_nativeObj, long dst_nativeObj, int ddepth, long kernelX_nativeObj, long kernelY_nativeObj); 2912 2913 // C++: void Sobel(Mat src, Mat& dst, int ddepth, int dx, int dy, int ksize = 3, double scale = 1, double delta = 0, int borderType = BORDER_DEFAULT) 2914 private static native void Sobel_0(long src_nativeObj, long dst_nativeObj, int ddepth, int dx, int dy, int ksize, double scale, double delta, int borderType); 2915 private static native void Sobel_1(long src_nativeObj, long dst_nativeObj, int ddepth, int dx, int dy, int ksize, double scale, double delta); 2916 private static native void Sobel_2(long src_nativeObj, long dst_nativeObj, int ddepth, int dx, int dy); 2917 2918 // C++: void Scharr(Mat src, Mat& dst, int ddepth, int dx, int dy, double scale = 1, double delta = 0, int borderType = BORDER_DEFAULT) 2919 private static native void Scharr_0(long src_nativeObj, long dst_nativeObj, int ddepth, int dx, int dy, double scale, double delta, int borderType); 2920 private static native void Scharr_1(long src_nativeObj, long dst_nativeObj, int ddepth, int dx, int dy, double scale, double delta); 2921 private static native void Scharr_2(long src_nativeObj, long dst_nativeObj, int ddepth, int dx, int dy); 2922 2923 // C++: void Laplacian(Mat src, Mat& dst, int ddepth, int ksize = 1, double scale = 1, double delta = 0, int borderType = BORDER_DEFAULT) 2924 private static native void Laplacian_0(long src_nativeObj, long dst_nativeObj, int ddepth, int ksize, double scale, double delta, int borderType); 2925 private static native void Laplacian_1(long src_nativeObj, long dst_nativeObj, int ddepth, int ksize, double scale, double delta); 2926 private static native void Laplacian_2(long src_nativeObj, long dst_nativeObj, int ddepth); 2927 2928 // C++: void Canny(Mat image, Mat& edges, double threshold1, double threshold2, int apertureSize = 3, bool L2gradient = false) 2929 private static native void Canny_0(long image_nativeObj, long edges_nativeObj, double threshold1, double threshold2, int apertureSize, boolean L2gradient); 2930 private static native void Canny_1(long image_nativeObj, long edges_nativeObj, double threshold1, double threshold2); 2931 2932 // C++: void cornerMinEigenVal(Mat src, Mat& dst, int blockSize, int ksize = 3, int borderType = BORDER_DEFAULT) 2933 private static native void cornerMinEigenVal_0(long src_nativeObj, long dst_nativeObj, int blockSize, int ksize, int borderType); 2934 private static native void cornerMinEigenVal_1(long src_nativeObj, long dst_nativeObj, int blockSize, int ksize); 2935 private static native void cornerMinEigenVal_2(long src_nativeObj, long dst_nativeObj, int blockSize); 2936 2937 // C++: Ptr_LineSegmentDetector createLineSegmentDetector(int _refine = LSD_REFINE_STD, double _scale = 0.8, double _sigma_scale = 0.6, double _quant = 2.0, double _ang_th = 22.5, double _log_eps = 0, double _density_th = 0.7, int _n_bins = 1024) 2938 private static native long createLineSegmentDetector_0(int _refine, double _scale, double _sigma_scale, double _quant, double _ang_th, double _log_eps, double _density_th, int _n_bins); 2939 private static native long createLineSegmentDetector_1(); 2940 2941 // C++: Mat getGaussianKernel(int ksize, double sigma, int ktype = CV_64F) 2942 private static native long getGaussianKernel_0(int ksize, double sigma, int ktype); 2943 private static native long getGaussianKernel_1(int ksize, double sigma); 2944 2945 // C++: void getDerivKernels(Mat& kx, Mat& ky, int dx, int dy, int ksize, bool normalize = false, int ktype = CV_32F) 2946 private static native void getDerivKernels_0(long kx_nativeObj, long ky_nativeObj, int dx, int dy, int ksize, boolean normalize, int ktype); 2947 private static native void getDerivKernels_1(long kx_nativeObj, long ky_nativeObj, int dx, int dy, int ksize); 2948 2949 // C++: Mat getGaborKernel(Size ksize, double sigma, double theta, double lambd, double gamma, double psi = CV_PI*0.5, int ktype = CV_64F) 2950 private static native long getGaborKernel_0(double ksize_width, double ksize_height, double sigma, double theta, double lambd, double gamma, double psi, int ktype); 2951 private static native long getGaborKernel_1(double ksize_width, double ksize_height, double sigma, double theta, double lambd, double gamma); 2952 2953 // C++: Mat getStructuringElement(int shape, Size ksize, Point anchor = Point(-1,-1)) 2954 private static native long getStructuringElement_0(int shape, double ksize_width, double ksize_height, double anchor_x, double anchor_y); 2955 private static native long getStructuringElement_1(int shape, double ksize_width, double ksize_height); 2956 2957 // C++: void medianBlur(Mat src, Mat& dst, int ksize) 2958 private static native void medianBlur_0(long src_nativeObj, long dst_nativeObj, int ksize); 2959 2960 // C++: void GaussianBlur(Mat src, Mat& dst, Size ksize, double sigmaX, double sigmaY = 0, int borderType = BORDER_DEFAULT) 2961 private static native void GaussianBlur_0(long src_nativeObj, long dst_nativeObj, double ksize_width, double ksize_height, double sigmaX, double sigmaY, int borderType); 2962 private static native void GaussianBlur_1(long src_nativeObj, long dst_nativeObj, double ksize_width, double ksize_height, double sigmaX, double sigmaY); 2963 private static native void GaussianBlur_2(long src_nativeObj, long dst_nativeObj, double ksize_width, double ksize_height, double sigmaX); 2964 2965 // C++: void bilateralFilter(Mat src, Mat& dst, int d, double sigmaColor, double sigmaSpace, int borderType = BORDER_DEFAULT) 2966 private static native void bilateralFilter_0(long src_nativeObj, long dst_nativeObj, int d, double sigmaColor, double sigmaSpace, int borderType); 2967 private static native void bilateralFilter_1(long src_nativeObj, long dst_nativeObj, int d, double sigmaColor, double sigmaSpace); 2968 2969 // C++: void boxFilter(Mat src, Mat& dst, int ddepth, Size ksize, Point anchor = Point(-1,-1), bool normalize = true, int borderType = BORDER_DEFAULT) 2970 private static native void boxFilter_0(long src_nativeObj, long dst_nativeObj, int ddepth, double ksize_width, double ksize_height, double anchor_x, double anchor_y, boolean normalize, int borderType); 2971 private static native void boxFilter_1(long src_nativeObj, long dst_nativeObj, int ddepth, double ksize_width, double ksize_height, double anchor_x, double anchor_y, boolean normalize); 2972 private static native void boxFilter_2(long src_nativeObj, long dst_nativeObj, int ddepth, double ksize_width, double ksize_height); 2973 2974 // C++: void sqrBoxFilter(Mat _src, Mat& _dst, int ddepth, Size ksize, Point anchor = Point(-1, -1), bool normalize = true, int borderType = BORDER_DEFAULT) 2975 private static native void sqrBoxFilter_0(long _src_nativeObj, long _dst_nativeObj, int ddepth, double ksize_width, double ksize_height, double anchor_x, double anchor_y, boolean normalize, int borderType); 2976 private static native void sqrBoxFilter_1(long _src_nativeObj, long _dst_nativeObj, int ddepth, double ksize_width, double ksize_height, double anchor_x, double anchor_y, boolean normalize); 2977 private static native void sqrBoxFilter_2(long _src_nativeObj, long _dst_nativeObj, int ddepth, double ksize_width, double ksize_height); 2978 2979 // C++: void blur(Mat src, Mat& dst, Size ksize, Point anchor = Point(-1,-1), int borderType = BORDER_DEFAULT) 2980 private static native void blur_0(long src_nativeObj, long dst_nativeObj, double ksize_width, double ksize_height, double anchor_x, double anchor_y, int borderType); 2981 private static native void blur_1(long src_nativeObj, long dst_nativeObj, double ksize_width, double ksize_height, double anchor_x, double anchor_y); 2982 private static native void blur_2(long src_nativeObj, long dst_nativeObj, double ksize_width, double ksize_height); 2983 2984 // C++: void cornerHarris(Mat src, Mat& dst, int blockSize, int ksize, double k, int borderType = BORDER_DEFAULT) 2985 private static native void cornerHarris_0(long src_nativeObj, long dst_nativeObj, int blockSize, int ksize, double k, int borderType); 2986 private static native void cornerHarris_1(long src_nativeObj, long dst_nativeObj, int blockSize, int ksize, double k); 2987 2988 // C++: void cornerEigenValsAndVecs(Mat src, Mat& dst, int blockSize, int ksize, int borderType = BORDER_DEFAULT) 2989 private static native void cornerEigenValsAndVecs_0(long src_nativeObj, long dst_nativeObj, int blockSize, int ksize, int borderType); 2990 private static native void cornerEigenValsAndVecs_1(long src_nativeObj, long dst_nativeObj, int blockSize, int ksize); 2991 2992 // C++: void preCornerDetect(Mat src, Mat& dst, int ksize, int borderType = BORDER_DEFAULT) 2993 private static native void preCornerDetect_0(long src_nativeObj, long dst_nativeObj, int ksize, int borderType); 2994 private static native void preCornerDetect_1(long src_nativeObj, long dst_nativeObj, int ksize); 2995 2996 // C++: void cornerSubPix(Mat image, vector_Point2f& corners, Size winSize, Size zeroZone, TermCriteria criteria) 2997 private static native void cornerSubPix_0(long image_nativeObj, long corners_mat_nativeObj, double winSize_width, double winSize_height, double zeroZone_width, double zeroZone_height, int criteria_type, int criteria_maxCount, double criteria_epsilon); 2998 2999 // C++: void goodFeaturesToTrack(Mat image, vector_Point& corners, int maxCorners, double qualityLevel, double minDistance, Mat mask = Mat(), int blockSize = 3, bool useHarrisDetector = false, double k = 0.04) 3000 private static native void goodFeaturesToTrack_0(long image_nativeObj, long corners_mat_nativeObj, int maxCorners, double qualityLevel, double minDistance, long mask_nativeObj, int blockSize, boolean useHarrisDetector, double k); 3001 private static native void goodFeaturesToTrack_1(long image_nativeObj, long corners_mat_nativeObj, int maxCorners, double qualityLevel, double minDistance); 3002 3003 // C++: void HoughLines(Mat image, Mat& lines, double rho, double theta, int threshold, double srn = 0, double stn = 0, double min_theta = 0, double max_theta = CV_PI) 3004 private static native void HoughLines_0(long image_nativeObj, long lines_nativeObj, double rho, double theta, int threshold, double srn, double stn, double min_theta, double max_theta); 3005 private static native void HoughLines_1(long image_nativeObj, long lines_nativeObj, double rho, double theta, int threshold); 3006 3007 // C++: void HoughLinesP(Mat image, Mat& lines, double rho, double theta, int threshold, double minLineLength = 0, double maxLineGap = 0) 3008 private static native void HoughLinesP_0(long image_nativeObj, long lines_nativeObj, double rho, double theta, int threshold, double minLineLength, double maxLineGap); 3009 private static native void HoughLinesP_1(long image_nativeObj, long lines_nativeObj, double rho, double theta, int threshold); 3010 3011 // C++: void HoughCircles(Mat image, Mat& circles, int method, double dp, double minDist, double param1 = 100, double param2 = 100, int minRadius = 0, int maxRadius = 0) 3012 private static native void HoughCircles_0(long image_nativeObj, long circles_nativeObj, int method, double dp, double minDist, double param1, double param2, int minRadius, int maxRadius); 3013 private static native void HoughCircles_1(long image_nativeObj, long circles_nativeObj, int method, double dp, double minDist); 3014 3015 // C++: void erode(Mat src, Mat& dst, Mat kernel, Point anchor = Point(-1,-1), int iterations = 1, int borderType = BORDER_CONSTANT, Scalar borderValue = morphologyDefaultBorderValue()) 3016 private static native void erode_0(long src_nativeObj, long dst_nativeObj, long kernel_nativeObj, double anchor_x, double anchor_y, int iterations, int borderType, double borderValue_val0, double borderValue_val1, double borderValue_val2, double borderValue_val3); 3017 private static native void erode_1(long src_nativeObj, long dst_nativeObj, long kernel_nativeObj, double anchor_x, double anchor_y, int iterations); 3018 private static native void erode_2(long src_nativeObj, long dst_nativeObj, long kernel_nativeObj); 3019 3020 // C++: void dilate(Mat src, Mat& dst, Mat kernel, Point anchor = Point(-1,-1), int iterations = 1, int borderType = BORDER_CONSTANT, Scalar borderValue = morphologyDefaultBorderValue()) 3021 private static native void dilate_0(long src_nativeObj, long dst_nativeObj, long kernel_nativeObj, double anchor_x, double anchor_y, int iterations, int borderType, double borderValue_val0, double borderValue_val1, double borderValue_val2, double borderValue_val3); 3022 private static native void dilate_1(long src_nativeObj, long dst_nativeObj, long kernel_nativeObj, double anchor_x, double anchor_y, int iterations); 3023 private static native void dilate_2(long src_nativeObj, long dst_nativeObj, long kernel_nativeObj); 3024 3025 // C++: void morphologyEx(Mat src, Mat& dst, int op, Mat kernel, Point anchor = Point(-1,-1), int iterations = 1, int borderType = BORDER_CONSTANT, Scalar borderValue = morphologyDefaultBorderValue()) 3026 private static native void morphologyEx_0(long src_nativeObj, long dst_nativeObj, int op, long kernel_nativeObj, double anchor_x, double anchor_y, int iterations, int borderType, double borderValue_val0, double borderValue_val1, double borderValue_val2, double borderValue_val3); 3027 private static native void morphologyEx_1(long src_nativeObj, long dst_nativeObj, int op, long kernel_nativeObj, double anchor_x, double anchor_y, int iterations); 3028 private static native void morphologyEx_2(long src_nativeObj, long dst_nativeObj, int op, long kernel_nativeObj); 3029 3030 // C++: void resize(Mat src, Mat& dst, Size dsize, double fx = 0, double fy = 0, int interpolation = INTER_LINEAR) 3031 private static native void resize_0(long src_nativeObj, long dst_nativeObj, double dsize_width, double dsize_height, double fx, double fy, int interpolation); 3032 private static native void resize_1(long src_nativeObj, long dst_nativeObj, double dsize_width, double dsize_height); 3033 3034 // C++: void warpAffine(Mat src, Mat& dst, Mat M, Size dsize, int flags = INTER_LINEAR, int borderMode = BORDER_CONSTANT, Scalar borderValue = Scalar()) 3035 private static native void warpAffine_0(long src_nativeObj, long dst_nativeObj, long M_nativeObj, double dsize_width, double dsize_height, int flags, int borderMode, double borderValue_val0, double borderValue_val1, double borderValue_val2, double borderValue_val3); 3036 private static native void warpAffine_1(long src_nativeObj, long dst_nativeObj, long M_nativeObj, double dsize_width, double dsize_height, int flags); 3037 private static native void warpAffine_2(long src_nativeObj, long dst_nativeObj, long M_nativeObj, double dsize_width, double dsize_height); 3038 3039 // C++: void warpPerspective(Mat src, Mat& dst, Mat M, Size dsize, int flags = INTER_LINEAR, int borderMode = BORDER_CONSTANT, Scalar borderValue = Scalar()) 3040 private static native void warpPerspective_0(long src_nativeObj, long dst_nativeObj, long M_nativeObj, double dsize_width, double dsize_height, int flags, int borderMode, double borderValue_val0, double borderValue_val1, double borderValue_val2, double borderValue_val3); 3041 private static native void warpPerspective_1(long src_nativeObj, long dst_nativeObj, long M_nativeObj, double dsize_width, double dsize_height, int flags); 3042 private static native void warpPerspective_2(long src_nativeObj, long dst_nativeObj, long M_nativeObj, double dsize_width, double dsize_height); 3043 3044 // C++: void integral(Mat src, Mat& sum, Mat& sqsum, int sdepth = -1, int sqdepth = -1) 3045 private static native void integral2_0(long src_nativeObj, long sum_nativeObj, long sqsum_nativeObj, int sdepth, int sqdepth); 3046 private static native void integral2_1(long src_nativeObj, long sum_nativeObj, long sqsum_nativeObj); 3047 3048 // C++: void integral(Mat src, Mat& sum, Mat& sqsum, Mat& tilted, int sdepth = -1, int sqdepth = -1) 3049 private static native void integral3_0(long src_nativeObj, long sum_nativeObj, long sqsum_nativeObj, long tilted_nativeObj, int sdepth, int sqdepth); 3050 private static native void integral3_1(long src_nativeObj, long sum_nativeObj, long sqsum_nativeObj, long tilted_nativeObj); 3051 3052 // C++: void accumulate(Mat src, Mat& dst, Mat mask = Mat()) 3053 private static native void accumulate_0(long src_nativeObj, long dst_nativeObj, long mask_nativeObj); 3054 private static native void accumulate_1(long src_nativeObj, long dst_nativeObj); 3055 3056 // C++: void accumulateSquare(Mat src, Mat& dst, Mat mask = Mat()) 3057 private static native void accumulateSquare_0(long src_nativeObj, long dst_nativeObj, long mask_nativeObj); 3058 private static native void accumulateSquare_1(long src_nativeObj, long dst_nativeObj); 3059 3060 // C++: void accumulateProduct(Mat src1, Mat src2, Mat& dst, Mat mask = Mat()) 3061 private static native void accumulateProduct_0(long src1_nativeObj, long src2_nativeObj, long dst_nativeObj, long mask_nativeObj); 3062 private static native void accumulateProduct_1(long src1_nativeObj, long src2_nativeObj, long dst_nativeObj); 3063 3064 // C++: void accumulateWeighted(Mat src, Mat& dst, double alpha, Mat mask = Mat()) 3065 private static native void accumulateWeighted_0(long src_nativeObj, long dst_nativeObj, double alpha, long mask_nativeObj); 3066 private static native void accumulateWeighted_1(long src_nativeObj, long dst_nativeObj, double alpha); 3067 3068 // C++: Point2d phaseCorrelate(Mat src1, Mat src2, Mat window = Mat(), double* response = 0) 3069 private static native double[] phaseCorrelate_0(long src1_nativeObj, long src2_nativeObj, long window_nativeObj, double[] response_out); 3070 private static native double[] phaseCorrelate_1(long src1_nativeObj, long src2_nativeObj); 3071 3072 // C++: void createHanningWindow(Mat& dst, Size winSize, int type) 3073 private static native void createHanningWindow_0(long dst_nativeObj, double winSize_width, double winSize_height, int type); 3074 3075 // C++: double threshold(Mat src, Mat& dst, double thresh, double maxval, int type) 3076 private static native double threshold_0(long src_nativeObj, long dst_nativeObj, double thresh, double maxval, int type); 3077 3078 // C++: void adaptiveThreshold(Mat src, Mat& dst, double maxValue, int adaptiveMethod, int thresholdType, int blockSize, double C) 3079 private static native void adaptiveThreshold_0(long src_nativeObj, long dst_nativeObj, double maxValue, int adaptiveMethod, int thresholdType, int blockSize, double C); 3080 3081 // C++: void pyrDown(Mat src, Mat& dst, Size dstsize = Size(), int borderType = BORDER_DEFAULT) 3082 private static native void pyrDown_0(long src_nativeObj, long dst_nativeObj, double dstsize_width, double dstsize_height, int borderType); 3083 private static native void pyrDown_1(long src_nativeObj, long dst_nativeObj, double dstsize_width, double dstsize_height); 3084 private static native void pyrDown_2(long src_nativeObj, long dst_nativeObj); 3085 3086 // C++: void pyrUp(Mat src, Mat& dst, Size dstsize = Size(), int borderType = BORDER_DEFAULT) 3087 private static native void pyrUp_0(long src_nativeObj, long dst_nativeObj, double dstsize_width, double dstsize_height, int borderType); 3088 private static native void pyrUp_1(long src_nativeObj, long dst_nativeObj, double dstsize_width, double dstsize_height); 3089 private static native void pyrUp_2(long src_nativeObj, long dst_nativeObj); 3090 3091 // C++: void undistort(Mat src, Mat& dst, Mat cameraMatrix, Mat distCoeffs, Mat newCameraMatrix = Mat()) 3092 private static native void undistort_0(long src_nativeObj, long dst_nativeObj, long cameraMatrix_nativeObj, long distCoeffs_nativeObj, long newCameraMatrix_nativeObj); 3093 private static native void undistort_1(long src_nativeObj, long dst_nativeObj, long cameraMatrix_nativeObj, long distCoeffs_nativeObj); 3094 3095 // C++: void initUndistortRectifyMap(Mat cameraMatrix, Mat distCoeffs, Mat R, Mat newCameraMatrix, Size size, int m1type, Mat& map1, Mat& map2) 3096 private static native void initUndistortRectifyMap_0(long cameraMatrix_nativeObj, long distCoeffs_nativeObj, long R_nativeObj, long newCameraMatrix_nativeObj, double size_width, double size_height, int m1type, long map1_nativeObj, long map2_nativeObj); 3097 3098 // C++: float initWideAngleProjMap(Mat cameraMatrix, Mat distCoeffs, Size imageSize, int destImageWidth, int m1type, Mat& map1, Mat& map2, int projType = PROJ_SPHERICAL_EQRECT, double alpha = 0) 3099 private static native float initWideAngleProjMap_0(long cameraMatrix_nativeObj, long distCoeffs_nativeObj, double imageSize_width, double imageSize_height, int destImageWidth, int m1type, long map1_nativeObj, long map2_nativeObj, int projType, double alpha); 3100 private static native float initWideAngleProjMap_1(long cameraMatrix_nativeObj, long distCoeffs_nativeObj, double imageSize_width, double imageSize_height, int destImageWidth, int m1type, long map1_nativeObj, long map2_nativeObj); 3101 3102 // C++: Mat getDefaultNewCameraMatrix(Mat cameraMatrix, Size imgsize = Size(), bool centerPrincipalPoint = false) 3103 private static native long getDefaultNewCameraMatrix_0(long cameraMatrix_nativeObj, double imgsize_width, double imgsize_height, boolean centerPrincipalPoint); 3104 private static native long getDefaultNewCameraMatrix_1(long cameraMatrix_nativeObj); 3105 3106 // C++: void undistortPoints(vector_Point2f src, vector_Point2f& dst, Mat cameraMatrix, Mat distCoeffs, Mat R = Mat(), Mat P = Mat()) 3107 private static native void undistortPoints_0(long src_mat_nativeObj, long dst_mat_nativeObj, long cameraMatrix_nativeObj, long distCoeffs_nativeObj, long R_nativeObj, long P_nativeObj); 3108 private static native void undistortPoints_1(long src_mat_nativeObj, long dst_mat_nativeObj, long cameraMatrix_nativeObj, long distCoeffs_nativeObj); 3109 3110 // C++: void calcHist(vector_Mat images, vector_int channels, Mat mask, Mat& hist, vector_int histSize, vector_float ranges, bool accumulate = false) 3111 private static native void calcHist_0(long images_mat_nativeObj, long channels_mat_nativeObj, long mask_nativeObj, long hist_nativeObj, long histSize_mat_nativeObj, long ranges_mat_nativeObj, boolean accumulate); 3112 private static native void calcHist_1(long images_mat_nativeObj, long channels_mat_nativeObj, long mask_nativeObj, long hist_nativeObj, long histSize_mat_nativeObj, long ranges_mat_nativeObj); 3113 3114 // C++: void calcBackProject(vector_Mat images, vector_int channels, Mat hist, Mat& dst, vector_float ranges, double scale) 3115 private static native void calcBackProject_0(long images_mat_nativeObj, long channels_mat_nativeObj, long hist_nativeObj, long dst_nativeObj, long ranges_mat_nativeObj, double scale); 3116 3117 // C++: double compareHist(Mat H1, Mat H2, int method) 3118 private static native double compareHist_0(long H1_nativeObj, long H2_nativeObj, int method); 3119 3120 // C++: void equalizeHist(Mat src, Mat& dst) 3121 private static native void equalizeHist_0(long src_nativeObj, long dst_nativeObj); 3122 3123 // C++: void watershed(Mat image, Mat& markers) 3124 private static native void watershed_0(long image_nativeObj, long markers_nativeObj); 3125 3126 // C++: void pyrMeanShiftFiltering(Mat src, Mat& dst, double sp, double sr, int maxLevel = 1, TermCriteria termcrit = TermCriteria(TermCriteria::MAX_ITER+TermCriteria::EPS,5,1)) 3127 private static native void pyrMeanShiftFiltering_0(long src_nativeObj, long dst_nativeObj, double sp, double sr, int maxLevel, int termcrit_type, int termcrit_maxCount, double termcrit_epsilon); 3128 private static native void pyrMeanShiftFiltering_1(long src_nativeObj, long dst_nativeObj, double sp, double sr); 3129 3130 // C++: void grabCut(Mat img, Mat& mask, Rect rect, Mat& bgdModel, Mat& fgdModel, int iterCount, int mode = GC_EVAL) 3131 private static native void grabCut_0(long img_nativeObj, long mask_nativeObj, int rect_x, int rect_y, int rect_width, int rect_height, long bgdModel_nativeObj, long fgdModel_nativeObj, int iterCount, int mode); 3132 private static native void grabCut_1(long img_nativeObj, long mask_nativeObj, int rect_x, int rect_y, int rect_width, int rect_height, long bgdModel_nativeObj, long fgdModel_nativeObj, int iterCount); 3133 3134 // C++: void distanceTransform(Mat src, Mat& dst, Mat& labels, int distanceType, int maskSize, int labelType = DIST_LABEL_CCOMP) 3135 private static native void distanceTransformWithLabels_0(long src_nativeObj, long dst_nativeObj, long labels_nativeObj, int distanceType, int maskSize, int labelType); 3136 private static native void distanceTransformWithLabels_1(long src_nativeObj, long dst_nativeObj, long labels_nativeObj, int distanceType, int maskSize); 3137 3138 // C++: void distanceTransform(Mat src, Mat& dst, int distanceType, int maskSize, int dstType = CV_32F) 3139 private static native void distanceTransform_0(long src_nativeObj, long dst_nativeObj, int distanceType, int maskSize, int dstType); 3140 private static native void distanceTransform_1(long src_nativeObj, long dst_nativeObj, int distanceType, int maskSize); 3141 3142 // C++: int floodFill(Mat& image, Mat& mask, Point seedPoint, Scalar newVal, Rect* rect = 0, Scalar loDiff = Scalar(), Scalar upDiff = Scalar(), int flags = 4) 3143 private static native int floodFill_0(long image_nativeObj, long mask_nativeObj, double seedPoint_x, double seedPoint_y, double newVal_val0, double newVal_val1, double newVal_val2, double newVal_val3, double[] rect_out, double loDiff_val0, double loDiff_val1, double loDiff_val2, double loDiff_val3, double upDiff_val0, double upDiff_val1, double upDiff_val2, double upDiff_val3, int flags); 3144 private static native int floodFill_1(long image_nativeObj, long mask_nativeObj, double seedPoint_x, double seedPoint_y, double newVal_val0, double newVal_val1, double newVal_val2, double newVal_val3); 3145 3146 // C++: void cvtColor(Mat src, Mat& dst, int code, int dstCn = 0) 3147 private static native void cvtColor_0(long src_nativeObj, long dst_nativeObj, int code, int dstCn); 3148 private static native void cvtColor_1(long src_nativeObj, long dst_nativeObj, int code); 3149 3150 // C++: void demosaicing(Mat _src, Mat& _dst, int code, int dcn = 0) 3151 private static native void demosaicing_0(long _src_nativeObj, long _dst_nativeObj, int code, int dcn); 3152 private static native void demosaicing_1(long _src_nativeObj, long _dst_nativeObj, int code); 3153 3154 // C++: void matchTemplate(Mat image, Mat templ, Mat& result, int method, Mat mask = Mat()) 3155 private static native void matchTemplate_0(long image_nativeObj, long templ_nativeObj, long result_nativeObj, int method, long mask_nativeObj); 3156 private static native void matchTemplate_1(long image_nativeObj, long templ_nativeObj, long result_nativeObj, int method); 3157 3158 // C++: int connectedComponents(Mat image, Mat& labels, int connectivity = 8, int ltype = CV_32S) 3159 private static native int connectedComponents_0(long image_nativeObj, long labels_nativeObj, int connectivity, int ltype); 3160 private static native int connectedComponents_1(long image_nativeObj, long labels_nativeObj); 3161 3162 // C++: int connectedComponentsWithStats(Mat image, Mat& labels, Mat& stats, Mat& centroids, int connectivity = 8, int ltype = CV_32S) 3163 private static native int connectedComponentsWithStats_0(long image_nativeObj, long labels_nativeObj, long stats_nativeObj, long centroids_nativeObj, int connectivity, int ltype); 3164 private static native int connectedComponentsWithStats_1(long image_nativeObj, long labels_nativeObj, long stats_nativeObj, long centroids_nativeObj); 3165 3166 // C++: void findContours(Mat& image, vector_vector_Point& contours, Mat& hierarchy, int mode, int method, Point offset = Point()) 3167 private static native void findContours_0(long image_nativeObj, long contours_mat_nativeObj, long hierarchy_nativeObj, int mode, int method, double offset_x, double offset_y); 3168 private static native void findContours_1(long image_nativeObj, long contours_mat_nativeObj, long hierarchy_nativeObj, int mode, int method); 3169 3170 // C++: void approxPolyDP(vector_Point2f curve, vector_Point2f& approxCurve, double epsilon, bool closed) 3171 private static native void approxPolyDP_0(long curve_mat_nativeObj, long approxCurve_mat_nativeObj, double epsilon, boolean closed); 3172 3173 // C++: double arcLength(vector_Point2f curve, bool closed) 3174 private static native double arcLength_0(long curve_mat_nativeObj, boolean closed); 3175 3176 // C++: Rect boundingRect(vector_Point points) 3177 private static native double[] boundingRect_0(long points_mat_nativeObj); 3178 3179 // C++: double contourArea(Mat contour, bool oriented = false) 3180 private static native double contourArea_0(long contour_nativeObj, boolean oriented); 3181 private static native double contourArea_1(long contour_nativeObj); 3182 3183 // C++: RotatedRect minAreaRect(vector_Point2f points) 3184 private static native double[] minAreaRect_0(long points_mat_nativeObj); 3185 3186 // C++: void boxPoints(RotatedRect box, Mat& points) 3187 private static native void boxPoints_0(double box_center_x, double box_center_y, double box_size_width, double box_size_height, double box_angle, long points_nativeObj); 3188 3189 // C++: void minEnclosingCircle(vector_Point2f points, Point2f& center, float& radius) 3190 private static native void minEnclosingCircle_0(long points_mat_nativeObj, double[] center_out, double[] radius_out); 3191 3192 // C++: double minEnclosingTriangle(Mat points, Mat& triangle) 3193 private static native double minEnclosingTriangle_0(long points_nativeObj, long triangle_nativeObj); 3194 3195 // C++: double matchShapes(Mat contour1, Mat contour2, int method, double parameter) 3196 private static native double matchShapes_0(long contour1_nativeObj, long contour2_nativeObj, int method, double parameter); 3197 3198 // C++: void convexHull(vector_Point points, vector_int& hull, bool clockwise = false, _hidden_ returnPoints = true) 3199 private static native void convexHull_0(long points_mat_nativeObj, long hull_mat_nativeObj, boolean clockwise); 3200 private static native void convexHull_1(long points_mat_nativeObj, long hull_mat_nativeObj); 3201 3202 // C++: void convexityDefects(vector_Point contour, vector_int convexhull, vector_Vec4i& convexityDefects) 3203 private static native void convexityDefects_0(long contour_mat_nativeObj, long convexhull_mat_nativeObj, long convexityDefects_mat_nativeObj); 3204 3205 // C++: bool isContourConvex(vector_Point contour) 3206 private static native boolean isContourConvex_0(long contour_mat_nativeObj); 3207 3208 // C++: float intersectConvexConvex(Mat _p1, Mat _p2, Mat& _p12, bool handleNested = true) 3209 private static native float intersectConvexConvex_0(long _p1_nativeObj, long _p2_nativeObj, long _p12_nativeObj, boolean handleNested); 3210 private static native float intersectConvexConvex_1(long _p1_nativeObj, long _p2_nativeObj, long _p12_nativeObj); 3211 3212 // C++: RotatedRect fitEllipse(vector_Point2f points) 3213 private static native double[] fitEllipse_0(long points_mat_nativeObj); 3214 3215 // C++: void fitLine(Mat points, Mat& line, int distType, double param, double reps, double aeps) 3216 private static native void fitLine_0(long points_nativeObj, long line_nativeObj, int distType, double param, double reps, double aeps); 3217 3218 // C++: double pointPolygonTest(vector_Point2f contour, Point2f pt, bool measureDist) 3219 private static native double pointPolygonTest_0(long contour_mat_nativeObj, double pt_x, double pt_y, boolean measureDist); 3220 3221 // C++: int rotatedRectangleIntersection(RotatedRect rect1, RotatedRect rect2, Mat& intersectingRegion) 3222 private static native int rotatedRectangleIntersection_0(double rect1_center_x, double rect1_center_y, double rect1_size_width, double rect1_size_height, double rect1_angle, double rect2_center_x, double rect2_center_y, double rect2_size_width, double rect2_size_height, double rect2_angle, long intersectingRegion_nativeObj); 3223 3224 // C++: Ptr_CLAHE createCLAHE(double clipLimit = 40.0, Size tileGridSize = Size(8, 8)) 3225 private static native long createCLAHE_0(double clipLimit, double tileGridSize_width, double tileGridSize_height); 3226 private static native long createCLAHE_1(); 3227 3228 // C++: void applyColorMap(Mat src, Mat& dst, int colormap) 3229 private static native void applyColorMap_0(long src_nativeObj, long dst_nativeObj, int colormap); 3230 3231 // C++: void line(Mat& img, Point pt1, Point pt2, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0) 3232 private static native void line_0(long img_nativeObj, double pt1_x, double pt1_y, double pt2_x, double pt2_y, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType, int shift); 3233 private static native void line_1(long img_nativeObj, double pt1_x, double pt1_y, double pt2_x, double pt2_y, double color_val0, double color_val1, double color_val2, double color_val3, int thickness); 3234 private static native void line_2(long img_nativeObj, double pt1_x, double pt1_y, double pt2_x, double pt2_y, double color_val0, double color_val1, double color_val2, double color_val3); 3235 3236 // C++: void arrowedLine(Mat& img, Point pt1, Point pt2, Scalar color, int thickness = 1, int line_type = 8, int shift = 0, double tipLength = 0.1) 3237 private static native void arrowedLine_0(long img_nativeObj, double pt1_x, double pt1_y, double pt2_x, double pt2_y, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int line_type, int shift, double tipLength); 3238 private static native void arrowedLine_1(long img_nativeObj, double pt1_x, double pt1_y, double pt2_x, double pt2_y, double color_val0, double color_val1, double color_val2, double color_val3); 3239 3240 // C++: void rectangle(Mat& img, Point pt1, Point pt2, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0) 3241 private static native void rectangle_0(long img_nativeObj, double pt1_x, double pt1_y, double pt2_x, double pt2_y, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType, int shift); 3242 private static native void rectangle_1(long img_nativeObj, double pt1_x, double pt1_y, double pt2_x, double pt2_y, double color_val0, double color_val1, double color_val2, double color_val3, int thickness); 3243 private static native void rectangle_2(long img_nativeObj, double pt1_x, double pt1_y, double pt2_x, double pt2_y, double color_val0, double color_val1, double color_val2, double color_val3); 3244 3245 // C++: void circle(Mat& img, Point center, int radius, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0) 3246 private static native void circle_0(long img_nativeObj, double center_x, double center_y, int radius, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType, int shift); 3247 private static native void circle_1(long img_nativeObj, double center_x, double center_y, int radius, double color_val0, double color_val1, double color_val2, double color_val3, int thickness); 3248 private static native void circle_2(long img_nativeObj, double center_x, double center_y, int radius, double color_val0, double color_val1, double color_val2, double color_val3); 3249 3250 // C++: void ellipse(Mat& img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0) 3251 private static native void ellipse_0(long img_nativeObj, double center_x, double center_y, double axes_width, double axes_height, double angle, double startAngle, double endAngle, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType, int shift); 3252 private static native void ellipse_1(long img_nativeObj, double center_x, double center_y, double axes_width, double axes_height, double angle, double startAngle, double endAngle, double color_val0, double color_val1, double color_val2, double color_val3, int thickness); 3253 private static native void ellipse_2(long img_nativeObj, double center_x, double center_y, double axes_width, double axes_height, double angle, double startAngle, double endAngle, double color_val0, double color_val1, double color_val2, double color_val3); 3254 3255 // C++: void ellipse(Mat& img, RotatedRect box, Scalar color, int thickness = 1, int lineType = LINE_8) 3256 private static native void ellipse_3(long img_nativeObj, double box_center_x, double box_center_y, double box_size_width, double box_size_height, double box_angle, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType); 3257 private static native void ellipse_4(long img_nativeObj, double box_center_x, double box_center_y, double box_size_width, double box_size_height, double box_angle, double color_val0, double color_val1, double color_val2, double color_val3, int thickness); 3258 private static native void ellipse_5(long img_nativeObj, double box_center_x, double box_center_y, double box_size_width, double box_size_height, double box_angle, double color_val0, double color_val1, double color_val2, double color_val3); 3259 3260 // C++: void fillConvexPoly(Mat& img, vector_Point points, Scalar color, int lineType = LINE_8, int shift = 0) 3261 private static native void fillConvexPoly_0(long img_nativeObj, long points_mat_nativeObj, double color_val0, double color_val1, double color_val2, double color_val3, int lineType, int shift); 3262 private static native void fillConvexPoly_1(long img_nativeObj, long points_mat_nativeObj, double color_val0, double color_val1, double color_val2, double color_val3); 3263 3264 // C++: void fillPoly(Mat& img, vector_vector_Point pts, Scalar color, int lineType = LINE_8, int shift = 0, Point offset = Point()) 3265 private static native void fillPoly_0(long img_nativeObj, long pts_mat_nativeObj, double color_val0, double color_val1, double color_val2, double color_val3, int lineType, int shift, double offset_x, double offset_y); 3266 private static native void fillPoly_1(long img_nativeObj, long pts_mat_nativeObj, double color_val0, double color_val1, double color_val2, double color_val3); 3267 3268 // C++: void polylines(Mat& img, vector_vector_Point pts, bool isClosed, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0) 3269 private static native void polylines_0(long img_nativeObj, long pts_mat_nativeObj, boolean isClosed, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType, int shift); 3270 private static native void polylines_1(long img_nativeObj, long pts_mat_nativeObj, boolean isClosed, double color_val0, double color_val1, double color_val2, double color_val3, int thickness); 3271 private static native void polylines_2(long img_nativeObj, long pts_mat_nativeObj, boolean isClosed, double color_val0, double color_val1, double color_val2, double color_val3); 3272 3273 // C++: void drawContours(Mat& image, vector_vector_Point contours, int contourIdx, Scalar color, int thickness = 1, int lineType = LINE_8, Mat hierarchy = Mat(), int maxLevel = INT_MAX, Point offset = Point()) 3274 private static native void drawContours_0(long image_nativeObj, long contours_mat_nativeObj, int contourIdx, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType, long hierarchy_nativeObj, int maxLevel, double offset_x, double offset_y); 3275 private static native void drawContours_1(long image_nativeObj, long contours_mat_nativeObj, int contourIdx, double color_val0, double color_val1, double color_val2, double color_val3, int thickness); 3276 private static native void drawContours_2(long image_nativeObj, long contours_mat_nativeObj, int contourIdx, double color_val0, double color_val1, double color_val2, double color_val3); 3277 3278 // C++: bool clipLine(Rect imgRect, Point& pt1, Point& pt2) 3279 private static native boolean clipLine_0(int imgRect_x, int imgRect_y, int imgRect_width, int imgRect_height, double pt1_x, double pt1_y, double[] pt1_out, double pt2_x, double pt2_y, double[] pt2_out); 3280 3281 // C++: void ellipse2Poly(Point center, Size axes, int angle, int arcStart, int arcEnd, int delta, vector_Point& pts) 3282 private static native void ellipse2Poly_0(double center_x, double center_y, double axes_width, double axes_height, int angle, int arcStart, int arcEnd, int delta, long pts_mat_nativeObj); 3283 3284 // C++: void putText(Mat& img, String text, Point org, int fontFace, double fontScale, Scalar color, int thickness = 1, int lineType = LINE_8, bool bottomLeftOrigin = false) 3285 private static native void putText_0(long img_nativeObj, String text, double org_x, double org_y, int fontFace, double fontScale, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType, boolean bottomLeftOrigin); 3286 private static native void putText_1(long img_nativeObj, String text, double org_x, double org_y, int fontFace, double fontScale, double color_val0, double color_val1, double color_val2, double color_val3, int thickness); 3287 private static native void putText_2(long img_nativeObj, String text, double org_x, double org_y, int fontFace, double fontScale, double color_val0, double color_val1, double color_val2, double color_val3); 3288 private static native double[] n_getTextSize(String text, int fontFace, double fontScale, int thickness, int[] baseLine); 3289 3290 } 3291