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