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