EstervQrCode 2.0.0
Library for qr code manipulation
Loading...
Searching...
No Matches
imgproc.hpp
1/*M///////////////////////////////////////////////////////////////////////////////////////
2//
3// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
4//
5// By downloading, copying, installing or using the software you agree to this license.
6// If you do not agree to this license, do not download, install,
7// copy or use the software.
8//
9//
10// License Agreement
11// For Open Source Computer Vision Library
12//
13// Copyright (C) 2000-2008, Intel Corporation, all rights reserved.
14// Copyright (C) 2009, Willow Garage Inc., all rights reserved.
15// Third party copyrights are property of their respective owners.
16//
17// Redistribution and use in source and binary forms, with or without modification,
18// are permitted provided that the following conditions are met:
19//
20// * Redistribution's of source code must retain the above copyright notice,
21// this list of conditions and the following disclaimer.
22//
23// * Redistribution's in binary form must reproduce the above copyright notice,
24// this list of conditions and the following disclaimer in the documentation
25// and/or other materials provided with the distribution.
26//
27// * The name of the copyright holders may not be used to endorse or promote products
28// derived from this software without specific prior written permission.
29//
30// This software is provided by the copyright holders and contributors "as is" and
31// any express or implied warranties, including, but not limited to, the implied
32// warranties of merchantability and fitness for a particular purpose are disclaimed.
33// In no event shall the Intel Corporation or contributors be liable for any direct,
34// indirect, incidental, special, exemplary, or consequential damages
35// (including, but not limited to, procurement of substitute goods or services;
36// loss of use, data, or profits; or business interruption) however caused
37// and on any theory of liability, whether in contract, strict liability,
38// or tort (including negligence or otherwise) arising in any way out of
39// the use of this software, even if advised of the possibility of such damage.
40//
41//M*/
42
43#ifndef OPENCV_IMGPROC_HPP
44#define OPENCV_IMGPROC_HPP
45
46#include "opencv2/core.hpp"
47
201namespace cv
202{
203
210
214
232
241
243
246
280
289
296
298
301
314
321
334
347
355
370
379
390
392
395
398 CC_STAT_LEFT = 0,
400 CC_STAT_TOP = 1,
405#ifndef CV_DOXYGEN
406 CC_STAT_MAX = 5
407#endif
409
420
437
452
466
468
471
491
499
501
531
539
542
545
548
551
554
563
572
575
584
587
592
597
600
603
608
611
618
623
628
633
638
643
650
657
666
675
684
687 //COLOR_YUV2RGB_VYUY = 109, //!< convert between YUV VYUY and RGB, YUV is 4:2:2-subsampled and interleaved as V/Y1/U/Y2, see @ref color_convert_rgb_yuv_42x
688 //COLOR_YUV2BGR_VYUY = 110, //!< convert between YUV VYUY and BGR, YUV is 4:2:2-subsampled and interleaved as V/Y1/U/Y2, see @ref color_convert_rgb_yuv_42x
693
696 //COLOR_YUV2RGBA_VYUY = 113, //!< convert between YUV VYUY and RGBA, YUV is 4:2:2-subsampled and interleaved as V/Y1/U/Y2, see @ref color_convert_rgb_yuv_42x
697 //COLOR_YUV2BGRA_VYUY = 114, //!< convert between YUV VYUY and BGRA, YUV is 4:2:2-subsampled and interleaved as V/Y1/U/Y2, see @ref color_convert_rgb_yuv_42x
702
711
720
723 //CV_YUV2GRAY_VYUY = CV_YUV2GRAY_UYVY, //!< synonym to COLOR_YUV2GRAY_UYVY
729
733
738
747
753
758
763
768
773
778
784
789
794
799
805
810
815
820
826
831
836
841
848
855
864
873
876
879
886
891 FILLED = -1,
892 LINE_4 = 4,
893 LINE_8 = 8,
894 LINE_AA = 16
896
911
925
929{
930public:
932 CV_WRAP virtual void setTemplate(InputArray templ, Point templCenter = Point(-1, -1)) = 0;
933 CV_WRAP virtual void setTemplate(InputArray edges, InputArray dx, InputArray dy, Point templCenter = Point(-1, -1)) = 0;
934
936 CV_WRAP virtual void detect(InputArray image, OutputArray positions, OutputArray votes = noArray()) = 0;
937 CV_WRAP virtual void detect(InputArray edges, InputArray dx, InputArray dy, OutputArray positions, OutputArray votes = noArray()) = 0;
938
940 CV_WRAP virtual void setCannyLowThresh(int cannyLowThresh) = 0;
941 CV_WRAP virtual int getCannyLowThresh() const = 0;
942
944 CV_WRAP virtual void setCannyHighThresh(int cannyHighThresh) = 0;
945 CV_WRAP virtual int getCannyHighThresh() const = 0;
946
948 CV_WRAP virtual void setMinDist(double minDist) = 0;
949 CV_WRAP virtual double getMinDist() const = 0;
950
952 CV_WRAP virtual void setDp(double dp) = 0;
953 CV_WRAP virtual double getDp() const = 0;
954
956 CV_WRAP virtual void setMaxBufferSize(int maxBufferSize) = 0;
957 CV_WRAP virtual int getMaxBufferSize() const = 0;
958};
959
965{
966public:
968 CV_WRAP virtual void setLevels(int levels) = 0;
969 CV_WRAP virtual int getLevels() const = 0;
970
972 CV_WRAP virtual void setVotesThreshold(int votesThreshold) = 0;
973 CV_WRAP virtual int getVotesThreshold() const = 0;
974};
975
981{
982public:
984 CV_WRAP virtual void setXi(double xi) = 0;
985 CV_WRAP virtual double getXi() const = 0;
986
988 CV_WRAP virtual void setLevels(int levels) = 0;
989 CV_WRAP virtual int getLevels() const = 0;
990
992 CV_WRAP virtual void setAngleEpsilon(double angleEpsilon) = 0;
993 CV_WRAP virtual double getAngleEpsilon() const = 0;
994
996 CV_WRAP virtual void setMinAngle(double minAngle) = 0;
997 CV_WRAP virtual double getMinAngle() const = 0;
998
1000 CV_WRAP virtual void setMaxAngle(double maxAngle) = 0;
1001 CV_WRAP virtual double getMaxAngle() const = 0;
1002
1004 CV_WRAP virtual void setAngleStep(double angleStep) = 0;
1005 CV_WRAP virtual double getAngleStep() const = 0;
1006
1008 CV_WRAP virtual void setAngleThresh(int angleThresh) = 0;
1009 CV_WRAP virtual int getAngleThresh() const = 0;
1010
1012 CV_WRAP virtual void setMinScale(double minScale) = 0;
1013 CV_WRAP virtual double getMinScale() const = 0;
1014
1016 CV_WRAP virtual void setMaxScale(double maxScale) = 0;
1017 CV_WRAP virtual double getMaxScale() const = 0;
1018
1020 CV_WRAP virtual void setScaleStep(double scaleStep) = 0;
1021 CV_WRAP virtual double getScaleStep() const = 0;
1022
1024 CV_WRAP virtual void setScaleThresh(int scaleThresh) = 0;
1025 CV_WRAP virtual int getScaleThresh() const = 0;
1026
1028 CV_WRAP virtual void setPosThresh(int posThresh) = 0;
1029 CV_WRAP virtual int getPosThresh() const = 0;
1030};
1031
1033
1036
1040{
1041public:
1047 CV_WRAP virtual void apply(InputArray src, OutputArray dst) = 0;
1048
1053 CV_WRAP virtual void setClipLimit(double clipLimit) = 0;
1054
1056 CV_WRAP virtual double getClipLimit() const = 0;
1057
1063 CV_WRAP virtual void setTilesGridSize(Size tileGridSize) = 0;
1064
1066 CV_WRAP virtual Size getTilesGridSize() const = 0;
1067
1068 CV_WRAP virtual void collectGarbage() = 0;
1069};
1070
1072
1075
1077{
1078public:
1080 enum { PTLOC_ERROR = -2,
1081 PTLOC_OUTSIDE_RECT = -1,
1082 PTLOC_INSIDE = 0,
1083 PTLOC_VERTEX = 1,
1084 PTLOC_ON_EDGE = 2
1086
1088 enum { NEXT_AROUND_ORG = 0x00,
1089 NEXT_AROUND_DST = 0x22,
1090 PREV_AROUND_ORG = 0x11,
1091 PREV_AROUND_DST = 0x33,
1092 NEXT_AROUND_LEFT = 0x13,
1093 NEXT_AROUND_RIGHT = 0x31,
1094 PREV_AROUND_LEFT = 0x20,
1095 PREV_AROUND_RIGHT = 0x02
1097
1102
1112
1119
1131
1140
1161 CV_WRAP int locate(Point2f pt, CV_OUT int& edge, CV_OUT int& vertex);
1162
1176
1185
1193
1202
1211 CV_OUT std::vector<Point2f>& facetCenters);
1212
1220 CV_WRAP Point2f getVertex(int vertex, CV_OUT int* firstEdge = 0) const;
1221
1240 CV_WRAP int getEdge( int edge, int nextEdgeType ) const;
1241
1249 CV_WRAP int nextEdge(int edge) const;
1250
1263 CV_WRAP int rotateEdge(int edge, int rotate) const;
1264 CV_WRAP int symEdge(int edge) const;
1265
1273 CV_WRAP int edgeOrg(int edge, CV_OUT Point2f* orgpt = 0) const;
1274
1282 CV_WRAP int edgeDst(int edge, CV_OUT Point2f* dstpt = 0) const;
1283
1284protected:
1285 int newEdge();
1286 void deleteEdge(int edge);
1287 int newPoint(Point2f pt, bool isvirtual, int firstEdge = 0);
1288 void deletePoint(int vtx);
1289 void setEdgePoints( int edge, int orgPt, int dstPt );
1290 void splice( int edgeA, int edgeB );
1291 int connectEdges( int edgeA, int edgeB );
1292 void swapEdges( int edge );
1293 int isRightOf(Point2f pt, int edge) const;
1296 void checkSubdiv() const;
1297
1299 {
1301 Vertex(Point2f pt, bool isvirtual, int firstEdge=0);
1302 bool isvirtual() const;
1303 bool isfree() const;
1304
1306 int type;
1308 };
1309
1311 {
1313 QuadEdge(int edgeidx);
1314 bool isfree() const;
1315
1316 int next[4];
1317 int pt[4];
1318 };
1319
1327
1333};
1334
1336
1339
1353{
1354public:
1355
1376 CV_WRAP virtual void detect(InputArray image, OutputArray lines,
1377 OutputArray width = noArray(), OutputArray prec = noArray(),
1378 OutputArray nfa = noArray()) = 0;
1379
1385 CV_WRAP virtual void drawSegments(InputOutputArray image, InputArray lines) = 0;
1386
1395 CV_WRAP virtual int compareSegments(const Size& size, InputArray lines1, InputArray lines2, InputOutputArray image = noArray()) = 0;
1396
1398};
1399
1415 int refine = LSD_REFINE_STD, double scale = 0.8,
1416 double sigma_scale = 0.6, double quant = 2.0, double ang_th = 22.5,
1417 double log_eps = 0, double density_th = 0.7, int n_bins = 1024);
1418
1420
1423
1442CV_EXPORTS_W Mat getGaussianKernel( int ksize, double sigma, int ktype = CV_64F );
1443
1463 int dx, int dy, int ksize,
1464 bool normalize = false, int ktype = CV_32F );
1465
1479CV_EXPORTS_W Mat getGaborKernel( Size ksize, double sigma, double theta, double lambd,
1480 double gamma, double psi = CV_PI*0.5, int ktype = CV_64F );
1481
1483static inline Scalar morphologyDefaultBorderValue() { return Scalar::all(DBL_MAX); }
1484
1499
1521
1543 double sigmaX, double sigmaY = 0,
1544 int borderType = BORDER_DEFAULT );
1545
1575 double sigmaColor, double sigmaSpace,
1576 int borderType = BORDER_DEFAULT );
1577
1603 Size ksize, Point anchor = Point(-1,-1),
1604 bool normalize = true,
1605 int borderType = BORDER_DEFAULT );
1606
1626 Size ksize, Point anchor = Point(-1, -1),
1627 bool normalize = true,
1628 int borderType = BORDER_DEFAULT );
1629
1649 Size ksize, Point anchor = Point(-1,-1),
1650 int borderType = BORDER_DEFAULT );
1651
1668
1700 InputArray kernel, Point anchor = Point(-1,-1),
1701 double delta = 0, int borderType = BORDER_DEFAULT );
1702
1721 InputArray kernelX, InputArray kernelY,
1722 Point anchor = Point(-1,-1),
1723 double delta = 0, int borderType = BORDER_DEFAULT );
1724
1774 int dx, int dy, int ksize = 3,
1775 double scale = 1, double delta = 0,
1776 int borderType = BORDER_DEFAULT );
1777
1798 OutputArray dy, int ksize = 3,
1799 int borderType = BORDER_DEFAULT );
1800
1824 int dx, int dy, double scale = 1, double delta = 0,
1825 int borderType = BORDER_DEFAULT );
1826
1855 int ksize = 1, double scale = 1, double delta = 0,
1856 int borderType = BORDER_DEFAULT );
1857
1859
1862
1887 double threshold1, double threshold2,
1888 int apertureSize = 3, bool L2gradient = false );
1889
1906 double threshold1, double threshold2,
1907 bool L2gradient = false );
1908
1923 int blockSize, int ksize = 3,
1924 int borderType = BORDER_DEFAULT );
1925
1946 int ksize, double k,
1947 int borderType = BORDER_DEFAULT );
1948
1976 int blockSize, int ksize,
1977 int borderType = BORDER_DEFAULT );
1978
2003 int borderType = BORDER_DEFAULT );
2004
2046 Size winSize, Size zeroZone,
2048
2094 int maxCorners, double qualityLevel, double minDistance,
2095 InputArray mask = noArray(), int blockSize = 3,
2096 bool useHarrisDetector = false, double k = 0.04 );
2097
2099 int maxCorners, double qualityLevel, double minDistance,
2101 int gradientSize, bool useHarrisDetector = false,
2102 double k = 0.04 );
2103
2129CV_EXPORTS CV_WRAP_AS(goodFeaturesToTrackWithQuality) void goodFeaturesToTrack(
2133 int gradientSize = 3, bool useHarrisDetector = false, double k = 0.04);
2134
2168 double rho, double theta, int threshold,
2169 double srn = 0, double stn = 0,
2170 double min_theta = 0, double max_theta = CV_PI );
2171
2201 double rho, double theta, int threshold,
2202 double minLineLength = 0, double maxLineGap = 0 );
2203
2222CV_EXPORTS_W void HoughLinesPointSet( InputArray point, OutputArray lines, int lines_max, int threshold,
2223 double min_rho, double max_rho, double rho_step,
2224 double min_theta, double max_theta, double theta_step );
2225
2274 int method, double dp, double minDist,
2275 double param1 = 100, double param2 = 100,
2276 int minRadius = 0, int maxRadius = 0 );
2277
2279
2282
2312 Point anchor = Point(-1,-1), int iterations = 1,
2313 int borderType = BORDER_CONSTANT,
2314 const Scalar& borderValue = morphologyDefaultBorderValue() );
2315
2344 Point anchor = Point(-1,-1), int iterations = 1,
2345 int borderType = BORDER_CONSTANT,
2346 const Scalar& borderValue = morphologyDefaultBorderValue() );
2347
2373 int op, InputArray kernel,
2374 Point anchor = Point(-1,-1), int iterations = 1,
2375 int borderType = BORDER_CONSTANT,
2376 const Scalar& borderValue = morphologyDefaultBorderValue() );
2377
2379
2382
2418 Size dsize, double fx = 0, double fy = 0,
2419 int interpolation = INTER_LINEAR );
2420
2446 InputArray M, Size dsize,
2447 int flags = INTER_LINEAR,
2448 int borderMode = BORDER_CONSTANT,
2449 const Scalar& borderValue = Scalar());
2450
2478 InputArray M, Size dsize,
2479 int flags = INTER_LINEAR,
2480 int borderMode = BORDER_CONSTANT,
2481 const Scalar& borderValue = Scalar());
2482
2519 InputArray map1, InputArray map2,
2520 int interpolation, int borderMode = BORDER_CONSTANT,
2521 const Scalar& borderValue = Scalar());
2522
2554 OutputArray dstmap1, OutputArray dstmap2,
2555 int dstmap1type, bool nninterpolation = false );
2556
2577
2580
2581inline
2583{
2584 return Mat(getRotationMatrix2D_(center, angle, scale), true);
2585}
2586
2603
2616
2634
2636CV_EXPORTS Mat getPerspectiveTransform(const Point2f src[], const Point2f dst[], int solveMethod = DECOMP_LU);
2637
2638
2640
2662 Point2f center, OutputArray patch, int patchType = -1 );
2663
2708 Point2f center, double M, int flags );
2709
2749 Point2f center, double maxRadius, int flags );
2750
2751
2840 Point2f center, double maxRadius, int flags);
2841
2842
2844
2847
2884 int sdepth = -1, int sqdepth = -1 );
2885
2888
2891 OutputArray sqsum, int sdepth = -1, int sqdepth = -1 );
2892
2894
2897
2916 InputArray mask = noArray() );
2917
2935 InputArray mask = noArray() );
2936
2955
2975 double alpha, InputArray mask = noArray() );
2976
3013 InputArray window = noArray(), CV_OUT double* response = 0);
3014
3031
3046 int flags, bool conjB = false);
3047
3049
3052
3078 double thresh, double maxval, int type );
3079
3080
3107 double maxValue, int adaptiveMethod,
3108 int thresholdType, int blockSize, double C );
3109
3111
3114
3139 const Size& dstsize = Size(), int borderType = BORDER_DEFAULT );
3140
3159 const Size& dstsize = Size(), int borderType = BORDER_DEFAULT );
3160
3173 int maxlevel, int borderType = BORDER_DEFAULT );
3174
3176
3179
3217CV_EXPORTS void calcHist( const Mat* images, int nimages,
3218 const int* channels, InputArray mask,
3219 OutputArray hist, int dims, const int* histSize,
3220 const float** ranges, bool uniform = true, bool accumulate = false );
3221
3226CV_EXPORTS void calcHist( const Mat* images, int nimages,
3227 const int* channels, InputArray mask,
3228 SparseMat& hist, int dims,
3229 const int* histSize, const float** ranges,
3230 bool uniform = true, bool accumulate = false );
3231
3243 const std::vector<int>& histSize,
3245 bool accumulate = false );
3246
3286CV_EXPORTS void calcBackProject( const Mat* images, int nimages,
3287 const int* channels, InputArray hist,
3288 OutputArray backProject, const float** ranges,
3289 double scale = 1, bool uniform = true );
3290
3292CV_EXPORTS void calcBackProject( const Mat* images, int nimages,
3293 const int* channels, const SparseMat& hist,
3294 OutputArray backProject, const float** ranges,
3295 double scale = 1, bool uniform = true );
3296
3301 double scale );
3302
3319
3321CV_EXPORTS double compareHist( const SparseMat& H1, const SparseMat& H2, int method );
3322
3339
3346CV_EXPORTS_W Ptr<CLAHE> createCLAHE(double clipLimit = 40.0, Size tileGridSize = Size(8, 8));
3347
3384 float* lowerBound = 0, OutputArray flow = noArray() );
3385
3386CV_EXPORTS_AS(EMD) float wrapperEMD( InputArray signature1, InputArray signature2,
3389
3391
3394
3424
3426
3429
3467 double sp, double sr, int maxLevel = 1,
3469
3471
3474
3499 InputOutputArray bgdModel, InputOutputArray fgdModel,
3500 int iterCount, int mode = GC_EVAL );
3501
3503
3506
3564CV_EXPORTS_AS(distanceTransformWithLabels) void distanceTransform( InputArray src, OutputArray dst,
3567
3580 int distanceType, int maskSize, int dstType=CV_32F);
3581
3655 Point seedPoint, Scalar newVal, CV_OUT Rect* rect=0,
3656 Scalar loDiff = Scalar(), Scalar upDiff = Scalar(),
3657 int flags = 4 );
3658
3668 Point seedPoint, Scalar newVal, CV_OUT Rect* rect = 0,
3669 Scalar loDiff = Scalar(), Scalar upDiff = Scalar(),
3670 int flags = 4 );
3671
3680
3682
3685
3727CV_EXPORTS_W void cvtColor( InputArray src, OutputArray dst, int code, int dstCn = 0 );
3728
3748
3780
3782
3785
3802CV_EXPORTS_W Moments moments( InputArray array, bool binaryImage = false );
3803
3823CV_EXPORTS void HuMoments( const Moments& moments, double hu[7] );
3824
3827
3829
3832
3835 TM_SQDIFF = 0,
3839 TM_SQDIFF_NORMED = 1,
3846 TM_CCORR = 2,
3850 TM_CCORR_NORMED = 3,
3857 TM_CCOEFF = 4,
3869 TM_CCOEFF_NORMED = 5
3873
3908
3910
3913
3938
3939
3948 int connectivity = 8, int ltype = CV_32S);
3949
3950
3974CV_EXPORTS_AS(connectedComponentsWithStatsWithAlgorithm) int connectedComponentsWithStats(InputArray image, OutputArray labels,
3976 int connectivity, int ltype, int ccltype);
3977
3991 int connectivity = 8, int ltype = CV_32S);
3992
3993
4021 OutputArray hierarchy, int mode,
4022 int method, Point offset = Point());
4023
4026 int mode, int method, Point offset = Point());
4027
4037
4040
4055 OutputArray approxCurve,
4056 double epsilon, bool closed );
4057
4065CV_EXPORTS_W double arcLength( InputArray curve, bool closed );
4066
4075
4106CV_EXPORTS_W double contourArea( InputArray contour, bool oriented = false );
4107
4117
4128
4138 CV_OUT Point2f& center, CV_OUT float& radius );
4139
4163
4174 int method, double parameter );
4175
4208 bool clockwise = false, bool returnPoints = true );
4209
4228
4237
4256 OutputArray p12, bool handleNested = true );
4257
4273
4310
4311
4355
4391 double param, double reps, double aeps );
4392
4410
4427
4431
4435
4437
4440
4467
4479
4487
4489
4492
4493
4495#define CV_RGB(r, g, b) cv::Scalar((b), (g), (r), 0)
4496
4513 int thickness = 1, int lineType = LINE_8, int shift = 0);
4514
4529 int thickness=1, int line_type=8, int shift=0, double tipLength=0.1);
4530
4546 const Scalar& color, int thickness = 1,
4547 int lineType = LINE_8, int shift = 0);
4548
4555 const Scalar& color, int thickness = 1,
4556 int lineType = LINE_8, int shift = 0);
4557
4575 const Scalar& color, int thickness = 1,
4576 int lineType = LINE_8, int shift = 0);
4577
4604 double angle, double startAngle, double endAngle,
4605 const Scalar& color, int thickness = 1,
4606 int lineType = LINE_8, int shift = 0);
4607
4618 int thickness = 1, int lineType = LINE_8);
4619
4620/* ----------------------------------------------------------------------------------------- */
4621/* ADDING A SET OF PREDEFINED MARKERS WHICH COULD BE USED TO HIGHLIGHT POSITIONS IN AN IMAGE */
4622/* ----------------------------------------------------------------------------------------- */
4623
4638 int markerType = MARKER_CROSS, int markerSize=20, int thickness=1,
4639 int line_type=8);
4640
4641/* ----------------------------------------------------------------------------------------- */
4642/* END OF MARKER SECTION */
4643/* ----------------------------------------------------------------------------------------- */
4644
4659 const Scalar& color, int lineType = LINE_8,
4660 int shift = 0);
4661
4664 const Scalar& color, int lineType = LINE_8,
4665 int shift = 0);
4666
4686 const Scalar& color, int lineType = LINE_8, int shift = 0,
4687 Point offset = Point() );
4688
4691 const int* npts, int ncontours,
4692 const Scalar& color, int lineType = LINE_8, int shift = 0,
4693 Point offset = Point() );
4694
4709 bool isClosed, const Scalar& color,
4710 int thickness = 1, int lineType = LINE_8, int shift = 0 );
4711
4713CV_EXPORTS void polylines(InputOutputArray img, const Point* const* pts, const int* npts,
4714 int ncontours, bool isClosed, const Scalar& color,
4715 int thickness = 1, int lineType = LINE_8, int shift = 0 );
4716
4755 int contourIdx, const Scalar& color,
4756 int thickness = 1, int lineType = LINE_8,
4757 InputArray hierarchy = noArray(),
4758 int maxLevel = INT_MAX, Point offset = Point() );
4759
4770
4777
4784
4800 int arcStart, int arcEnd, int delta,
4802
4813 int arcStart, int arcEnd, int delta,
4815
4834 int fontFace, double fontScale, Scalar color,
4835 int thickness = 1, int lineType = LINE_8,
4836 bool bottomLeftOrigin = false );
4837
4884 double fontScale, int thickness,
4885 CV_OUT int* baseLine);
4886
4887
4897CV_EXPORTS_W double getFontScaleFromHeight(const int fontFace,
4898 const int pixelHeight,
4899 const int thickness = 1);
4900
4932{
4933public:
4949 int connectivity = 8, bool leftToRight = false )
4950 {
4951 init(&img, Rect(0, 0, img.cols, img.rows), pt1, pt2, connectivity, leftToRight);
4952 ptmode = false;
4953 }
4955 int connectivity = 8, bool leftToRight = false )
4956 {
4957 init(0, Rect(std::min(pt1.x, pt2.x),
4958 std::min(pt1.y, pt2.y),
4959 std::max(pt1.x, pt2.x) - std::min(pt1.x, pt2.x) + 1,
4960 std::max(pt1.y, pt2.y) - std::min(pt1.y, pt2.y) + 1),
4961 pt1, pt2, connectivity, leftToRight);
4962 ptmode = true;
4963 }
4964 LineIterator( Size boundingAreaSize, Point pt1, Point pt2,
4965 int connectivity = 8, bool leftToRight = false )
4966 {
4967 init(0, Rect(0, 0, boundingAreaSize.width, boundingAreaSize.height),
4968 pt1, pt2, connectivity, leftToRight);
4969 ptmode = true;
4970 }
4971 LineIterator( Rect boundingAreaRect, Point pt1, Point pt2,
4972 int connectivity = 8, bool leftToRight = false )
4973 {
4974 init(0, boundingAreaRect, pt1, pt2, connectivity, leftToRight);
4975 ptmode = true;
4976 }
4977 void init(const Mat* img, Rect boundingAreaRect, Point pt1, Point pt2, int connectivity, bool leftToRight);
4978
4981 uchar* operator *();
4982
4987 LineIterator& operator ++();
4988
4993 LineIterator operator ++(int);
4994
4997 Point pos() const;
4998
5000 const uchar* ptr0;
5002 int err, count;
5003 int minusDelta, plusDelta;
5004 int minusStep, plusStep;
5005 int minusShift, plusShift;
5008};
5009
5011
5012// === LineIterator implementation ===
5013
5014inline
5016{
5017 return ptmode ? 0 : ptr;
5018}
5019
5020inline
5021LineIterator& LineIterator::operator ++()
5022{
5023 int mask = err < 0 ? -1 : 0;
5024 err += minusDelta + (plusDelta & mask);
5025 if(!ptmode)
5026 {
5027 ptr += minusStep + (plusStep & mask);
5028 }
5029 else
5030 {
5031 p.x += minusShift + (plusShift & mask);
5032 p.y += minusStep + (plusStep & mask);
5033 }
5034 return *this;
5035}
5036
5037inline
5038LineIterator LineIterator::operator ++(int)
5039{
5040 LineIterator it = *this;
5041 ++(*this);
5042 return it;
5043}
5044
5045inline
5047{
5048 if(!ptmode)
5049 {
5050 size_t offset = (size_t)(ptr - ptr0);
5051 int y = (int)(offset/step);
5052 int x = (int)((offset - (size_t)y*step)/elemSize);
5053 return Point(x, y);
5054 }
5055 return p;
5056}
5057
5059
5061
5063
5064} // cv
5065
5066
5067#include "./imgproc/segmentation.hpp"
5068
5069
5070#endif
This is a base class for all more or less complex algorithms in OpenCV.
Definition core.hpp:3197
Base class for Contrast Limited Adaptive Histogram Equalization.
Definition imgproc.hpp:1040
virtual CV_WRAP void apply(InputArray src, OutputArray dst)=0
Equalizes the histogram of a grayscale image using Contrast Limited Adaptive Histogram Equalization.
virtual CV_WRAP void setTilesGridSize(Size tileGridSize)=0
Sets size of grid for histogram equalization. Input image will be divided into equally sized rectangu...
virtual CV_WRAP Size getTilesGridSize() const =0
Returns Size defines the number of tiles in row and column.
virtual CV_WRAP double getClipLimit() const =0
Returns threshold value for contrast limiting.
virtual CV_WRAP void collectGarbage()=0
virtual CV_WRAP void setClipLimit(double clipLimit)=0
Sets threshold for contrast limiting.
finds arbitrary template in the grayscale image using Generalized Hough Transform
Definition imgproc.hpp:965
virtual CV_WRAP int getVotesThreshold() const =0
virtual CV_WRAP void setVotesThreshold(int votesThreshold)=0
The accumulator threshold for the template centers at the detection stage. The smaller it is,...
virtual CV_WRAP void setLevels(int levels)=0
R-Table levels.
virtual CV_WRAP int getLevels() const =0
finds arbitrary template in the grayscale image using Generalized Hough Transform
Definition imgproc.hpp:981
virtual CV_WRAP void setPosThresh(int posThresh)=0
Position votes threshold.
virtual CV_WRAP int getAngleThresh() const =0
virtual CV_WRAP double getXi() const =0
virtual CV_WRAP double getMinScale() const =0
virtual CV_WRAP void setXi(double xi)=0
Angle difference in degrees between two points in feature.
virtual CV_WRAP double getScaleStep() const =0
virtual CV_WRAP double getAngleEpsilon() const =0
virtual CV_WRAP void setMaxScale(double maxScale)=0
Maximal scale to detect.
virtual CV_WRAP void setAngleStep(double angleStep)=0
Angle step in degrees.
virtual CV_WRAP void setAngleEpsilon(double angleEpsilon)=0
Maximal difference between angles that treated as equal.
virtual CV_WRAP void setMinScale(double minScale)=0
Minimal scale to detect.
virtual CV_WRAP int getPosThresh() const =0
virtual CV_WRAP void setScaleThresh(int scaleThresh)=0
Scale votes threshold.
virtual CV_WRAP int getScaleThresh() const =0
virtual CV_WRAP void setLevels(int levels)=0
Feature table levels.
virtual CV_WRAP double getMaxAngle() const =0
virtual CV_WRAP void setMinAngle(double minAngle)=0
Minimal rotation angle to detect in degrees.
virtual CV_WRAP double getAngleStep() const =0
virtual CV_WRAP void setScaleStep(double scaleStep)=0
Scale step.
virtual CV_WRAP void setAngleThresh(int angleThresh)=0
Angle votes threshold.
virtual CV_WRAP double getMaxScale() const =0
virtual CV_WRAP double getMinAngle() const =0
virtual CV_WRAP int getLevels() const =0
virtual CV_WRAP void setMaxAngle(double maxAngle)=0
Maximal rotation angle to detect in degrees.
finds arbitrary template in the grayscale image using Generalized Hough Transform
Definition imgproc.hpp:929
virtual CV_WRAP double getMinDist() const =0
virtual CV_WRAP void setCannyLowThresh(int cannyLowThresh)=0
Canny low threshold.
virtual CV_WRAP int getMaxBufferSize() const =0
virtual CV_WRAP void detect(InputArray edges, InputArray dx, InputArray dy, OutputArray positions, OutputArray votes=noArray())=0
virtual CV_WRAP void setTemplate(InputArray edges, InputArray dx, InputArray dy, Point templCenter=Point(-1, -1))=0
virtual CV_WRAP void setTemplate(InputArray templ, Point templCenter=Point(-1, -1))=0
set template to search
virtual CV_WRAP void setDp(double dp)=0
Inverse ratio of the accumulator resolution to the image resolution.
virtual CV_WRAP int getCannyLowThresh() const =0
virtual CV_WRAP void setMaxBufferSize(int maxBufferSize)=0
Maximal size of inner buffers.
virtual CV_WRAP void detect(InputArray image, OutputArray positions, OutputArray votes=noArray())=0
find template on image
virtual CV_WRAP void setCannyHighThresh(int cannyHighThresh)=0
Canny high threshold.
virtual CV_WRAP double getDp() const =0
virtual CV_WRAP void setMinDist(double minDist)=0
Minimum distance between the centers of the detected objects.
virtual CV_WRAP int getCannyHighThresh() const =0
Class for iterating over all pixels on a raster line segment.
Definition imgproc.hpp:4932
void init(const Mat *img, Rect boundingAreaRect, Point pt1, Point pt2, int connectivity, bool leftToRight)
int minusStep
Definition imgproc.hpp:5004
int plusDelta
Definition imgproc.hpp:5003
int err
Definition imgproc.hpp:5002
bool ptmode
Definition imgproc.hpp:5007
LineIterator & operator++()
Moves iterator to the next pixel on the line.
LineIterator(Point pt1, Point pt2, int connectivity=8, bool leftToRight=false)
Definition imgproc.hpp:4954
int count
Definition imgproc.hpp:5002
uchar * ptr
Definition imgproc.hpp:4999
int elemSize
Definition imgproc.hpp:5001
LineIterator(const Mat &img, Point pt1, Point pt2, int connectivity=8, bool leftToRight=false)
Initializes iterator object for the given line and image.
Definition imgproc.hpp:4948
LineIterator(Size boundingAreaSize, Point pt1, Point pt2, int connectivity=8, bool leftToRight=false)
Definition imgproc.hpp:4964
uchar * operator*()
Returns pointer to the current pixel.
const uchar * ptr0
Definition imgproc.hpp:5000
int step
Definition imgproc.hpp:5001
Point p
Definition imgproc.hpp:5006
int plusShift
Definition imgproc.hpp:5005
int minusDelta
Definition imgproc.hpp:5003
int minusShift
Definition imgproc.hpp:5005
int plusStep
Definition imgproc.hpp:5004
LineIterator(Rect boundingAreaRect, Point pt1, Point pt2, int connectivity=8, bool leftToRight=false)
Definition imgproc.hpp:4971
Point pos() const
Returns coordinates of the current pixel.
Line segment detector class.
Definition imgproc.hpp:1353
virtual CV_WRAP int compareSegments(const Size &size, InputArray lines1, InputArray lines2, InputOutputArray image=noArray())=0
Draws two groups of lines in blue and red, counting the non overlapping (mismatching) pixels.
virtual CV_WRAP void detect(InputArray image, OutputArray lines, OutputArray width=noArray(), OutputArray prec=noArray(), OutputArray nfa=noArray())=0
Finds lines in the input image.
virtual ~LineSegmentDetector()
Definition imgproc.hpp:1397
virtual CV_WRAP void drawSegments(InputOutputArray image, InputArray lines)=0
Draws the line segments on a given image.
n-dimensional dense array class
Definition mat.hpp:812
int cols
Definition mat.hpp:2138
int rows
the number of rows and columns or (-1, -1) when the matrix has more than 2 dimensions
Definition mat.hpp:2138
Template class for small matrices whose type and size are known at compilation time.
Definition matx.hpp:100
struct returned by cv::moments
Definition types.hpp:960
Template class for 2D points specified by its coordinates x and y.
Definition types.hpp:163
_Tp y
y coordinate of the point
Definition types.hpp:202
_Tp x
x coordinate of the point
Definition types.hpp:201
Template class for 2D rectangles.
Definition types.hpp:444
The class represents rotated (i.e. not up-right) rectangles on a plane.
Definition types.hpp:531
static Scalar_< double > all(double v0)
returns a scalar with all elements set to v0
Template class for specifying the size of an image or rectangle.
Definition types.hpp:335
_Tp height
the height
Definition types.hpp:363
_Tp width
the width
Definition types.hpp:362
The class SparseMat represents multi-dimensional sparse numerical arrays.
Definition mat.hpp:2735
Definition imgproc.hpp:1077
CV_WRAP int getEdge(int edge, int nextEdgeType) const
Returns one of the edges related to the given edge.
void calcVoronoi()
CV_WRAP void insert(const std::vector< Point2f > &ptvec)
Insert multiple points into a Delaunay triangulation.
CV_WRAP void getVoronoiFacetList(const std::vector< int > &idx, CV_OUT std::vector< std::vector< Point2f > > &facetList, CV_OUT std::vector< Point2f > &facetCenters)
Returns a list of all Voronoi facets.
void swapEdges(int edge)
CV_WRAP void getEdgeList(CV_OUT std::vector< Vec4f > &edgeList) const
Returns a list of all edges.
CV_WRAP int rotateEdge(int edge, int rotate) const
Returns another edge of the same quad-edge.
CV_WRAP Subdiv2D(Rect rect)
void checkSubdiv() const
CV_WRAP Subdiv2D()
void splice(int edgeA, int edgeB)
Point2f topLeft
Top left corner of the bounding rect.
Definition imgproc.hpp:1330
int isRightOf(Point2f pt, int edge) const
int connectEdges(int edgeA, int edgeB)
CV_WRAP int findNearest(Point2f pt, CV_OUT Point2f *nearestPt=0)
Finds the subdivision vertex closest to the given point.
CV_WRAP void getTriangleList(CV_OUT std::vector< Vec6f > &triangleList) const
Returns a list of all triangles.
CV_WRAP int locate(Point2f pt, CV_OUT int &edge, CV_OUT int &vertex)
Returns the location of a point within a Delaunay triangulation.
CV_WRAP void initDelaunay(Rect rect)
Creates a new empty Delaunay subdivision.
int freeQEdge
Definition imgproc.hpp:1324
void deletePoint(int vtx)
CV_WRAP void getLeadingEdgeList(CV_OUT std::vector< int > &leadingEdgeList) const
Returns a list of the leading edge ID connected to each triangle.
CV_WRAP int insert(Point2f pt)
Insert a single point into a Delaunay triangulation.
int recentEdge
Definition imgproc.hpp:1328
int freePoint
Definition imgproc.hpp:1325
bool validGeometry
Definition imgproc.hpp:1326
CV_WRAP int nextEdge(int edge) const
Returns next edge around the edge origin.
CV_WRAP int symEdge(int edge) const
void deleteEdge(int edge)
Point2f bottomRight
Bottom right corner of the bounding rect.
Definition imgproc.hpp:1332
CV_WRAP int edgeDst(int edge, CV_OUT Point2f *dstpt=0) const
Returns the edge destination.
int newPoint(Point2f pt, bool isvirtual, int firstEdge=0)
std::vector< QuadEdge > qedges
All of the edges.
Definition imgproc.hpp:1323
void setEdgePoints(int edge, int orgPt, int dstPt)
void clearVoronoi()
CV_WRAP Point2f getVertex(int vertex, CV_OUT int *firstEdge=0) const
Returns vertex location from vertex ID.
std::vector< Vertex > vtx
All of the vertices.
Definition imgproc.hpp:1321
CV_WRAP int edgeOrg(int edge, CV_OUT Point2f *orgpt=0) const
Returns the edge origin.
The class defining termination criteria for iterative algorithms.
Definition types.hpp:886
@ MAX_ITER
ditto
Definition types.hpp:894
@ EPS
the desired accuracy or change in parameters at which the iterative algorithm stops
Definition types.hpp:895
Definition mat.hpp:387
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition mat.hpp:296
InputArrayOfArrays Size InputOutputArray InputOutputArray OutputArrayOfArrays OutputArrayOfArrays OutputArray OutputArray OutputArray int flags
Definition calib3d.hpp:1617
InputArrayOfArrays Size InputOutputArray InputOutputArray OutputArrayOfArrays OutputArrayOfArrays OutputArray OutputArray OutputArray int TermCriteria criteria
Definition calib3d.hpp:1617
CV_EXPORTS_W void normalize(InputArray src, InputOutputArray dst, double alpha=1, double beta=0, int norm_type=NORM_L2, int dtype=-1, InputArray mask=noArray())
Normalizes the norm or value range of an array.
@ BORDER_CONSTANT
iiiiii|abcdefgh|iiiiiii with some specified i
Definition base.hpp:269
@ BORDER_DEFAULT
same as BORDER_REFLECT_101
Definition base.hpp:277
@ DECOMP_LU
Definition base.hpp:135
Point2i Point
Definition types.hpp:209
Size2i Size
Definition types.hpp:370
Scalar_< double > Scalar
Definition types.hpp:702
CV_EXPORTS InputOutputArray noArray()
InputArray InputArrayOfArrays
Definition mat.hpp:443
CV__DEBUG_NS_END typedef const _InputArray & InputArray
Definition mat.hpp:442
CvGraphVtx * vtx
Definition core_c.h:1791
int int channels
Definition core_c.h:100
CvArr int CvScalar CvScalar param2
Definition core_c.h:1248
CvArr * dst
Definition core_c.h:875
CvArr int CvScalar param1
Definition core_c.h:1248
CvRect rect
Definition core_c.h:193
const int * idx
Definition core_c.h:668
const char const char const char int line
Definition core_c.h:2623
CvScalar scale
Definition core_c.h:1088
const CvArr const CvArr * src2
Definition core_c.h:994
const CvArr * angle
Definition core_c.h:1194
CvSize size
Definition core_c.h:112
const CvArr * src1
Definition core_c.h:993
int int type
Definition core_c.h:221
void int step
Definition core_c.h:905
const CvArr CvArr * x
Definition core_c.h:1195
double const CvArr double double gamma
Definition core_c.h:1095
double alpha
Definition core_c.h:1093
int CvArr CvTermCriteria termcrit
Definition core_c.h:1927
const CvArr const CvArr CvArr * result
Definition core_c.h:1423
int dims
Definition core_c.h:464
const CvArr * y
Definition core_c.h:1187
#define CV_64F
Definition interface.h:79
#define CV_32S
Definition interface.h:77
#define CV_32F
Definition interface.h:78
unsigned char uchar
Definition interface.h:51
#define CV_EXPORTS
Definition cvdef.h:435
#define CV_EXPORTS_AS(synonym)
Definition cvdef.h:474
#define CV_IN_OUT
Definition cvdef.h:477
#define CV_OUT
Definition cvdef.h:478
#define CV_PI
Definition cvdef.h:380
#define CV_EXPORTS_W
Definition cvdef.h:472
#define CV_WRAP_AS(synonym)
Definition cvdef.h:482
#define CV_WRAP
Definition cvdef.h:481
CvArr * edges
Definition imgproc_c.h:860
const CvRect * rect2
Definition imgproc_c.h:568
CvMoments * moments
Definition imgproc_c.h:335
const char * text
Definition imgproc_c.h:1143
const CvPoint int npts
Definition imgproc_c.h:1026
CvArr * markers
Definition imgproc_c.h:182
double threshold
Definition imgproc_c.h:712
CvPoint2D32f pt[4]
Definition imgproc_c.h:571
CvArr double threshold1
Definition imgproc_c.h:860
CvPoint pt1
Definition imgproc_c.h:357
const CvArr * templ
Definition imgproc_c.h:383
CvArr CvPoint2D32f double M
Definition imgproc_c.h:270
int double double reps
Definition imgproc_c.h:944
CvPoint CvPoint CvScalar color
Definition imgproc_c.h:968
int double double double aeps
Definition imgproc_c.h:944
CvSize int int int CvPoint int delta
Definition imgproc_c.h:1168
const char CvPoint org
Definition imgproc_c.h:1143
CvPoint2D32f float * radius
Definition imgproc_c.h:534
void int double rho
Definition imgproc_c.h:926
CvArr const CvMat * kernel
Definition imgproc_c.h:131
CvPoint CvPoint pt2
Definition imgproc_c.h:357
void int double double theta
Definition imgproc_c.h:926
int int int int shape
Definition imgproc_c.h:301
CvPoint CvSize axes
Definition imgproc_c.h:1005
CvArr int code
Definition imgproc_c.h:203
CvArr double double threshold2
Definition imgproc_c.h:861
CvArr CvPoint2D32f double maxRadius
Definition imgproc_c.h:277
int double param
Definition imgproc_c.h:943
int CvHistogram * hist
Definition imgproc_c.h:653
float ** ranges
Definition imgproc_c.h:636
const CvPoint * pts
Definition imgproc_c.h:1026
void int double dp
Definition imgproc_c.h:934
const CvArr CvArr int method
Definition imgproc_c.h:384
CvArr double sp
Definition imgproc_c.h:176
CvArr CvPoint2D32f center
Definition imgproc_c.h:270
CvArr double double sr
Definition imgproc_c.h:176
CvPoint const int int contours
Definition imgproc_c.h:1033
CvSeq * contour
Definition imgproc_c.h:1173
CvArr CvPoint offset
Definition imgproc_c.h:88
const CvArr * convexhull
Definition imgproc_c.h:559
CV_EXPORTS_W void demosaicing(InputArray src, OutputArray dst, int code, int dstCn=0)
main function for all demosaicing processes
ColorConversionCodes
Definition imgproc.hpp:536
CV_EXPORTS_W void cvtColorTwoPlane(InputArray src1, InputArray src2, OutputArray dst, int code)
Converts an image from one color space to another where the source image is stored in two planes.
CV_EXPORTS_W void cvtColor(InputArray src, OutputArray dst, int code, int dstCn=0)
Converts an image from one color space to another.
@ COLOR_RGB2BGR
Definition imgproc.hpp:550
@ COLOR_YUV2RGB_YUNV
synonym to YUY2
Definition imgproc.hpp:709
@ COLOR_RGBA2BGR
Definition imgproc.hpp:546
@ COLOR_BayerBG2BGR_VNG
Demosaicing using Variable Number of Gradients.
Definition imgproc.hpp:780
@ COLOR_RGB2YUV_YUNV
synonym to YUY2
Definition imgproc.hpp:862
@ COLOR_YUV420p2BGR
synonym to YV12
Definition imgproc.hpp:665
@ COLOR_YUV2GRAY_YUYV
synonym to COLOR_YUV2GRAY_YUY2
Definition imgproc.hpp:727
@ COLOR_BGRA2RGBA
Definition imgproc.hpp:552
@ COLOR_BayerGRBG2BGR_EA
Definition imgproc.hpp:807
@ COLOR_BayerBG2GRAY
equivalent to RGGB Bayer pattern
Definition imgproc.hpp:769
@ COLOR_YUV2BGRA_YUYV
synonym to YUY2
Definition imgproc.hpp:717
@ COLOR_YUV2RGBA_YVYU
convert between YUV YVYU and RGBA, YUV is 4:2:2-subsampled and interleaved as Y1/V/Y2/U,...
Definition imgproc.hpp:714
@ COLOR_YUV2BGRA_YUNV
synonym to YUY2
Definition imgproc.hpp:719
@ COLOR_RGBA2YUV_YUNV
synonym to YUY2
Definition imgproc.hpp:871
@ COLOR_YUV420sp2RGB
synonym to NV21
Definition imgproc.hpp:648
@ COLOR_RGB2YUV_YV12
convert between RGB and 4:2:0-subsampled YUV YV12, three planes in one array: Y, V and U,...
Definition imgproc.hpp:743
@ COLOR_BGRA2YUV_YUNV
synonym to YUY2
Definition imgproc.hpp:872
@ COLOR_Lab2LRGB
Definition imgproc.hpp:635
@ COLOR_YUV2BGRA_I420
synonym to IYUV
Definition imgproc.hpp:672
@ COLOR_YUV2GRAY_UYNV
synonym to COLOR_YUV2GRAY_UYVY
Definition imgproc.hpp:725
@ COLOR_BayerGRBG2RGB
Definition imgproc.hpp:760
@ COLOR_GRAY2RGB
Definition imgproc.hpp:558
@ COLOR_YUV2RGBA_I420
synonym to IYUV
Definition imgproc.hpp:671
@ COLOR_BayerRGGB2BGR
Definition imgproc.hpp:754
@ COLOR_BGRA2YUV_YUY2
convert between BGRA and YUV YUY2, YUV is 4:2:2 and interleaved as Y1/U/Y2/V, see color_convert_rgb_y...
Definition imgproc.hpp:866
@ COLOR_BGRA2YUV_YV12
convert between BGRA and 4:2:0-subsampled YUV YV12, three planes in one array: Y, V and U,...
Definition imgproc.hpp:746
@ COLOR_BGR2YUV_UYNV
synonym to UYVY
Definition imgproc.hpp:847
@ COLOR_YUV2GRAY_NV21
synonym to COLOR_YUV2GRAY_420
Definition imgproc.hpp:677
@ COLOR_LBGR2Luv
Definition imgproc.hpp:631
@ COLOR_HLS2BGR
backward conversions HLS to RGB/BGR with H range 0..180 if 8 bit image
Definition imgproc.hpp:616
@ COLOR_BayerRGGB2RGB
Definition imgproc.hpp:759
@ COLOR_BayerGBRG2BGR_EA
Definition imgproc.hpp:809
@ COLOR_YUV2GRAY_Y422
synonym to COLOR_YUV2GRAY_UYVY
Definition imgproc.hpp:724
@ COLOR_YUV420p2BGRA
synonym to YV12
Definition imgproc.hpp:674
@ COLOR_BayerGRBG2BGRA
Definition imgproc.hpp:828
@ COLOR_YUV2RGBA_YUYV
synonym to YUY2
Definition imgproc.hpp:716
@ COLOR_BayerBG2RGB_VNG
equivalent to RGGB Bayer pattern
Definition imgproc.hpp:795
@ COLOR_BayerGB2RGB_EA
equivalent to GRBG Bayer pattern
Definition imgproc.hpp:817
@ COLOR_YUV2BGR_YUY2
convert between YUV YUY2 and BGR, YUV is 4:2:2-subsampled and interleaved as Y1/U/Y2/V,...
Definition imgproc.hpp:704
@ COLOR_BayerRG2BGR
equivalent to BGGR Bayer pattern
Definition imgproc.hpp:751
@ COLOR_YCrCb2RGB
Definition imgproc.hpp:596
@ COLOR_HSV2BGR
backward conversions HSV to RGB/BGR with H range 0..180 if 8 bit image
Definition imgproc.hpp:609
@ COLOR_BayerRG2RGBA
equivalent to BGGR Bayer pattern
Definition imgproc.hpp:839
@ COLOR_YUV2BGR_YUYV
synonym to YUY2
Definition imgproc.hpp:708
@ COLOR_RGBA2BGR565
Definition imgproc.hpp:569
@ COLOR_BGR2HSV_FULL
convert RGB/BGR to HSV (hue saturation value) with H range 0..255 if 8 bit image, color conversions
Definition imgproc.hpp:619
@ COLOR_YUV2BGR_I420
synonym to IYUV
Definition imgproc.hpp:663
@ COLOR_BGR2HLS
convert RGB/BGR to HLS (hue lightness saturation) with H range 0..180 if 8 bit image,...
Definition imgproc.hpp:606
@ COLOR_YUV2RGB_UYNV
synonym to UYVY
Definition imgproc.hpp:691
@ COLOR_YUV2RGB_NV21
convert between 4:2:0-subsampled YUV NV21 and RGB, two planes (in one or separate arrays): Y and V/U ...
Definition imgproc.hpp:646
@ COLOR_HSV2RGB
Definition imgproc.hpp:610
@ COLOR_BGR2GRAY
convert between RGB/BGR and grayscale, color conversions
Definition imgproc.hpp:555
@ COLOR_YUV2RGB_I420
synonym to IYUV
Definition imgproc.hpp:662
@ COLOR_YUV2RGBA_NV21
convert between 4:2:0-subsampled YUV NV21 and RGBA, two planes (in one or separate arrays): Y and V/U...
Definition imgproc.hpp:653
@ COLOR_RGBA2YUV_UYNV
synonym to UYVY
Definition imgproc.hpp:853
@ COLOR_BGRA2BGR
remove alpha channel from RGB or BGR image
Definition imgproc.hpp:540
@ COLOR_BayerGB2BGR_EA
equivalent to GRBG Bayer pattern
Definition imgproc.hpp:802
@ COLOR_RGB2BGRA
Definition imgproc.hpp:544
@ COLOR_YUV2GRAY_I420
synonym to COLOR_YUV2GRAY_420
Definition imgproc.hpp:681
@ COLOR_BayerGBRG2RGBA
Definition imgproc.hpp:835
@ COLOR_BayerRGGB2BGR_VNG
Definition imgproc.hpp:785
@ COLOR_YUV2GRAY_YUY2
extract Y channel from YUV 4:2:2 image
Definition imgproc.hpp:722
@ COLOR_mRGBA2RGBA
Definition imgproc.hpp:732
@ COLOR_YUV2BGR_NV12
convert between 4:2:0-subsampled YUV NV12 and BGR, two planes (in one or separate arrays): Y and U/V ...
Definition imgproc.hpp:645
@ COLOR_YUV420sp2BGRA
synonym to NV21
Definition imgproc.hpp:656
@ COLOR_RGBA2BGR555
Definition imgproc.hpp:581
@ COLOR_BayerGRBG2BGR_VNG
Definition imgproc.hpp:786
@ COLOR_YUV2BGRA_UYVY
convert between YUV UYVY and BGRA, YUV is 4:2:2-subsampled and interleaved as U/Y1/V/Y2,...
Definition imgproc.hpp:695
@ COLOR_RGBA2YUV_YVYU
convert between RGBA and YUV YVYU, YUV is 4:2:2 and interleaved as Y1/V/Y2/U, see color_convert_rgb_y...
Definition imgproc.hpp:867
@ COLOR_BGR5652BGRA
Definition imgproc.hpp:570
@ COLOR_RGBA2BGRA
Definition imgproc.hpp:553
@ COLOR_RGB2YUV_YUY2
convert between RGB and YUV YUY2, YUV is 4:2:2 and interleaved as Y1/U/Y2/V, see color_convert_rgb_yu...
Definition imgproc.hpp:856
@ COLOR_BayerBGGR2RGBA
Definition imgproc.hpp:834
@ COLOR_BGR5552GRAY
Definition imgproc.hpp:586
@ COLOR_BayerGBRG2RGB_EA
Definition imgproc.hpp:814
@ COLOR_BayerBGGR2RGB
Definition imgproc.hpp:761
@ COLOR_YUV2BGR_YUNV
synonym to YUY2
Definition imgproc.hpp:710
@ COLOR_YUV2BGRA_UYNV
synonym to UYVY
Definition imgproc.hpp:701
@ COLOR_HLS2RGB
Definition imgproc.hpp:617
@ COLOR_Lab2RGB
Definition imgproc.hpp:613
@ COLOR_Luv2BGR
Definition imgproc.hpp:614
@ COLOR_RGBA2YUV_UYVY
convert between RGBA and YUV UYVU, YUV is 4:2:2 and interleaved as U/Y1/V/Y2, see color_convert_rgb_y...
Definition imgproc.hpp:849
@ COLOR_BGRA2YUV_YUYV
synonym to YUY2
Definition imgproc.hpp:870
@ COLOR_YUV2RGB_YV12
convert between 4:2:0-subsampled YUV YV12 and RGB, three planes in one array: Y, V and U,...
Definition imgproc.hpp:658
@ COLOR_RGB2YCrCb
Definition imgproc.hpp:594
@ COLOR_BayerRGGB2GRAY
Definition imgproc.hpp:774
@ COLOR_YUV2RGB_UYVY
convert between YUV UYVY and RGB, YUV is 4:2:2-subsampled and interleaved as U/Y1/V/Y2,...
Definition imgproc.hpp:685
@ COLOR_HLS2RGB_FULL
Definition imgproc.hpp:627
@ COLOR_BGRA2YUV_YVYU
convert between BGRA and YUV YVYU, YUV is 4:2:2 and interleaved as Y1/V/Y2/U, see color_convert_rgb_y...
Definition imgproc.hpp:868
@ COLOR_RGB2Luv
Definition imgproc.hpp:605
@ COLOR_BayerBGGR2BGR
Definition imgproc.hpp:756
@ COLOR_BGRA2RGB
Definition imgproc.hpp:547
@ COLOR_BGR2YUV
convert between RGB/BGR and YUV
Definition imgproc.hpp:639
@ COLOR_YUV2RGBA_IYUV
convert between 4:2:0-subsampled YUV YV12 and RGBA, three planes in one array: Y, U and V,...
Definition imgproc.hpp:669
@ COLOR_YUV2BGRA_Y422
synonym to UYVY
Definition imgproc.hpp:699
@ COLOR_BayerGB2GRAY
equivalent to GRBG Bayer pattern
Definition imgproc.hpp:770
@ COLOR_BGR2YCrCb
convert RGB/BGR to luma-chroma (aka YCC), color conversions
Definition imgproc.hpp:593
@ COLOR_YUV2BGRA_IYUV
convert between 4:2:0-subsampled YUV YV12 and BGRA, three planes in one array: Y, U and V,...
Definition imgproc.hpp:670
@ COLOR_BGRA2YUV_IYUV
synonym to I420
Definition imgproc.hpp:742
@ COLOR_BayerBG2BGRA
Demosaicing with alpha channel.
Definition imgproc.hpp:822
@ COLOR_BayerGRBG2RGB_EA
Definition imgproc.hpp:812
@ COLOR_RGBA2RGB
Definition imgproc.hpp:541
@ COLOR_YUV420p2GRAY
synonym to COLOR_YUV2GRAY_420
Definition imgproc.hpp:683
@ COLOR_BayerGRBG2RGBA
Definition imgproc.hpp:833
@ COLOR_BGRA2YUV_UYVY
convert between BGRA and YUV UYVU, YUV is 4:2:2 and interleaved as U/Y1/V/Y2, see color_convert_rgb_y...
Definition imgproc.hpp:850
@ COLOR_YUV2GRAY_YV12
synonym to COLOR_YUV2GRAY_420
Definition imgproc.hpp:679
@ COLOR_BayerBGGR2BGRA
Definition imgproc.hpp:829
@ COLOR_BGR5652GRAY
Definition imgproc.hpp:574
@ COLOR_BayerGBRG2RGB_VNG
Definition imgproc.hpp:793
@ COLOR_BayerRGGB2BGRA
Definition imgproc.hpp:827
@ COLOR_YUV2RGBA_Y422
synonym to UYVY
Definition imgproc.hpp:698
@ COLOR_GRAY2BGR555
convert between grayscale and BGR555 (16-bit images)
Definition imgproc.hpp:585
@ COLOR_YUV420sp2RGBA
synonym to NV21
Definition imgproc.hpp:655
@ COLOR_HLS2BGR_FULL
backward conversions HLS to RGB/BGR with H range 0..255 if 8 bit image
Definition imgproc.hpp:626
@ COLOR_YUV2BGRA_YV12
convert between 4:2:0-subsampled YUV YV12 and BGRA, three planes in one array: Y, V and U,...
Definition imgproc.hpp:668
@ COLOR_HSV2BGR_FULL
backward conversions HSV to RGB/BGR with H range 0..255 if 8 bit image
Definition imgproc.hpp:624
@ COLOR_YUV2RGB_YUY2
convert between YUV YUY2 and RGB, YUV is 4:2:2-subsampled and interleaved as Y1/U/Y2/V,...
Definition imgproc.hpp:703
@ COLOR_BayerRGGB2BGR_EA
Definition imgproc.hpp:806
@ COLOR_BGR5552RGB
Definition imgproc.hpp:579
@ COLOR_YUV2RGBA_UYNV
synonym to UYVY
Definition imgproc.hpp:700
@ COLOR_BayerGB2RGBA
equivalent to GRBG Bayer pattern
Definition imgproc.hpp:838
@ COLOR_BGR2YUV_YUNV
synonym to YUY2
Definition imgproc.hpp:863
@ COLOR_BayerGR2RGBA
equivalent to GBRG Bayer pattern
Definition imgproc.hpp:840
@ COLOR_RGB2BGR565
Definition imgproc.hpp:565
@ COLOR_BGR5552RGBA
Definition imgproc.hpp:583
@ COLOR_YUV2RGB_YUYV
synonym to YUY2
Definition imgproc.hpp:707
@ COLOR_BGR2Luv
convert RGB/BGR to CIE Luv, color conversions
Definition imgproc.hpp:604
@ COLOR_BayerRGGB2RGB_EA
Definition imgproc.hpp:811
@ COLOR_YUV2RGBA_UYVY
convert between YUV UYVY and RGBA, YUV is 4:2:2-subsampled and interleaved as U/Y1/V/Y2,...
Definition imgproc.hpp:694
@ COLOR_BGR2YUV_YUY2
convert between BGR and YUV YUY2, YUV is 4:2:2 and interleaved as Y1/U/Y2/V, see color_convert_rgb_yu...
Definition imgproc.hpp:857
@ COLOR_BayerGR2BGRA
equivalent to GBRG Bayer pattern
Definition imgproc.hpp:825
@ COLOR_RGBA2GRAY
Definition imgproc.hpp:562
@ COLOR_YUV2RGB_NV12
convert between 4:2:0-subsampled YUV NV12 and RGB, two planes (in one or separate arrays): Y and U/V ...
Definition imgproc.hpp:644
@ COLOR_BGR2Lab
convert RGB/BGR to CIE Lab, color conversions
Definition imgproc.hpp:601
@ COLOR_YUV2RGB_IYUV
convert between 4:2:0-subsampled YUV IYUV and RGB, three planes in one array: Y, U and V,...
Definition imgproc.hpp:660
@ COLOR_GRAY2BGR
Definition imgproc.hpp:557
@ COLOR_BGRA2YUV_UYNV
synonym to UYVY
Definition imgproc.hpp:854
@ COLOR_YUV2BGRA_YVYU
convert between YUV YVYU and BGRA, YUV is 4:2:2-subsampled and interleaved as Y1/V/Y2/U,...
Definition imgproc.hpp:715
@ COLOR_BGR5552BGRA
Definition imgproc.hpp:582
@ COLOR_BayerBG2BGR
Demosaicing, see color conversions for additional information.
Definition imgproc.hpp:749
@ COLOR_GRAY2BGR565
convert between grayscale to BGR565 (16-bit images)
Definition imgproc.hpp:573
@ COLOR_YUV2BGR_YVYU
convert between YUV YVYU and BGR, YUV is 4:2:2-subsampled and interleaved as Y1/V/Y2/U,...
Definition imgproc.hpp:706
@ COLOR_YUV2GRAY_YVYU
synonym to COLOR_YUV2GRAY_YUY2
Definition imgproc.hpp:726
@ COLOR_BayerBGGR2BGR_VNG
Definition imgproc.hpp:787
@ COLOR_RGBA2mRGBA
alpha premultiplication
Definition imgproc.hpp:731
@ COLOR_Luv2RGB
Definition imgproc.hpp:615
@ COLOR_BayerGBRG2BGRA
Definition imgproc.hpp:830
@ COLOR_YUV2RGBA_YUNV
synonym to YUY2
Definition imgproc.hpp:718
@ COLOR_RGB2YUV_I420
convert between RGB and 4:2:0-subsampled YUV I420, three planes in one array: Y, U and V,...
Definition imgproc.hpp:734
@ COLOR_LRGB2Lab
Definition imgproc.hpp:630
@ COLOR_YUV2BGR_YV12
convert between 4:2:0-subsampled YUV YV12 and BGR, three planes in one array: Y, V and U,...
Definition imgproc.hpp:659
@ COLOR_COLORCVT_MAX
Definition imgproc.hpp:874
@ COLOR_BayerGB2RGB
equivalent to GRBG Bayer pattern
Definition imgproc.hpp:765
@ COLOR_RGB2YUV_YUYV
synonym to YUY2
Definition imgproc.hpp:860
@ COLOR_XYZ2RGB
Definition imgproc.hpp:591
@ COLOR_BGR2BGRA
add alpha channel to RGB or BGR image
Definition imgproc.hpp:537
@ COLOR_Lab2BGR
Definition imgproc.hpp:612
@ COLOR_BayerGRBG2BGR
Definition imgproc.hpp:755
@ COLOR_HSV2RGB_FULL
Definition imgproc.hpp:625
@ COLOR_BayerRG2BGR_EA
equivalent to BGGR Bayer pattern
Definition imgproc.hpp:803
@ COLOR_BGR2RGBA
convert between RGB and BGR color spaces (with or without alpha channel)
Definition imgproc.hpp:543
@ COLOR_RGBA2YUV_YV12
convert between RGBA and 4:2:0-subsampled YUV YV12, three planes in one array: Y, V and U,...
Definition imgproc.hpp:745
@ COLOR_BayerGBRG2GRAY
Definition imgproc.hpp:777
@ COLOR_YUV2RGB_YVYU
convert between YUV YVYU and RGB, YUV is 4:2:2-subsampled and interleaved as Y1/V/Y2/U,...
Definition imgproc.hpp:705
@ COLOR_Lab2LBGR
Definition imgproc.hpp:634
@ COLOR_RGBA2YUV_IYUV
synonym to I420
Definition imgproc.hpp:741
@ COLOR_BGR2HSV
convert RGB/BGR to HSV (hue saturation value) with H range 0..180 if 8 bit image, color conversions
Definition imgproc.hpp:598
@ COLOR_XYZ2BGR
Definition imgproc.hpp:590
@ COLOR_RGB2HSV
Definition imgproc.hpp:599
@ COLOR_YCrCb2BGR
Definition imgproc.hpp:595
@ COLOR_YUV2BGR_NV21
convert between 4:2:0-subsampled YUV NV21 and BGR, two planes (in one or separate arrays): Y and V/U ...
Definition imgproc.hpp:647
@ COLOR_LBGR2Lab
Definition imgproc.hpp:629
@ COLOR_YUV2RGBA_NV12
convert between 4:2:0-subsampled YUV NV12 and RGBA, two planes (in one or separate arrays): Y and U/V...
Definition imgproc.hpp:651
@ COLOR_BayerGR2GRAY
equivalent to GBRG Bayer pattern
Definition imgproc.hpp:772
@ COLOR_BayerGR2RGB
equivalent to GBRG Bayer pattern
Definition imgproc.hpp:767
@ COLOR_RGB2YUV_IYUV
synonym to I420
Definition imgproc.hpp:736
@ COLOR_BGR5652RGBA
Definition imgproc.hpp:571
@ COLOR_BGR2YUV_YVYU
convert between BGR and YUV YVYU, YUV is 4:2:2 and interleaved as Y1/V/Y2/U, see color_convert_rgb_yu...
Definition imgproc.hpp:859
@ COLOR_BayerRG2RGB_VNG
equivalent to BGGR Bayer pattern
Definition imgproc.hpp:797
@ COLOR_YUV2BGR
Definition imgproc.hpp:641
@ COLOR_YUV2RGB
Definition imgproc.hpp:642
@ COLOR_BGR5552BGR
Definition imgproc.hpp:578
@ COLOR_BayerRGGB2RGBA
Definition imgproc.hpp:832
@ COLOR_BGR2XYZ
convert RGB/BGR to CIE XYZ, color conversions
Definition imgproc.hpp:588
@ COLOR_YUV2RGBA_YV12
convert between 4:2:0-subsampled YUV YV12 and RGBA, three planes in one array: Y, V and U,...
Definition imgproc.hpp:667
@ COLOR_YUV2GRAY_UYVY
extract Y channel from YUV 4:2:2 image
Definition imgproc.hpp:721
@ COLOR_BGR5652RGB
Definition imgproc.hpp:567
@ COLOR_YUV2GRAY_IYUV
synonym to COLOR_YUV2GRAY_420
Definition imgproc.hpp:680
@ COLOR_YUV2BGR_UYNV
synonym to UYVY
Definition imgproc.hpp:692
@ COLOR_YUV2GRAY_YUNV
synonym to COLOR_YUV2GRAY_YUY2
Definition imgproc.hpp:728
@ COLOR_BayerBG2RGB
equivalent to RGGB Bayer pattern
Definition imgproc.hpp:764
@ COLOR_BayerGBRG2BGR
Definition imgproc.hpp:757
@ COLOR_RGBA2YUV_I420
convert between RGBA and 4:2:0-subsampled YUV I420, three planes in one array: Y, U and V,...
Definition imgproc.hpp:739
@ COLOR_YUV2GRAY_420
extract Y channel from YUV 4:2:0 image
Definition imgproc.hpp:676
@ COLOR_RGBA2YUV_YUYV
synonym to YUY2
Definition imgproc.hpp:869
@ COLOR_YUV2BGRA_NV21
convert between 4:2:0-subsampled YUV NV21 and BGRA, two planes (in one or separate arrays): Y and V/U...
Definition imgproc.hpp:654
@ COLOR_BayerGRBG2GRAY
Definition imgproc.hpp:775
@ COLOR_RGB2HLS
Definition imgproc.hpp:607
@ COLOR_YUV2GRAY_NV12
synonym to COLOR_YUV2GRAY_420
Definition imgproc.hpp:678
@ COLOR_BayerGBRG2RGB
Definition imgproc.hpp:762
@ COLOR_BayerRG2RGB_EA
equivalent to BGGR Bayer pattern
Definition imgproc.hpp:818
@ COLOR_GRAY2BGRA
Definition imgproc.hpp:559
@ COLOR_Luv2LBGR
Definition imgproc.hpp:636
@ COLOR_BayerGRBG2RGB_VNG
Definition imgproc.hpp:791
@ COLOR_BayerGR2RGB_VNG
equivalent to GBRG Bayer pattern
Definition imgproc.hpp:798
@ COLOR_BayerGB2BGRA
equivalent to GRBG Bayer pattern
Definition imgproc.hpp:823
@ COLOR_BayerGB2BGR
equivalent to GRBG Bayer pattern
Definition imgproc.hpp:750
@ COLOR_BGR2BGR555
convert between RGB/BGR and BGR555 (16-bit images)
Definition imgproc.hpp:576
@ COLOR_BGRA2YUV_Y422
synonym to UYVY
Definition imgproc.hpp:852
@ COLOR_BayerRG2BGR_VNG
equivalent to BGGR Bayer pattern
Definition imgproc.hpp:782
@ COLOR_LRGB2Luv
Definition imgproc.hpp:632
@ COLOR_BGR2RGB
Definition imgproc.hpp:549
@ COLOR_BayerRG2GRAY
equivalent to BGGR Bayer pattern
Definition imgproc.hpp:771
@ COLOR_YUV420sp2GRAY
synonym to COLOR_YUV2GRAY_420
Definition imgproc.hpp:682
@ COLOR_RGB2BGR555
Definition imgproc.hpp:577
@ COLOR_BGR2YUV_YUYV
synonym to YUY2
Definition imgproc.hpp:861
@ COLOR_BGR2YUV_UYVY
convert between BGR and YUV UYVU, YUV is 4:2:2 and interleaved as U/Y1/V/Y2, see color_convert_rgb_yu...
Definition imgproc.hpp:843
@ COLOR_BayerGR2BGR_VNG
equivalent to GBRG Bayer pattern
Definition imgproc.hpp:783
@ COLOR_RGB2YUV_UYVY
convert between RGB and YUV UYVU, YUV is 4:2:2 and interleaved as U/Y1/V/Y2, see color_convert_rgb_yu...
Definition imgproc.hpp:842
@ COLOR_BGR2YUV_Y422
synonym to UYVY
Definition imgproc.hpp:845
@ COLOR_BayerBG2RGB_EA
equivalent to RGGB Bayer pattern
Definition imgproc.hpp:816
@ COLOR_YUV420sp2BGR
synonym to NV21
Definition imgproc.hpp:649
@ COLOR_RGB2YUV
Definition imgproc.hpp:640
@ COLOR_BayerBGGR2BGR_EA
Definition imgproc.hpp:808
@ COLOR_BayerRG2RGB
equivalent to BGGR Bayer pattern
Definition imgproc.hpp:766
@ COLOR_YUV2RGB_Y422
synonym to UYVY
Definition imgproc.hpp:689
@ COLOR_RGB2RGBA
Definition imgproc.hpp:538
@ COLOR_RGB2HSV_FULL
Definition imgproc.hpp:620
@ COLOR_BGR2YUV_IYUV
synonym to I420
Definition imgproc.hpp:737
@ COLOR_BGR2HLS_FULL
convert RGB/BGR to HLS (hue lightness saturation) with H range 0..255 if 8 bit image,...
Definition imgproc.hpp:621
@ COLOR_RGB2YUV_YVYU
convert between RGB and YUV YVYU, YUV is 4:2:2 and interleaved as Y1/V/Y2/U, see color_convert_rgb_yu...
Definition imgproc.hpp:858
@ COLOR_BGR2BGR565
convert between RGB/BGR and BGR565 (16-bit images)
Definition imgproc.hpp:564
@ COLOR_BayerGB2BGR_VNG
equivalent to GRBG Bayer pattern
Definition imgproc.hpp:781
@ COLOR_BGRA2BGR555
Definition imgproc.hpp:580
@ COLOR_RGB2GRAY
Definition imgproc.hpp:556
@ COLOR_RGB2YUV_UYNV
synonym to UYVY
Definition imgproc.hpp:846
@ COLOR_RGBA2YUV_Y422
synonym to UYVY
Definition imgproc.hpp:851
@ COLOR_BGR2YUV_I420
convert between BGR and 4:2:0-subsampled YUV I420, three planes in one array: Y, U and V,...
Definition imgproc.hpp:735
@ COLOR_BayerGB2RGB_VNG
equivalent to GRBG Bayer pattern
Definition imgproc.hpp:796
@ COLOR_BayerBG2RGBA
equivalent to RGGB Bayer pattern
Definition imgproc.hpp:837
@ COLOR_YUV2BGR_UYVY
convert between YUV UYVY and BGR, YUV is 4:2:2-subsampled and interleaved as U/Y1/V/Y2,...
Definition imgproc.hpp:686
@ COLOR_Luv2LRGB
Definition imgproc.hpp:637
@ COLOR_BGRA2YUV_I420
convert between BGRA and 4:2:0-subsampled YUV I420, three planes in one array: Y, U and V,...
Definition imgproc.hpp:740
@ COLOR_RGB2YUV_Y422
synonym to UYVY
Definition imgproc.hpp:844
@ COLOR_GRAY2RGBA
Definition imgproc.hpp:560
@ COLOR_BGRA2BGR565
Definition imgproc.hpp:568
@ COLOR_BayerGBRG2BGR_VNG
Definition imgproc.hpp:788
@ COLOR_YUV2BGRA_YUY2
convert between YUV YUY2 and BGRA, YUV is 4:2:2-subsampled and interleaved as Y1/U/Y2/V,...
Definition imgproc.hpp:713
@ COLOR_BayerBGGR2RGB_EA
Definition imgproc.hpp:813
@ COLOR_BGRA2GRAY
Definition imgproc.hpp:561
@ COLOR_YUV2RGBA_YUY2
convert between YUV YUY2 and RGBA, YUV is 4:2:2-subsampled and interleaved as Y1/U/Y2/V,...
Definition imgproc.hpp:712
@ COLOR_RGB2HLS_FULL
Definition imgproc.hpp:622
@ COLOR_BGR5652BGR
Definition imgproc.hpp:566
@ COLOR_RGB2XYZ
Definition imgproc.hpp:589
@ COLOR_BayerRG2BGRA
equivalent to BGGR Bayer pattern
Definition imgproc.hpp:824
@ COLOR_BayerGR2BGR_EA
equivalent to GBRG Bayer pattern
Definition imgproc.hpp:804
@ COLOR_YUV2BGR_IYUV
convert between 4:2:0-subsampled YUV IYUV and BGR, three planes in one array: Y, U and V,...
Definition imgproc.hpp:661
@ COLOR_BayerGR2RGB_EA
equivalent to GBRG Bayer pattern
Definition imgproc.hpp:819
@ COLOR_YUV2BGRA_NV12
convert between 4:2:0-subsampled YUV NV12 and BGRA, two planes (in one or separate arrays): Y and U/V...
Definition imgproc.hpp:652
@ COLOR_RGBA2YUV_YUY2
convert between RGBA and YUV YUY2, YUV is 4:2:2 and interleaved as Y1/U/Y2/V, see color_convert_rgb_y...
Definition imgproc.hpp:865
@ COLOR_BayerBG2BGR_EA
Edge-Aware Demosaicing.
Definition imgproc.hpp:801
@ COLOR_BayerBGGR2RGB_VNG
Definition imgproc.hpp:792
@ COLOR_YUV420p2RGBA
synonym to YV12
Definition imgproc.hpp:673
@ COLOR_YUV420p2RGB
synonym to YV12
Definition imgproc.hpp:664
@ COLOR_RGB2Lab
Definition imgproc.hpp:602
@ COLOR_BayerGR2BGR
equivalent to GBRG Bayer pattern
Definition imgproc.hpp:752
@ COLOR_YUV2BGR_Y422
synonym to UYVY
Definition imgproc.hpp:690
@ COLOR_BayerBGGR2GRAY
Definition imgproc.hpp:776
@ COLOR_BayerRGGB2RGB_VNG
Definition imgproc.hpp:790
@ COLOR_BGR2YUV_YV12
convert between BGR and 4:2:0-subsampled YUV YV12, three planes in one array: Y, V and U,...
Definition imgproc.hpp:744
CV_EXPORTS_W void applyColorMap(InputArray src, OutputArray dst, int colormap)
Applies a GNU Octave/MATLAB equivalent colormap on a given image.
ColormapTypes
GNU Octave/MATLAB equivalent colormaps.
Definition imgproc.hpp:4443
@ COLORMAP_HSV
Definition imgproc.hpp:4453
@ COLORMAP_COOL
Definition imgproc.hpp:4452
@ COLORMAP_TWILIGHT
Definition imgproc.hpp:4462
@ COLORMAP_PARULA
Definition imgproc.hpp:4456
@ COLORMAP_AUTUMN
Definition imgproc.hpp:4444
@ COLORMAP_SUMMER
Definition imgproc.hpp:4450
@ COLORMAP_TURBO
Definition imgproc.hpp:4464
@ COLORMAP_WINTER
Definition imgproc.hpp:4447
@ COLORMAP_PLASMA
Definition imgproc.hpp:4459
@ COLORMAP_PINK
Definition imgproc.hpp:4454
@ COLORMAP_DEEPGREEN
Definition imgproc.hpp:4465
@ COLORMAP_OCEAN
Definition imgproc.hpp:4449
@ COLORMAP_BONE
Definition imgproc.hpp:4445
@ COLORMAP_CIVIDIS
Definition imgproc.hpp:4461
@ COLORMAP_JET
Definition imgproc.hpp:4446
@ COLORMAP_INFERNO
Definition imgproc.hpp:4458
@ COLORMAP_MAGMA
Definition imgproc.hpp:4457
@ COLORMAP_TWILIGHT_SHIFTED
Definition imgproc.hpp:4463
@ COLORMAP_HOT
Definition imgproc.hpp:4455
@ COLORMAP_RAINBOW
Definition imgproc.hpp:4448
@ COLORMAP_VIRIDIS
Definition imgproc.hpp:4460
@ COLORMAP_SPRING
Definition imgproc.hpp:4451
CV_EXPORTS_W void arrowedLine(InputOutputArray img, Point pt1, Point pt2, const Scalar &color, int thickness=1, int line_type=8, int shift=0, double tipLength=0.1)
Draws an arrow segment pointing from the first point to the second one.
MarkerTypes
Definition imgproc.hpp:916
HersheyFonts
Definition imgproc.hpp:900
CV_EXPORTS_W Size getTextSize(const String &text, int fontFace, double fontScale, int thickness, CV_OUT int *baseLine)
Calculates the width and height of a text string.
CV_EXPORTS_W void rectangle(InputOutputArray img, Point pt1, Point pt2, const Scalar &color, int thickness=1, int lineType=LINE_8, int shift=0)
Draws a simple, thick, or filled up-right rectangle.
CV_EXPORTS_W double getFontScaleFromHeight(const int fontFace, const int pixelHeight, const int thickness=1)
Calculates the font-specific size to use to achieve a given height in pixels.
CV_EXPORTS_W void fillConvexPoly(InputOutputArray img, InputArray points, const Scalar &color, int lineType=LINE_8, int shift=0)
Fills a convex polygon.
CV_EXPORTS_W void putText(InputOutputArray img, const String &text, Point org, int fontFace, double fontScale, Scalar color, int thickness=1, int lineType=LINE_8, bool bottomLeftOrigin=false)
Draws a text string.
CV_EXPORTS_W void drawContours(InputOutputArray image, InputArrayOfArrays contours, int contourIdx, const Scalar &color, int thickness=1, int lineType=LINE_8, InputArray hierarchy=noArray(), int maxLevel=INT_MAX, Point offset=Point())
Draws contours outlines or filled contours.
CV_EXPORTS_W void ellipse(InputOutputArray img, Point center, Size axes, double angle, double startAngle, double endAngle, const Scalar &color, int thickness=1, int lineType=LINE_8, int shift=0)
Draws a simple or thick elliptic arc or fills an ellipse sector.
CV_EXPORTS_W void ellipse2Poly(Point center, Size axes, int angle, int arcStart, int arcEnd, int delta, CV_OUT std::vector< Point > &pts)
Approximates an elliptic arc with a polyline.
CV_EXPORTS_W void fillPoly(InputOutputArray img, InputArrayOfArrays pts, const Scalar &color, int lineType=LINE_8, int shift=0, Point offset=Point())
Fills the area bounded by one or more polygons.
CV_EXPORTS_W void polylines(InputOutputArray img, InputArrayOfArrays pts, bool isClosed, const Scalar &color, int thickness=1, int lineType=LINE_8, int shift=0)
Draws several polygonal curves.
CV_EXPORTS bool clipLine(Size imgSize, CV_IN_OUT Point &pt1, CV_IN_OUT Point &pt2)
Clips the line against the image rectangle.
CV_EXPORTS_W void circle(InputOutputArray img, Point center, int radius, const Scalar &color, int thickness=1, int lineType=LINE_8, int shift=0)
Draws a circle.
LineTypes
Definition imgproc.hpp:890
CV_EXPORTS_W void drawMarker(InputOutputArray img, Point position, const Scalar &color, int markerType=MARKER_CROSS, int markerSize=20, int thickness=1, int line_type=8)
Draws a marker on a predefined position in an image.
@ MARKER_SQUARE
A square marker shape.
Definition imgproc.hpp:921
@ MARKER_DIAMOND
A diamond marker shape.
Definition imgproc.hpp:920
@ MARKER_TILTED_CROSS
A 45 degree tilted crosshair marker shape.
Definition imgproc.hpp:918
@ MARKER_TRIANGLE_DOWN
A downwards pointing triangle marker shape.
Definition imgproc.hpp:923
@ MARKER_STAR
A star marker shape, combination of cross and tilted cross.
Definition imgproc.hpp:919
@ MARKER_TRIANGLE_UP
An upwards pointing triangle marker shape.
Definition imgproc.hpp:922
@ MARKER_CROSS
A crosshair marker shape.
Definition imgproc.hpp:917
@ FONT_HERSHEY_PLAIN
small size sans-serif font
Definition imgproc.hpp:902
@ FONT_HERSHEY_TRIPLEX
normal size serif font (more complex than FONT_HERSHEY_COMPLEX)
Definition imgproc.hpp:905
@ FONT_HERSHEY_SCRIPT_SIMPLEX
hand-writing style font
Definition imgproc.hpp:907
@ FONT_HERSHEY_SCRIPT_COMPLEX
more complex variant of FONT_HERSHEY_SCRIPT_SIMPLEX
Definition imgproc.hpp:908
@ FONT_HERSHEY_DUPLEX
normal size sans-serif font (more complex than FONT_HERSHEY_SIMPLEX)
Definition imgproc.hpp:903
@ FONT_HERSHEY_COMPLEX_SMALL
smaller version of FONT_HERSHEY_COMPLEX
Definition imgproc.hpp:906
@ FONT_ITALIC
flag for italic font
Definition imgproc.hpp:909
@ FONT_HERSHEY_COMPLEX
normal size serif font
Definition imgproc.hpp:904
@ FONT_HERSHEY_SIMPLEX
normal size sans-serif font
Definition imgproc.hpp:901
@ LINE_8
8-connected line
Definition imgproc.hpp:893
@ LINE_4
4-connected line
Definition imgproc.hpp:892
@ LINE_AA
antialiased line
Definition imgproc.hpp:894
@ FILLED
Definition imgproc.hpp:891
HoughModes
Variants of a Hough transform.
Definition imgproc.hpp:473
CV_EXPORTS OutputArray int double double InputArray OutputArray int int bool useHarrisDetector
Definition imgproc.hpp:2133
CV_EXPORTS_W void HoughLines(InputArray image, OutputArray lines, double rho, double theta, int threshold, double srn=0, double stn=0, double min_theta=0, double max_theta=CV_PI)
Finds lines in a binary image using the standard Hough transform.
CV_EXPORTS OutputArray int maxCorners
Definition imgproc.hpp:2131
CV_EXPORTS_W void HoughLinesP(InputArray image, OutputArray lines, double rho, double theta, int threshold, double minLineLength=0, double maxLineGap=0)
Finds line segments in a binary image using the probabilistic Hough transform.
CV_EXPORTS_W void goodFeaturesToTrack(InputArray image, OutputArray corners, int maxCorners, double qualityLevel, double minDistance, InputArray mask=noArray(), int blockSize=3, bool useHarrisDetector=false, double k=0.04)
Determines strong corners on an image.
CV_EXPORTS_W void cornerMinEigenVal(InputArray src, OutputArray dst, int blockSize, int ksize=3, int borderType=BORDER_DEFAULT)
Calculates the minimal eigenvalue of gradient matrices for corner detection.
CV_EXPORTS_W void cornerSubPix(InputArray image, InputOutputArray corners, Size winSize, Size zeroZone, TermCriteria criteria)
Refines the corner locations.
CV_EXPORTS_W void cornerEigenValsAndVecs(InputArray src, OutputArray dst, int blockSize, int ksize, int borderType=BORDER_DEFAULT)
Calculates eigenvalues and eigenvectors of image blocks for corner detection.
CV_EXPORTS OutputArray int double qualityLevel
Definition imgproc.hpp:2131
CV_EXPORTS_W void cornerHarris(InputArray src, OutputArray dst, int blockSize, int ksize, double k, int borderType=BORDER_DEFAULT)
Harris corner detector.
CV_EXPORTS OutputArray int double double InputArray OutputArray cornersQuality
Definition imgproc.hpp:2132
CV_EXPORTS OutputArray int double double InputArray mask
Definition imgproc.hpp:2132
CV_EXPORTS_W void HoughLinesPointSet(InputArray point, OutputArray lines, int lines_max, int threshold, double min_rho, double max_rho, double rho_step, double min_theta, double max_theta, double theta_step)
Finds lines in a set of points using the standard Hough transform.
CV_EXPORTS OutputArray int double double InputArray OutputArray int blockSize
Definition imgproc.hpp:2132
CV_EXPORTS_W void HoughCircles(InputArray image, OutputArray circles, int method, double dp, double minDist, double param1=100, double param2=100, int minRadius=0, int maxRadius=0)
Finds circles in a grayscale image using the Hough transform.
CV_EXPORTS OutputArray int double double InputArray OutputArray int int gradientSize
Definition imgproc.hpp:2133
CV_EXPORTS OutputArray int double double InputArray OutputArray int int bool double k
Definition imgproc.hpp:2133
CV_EXPORTS OutputArray int double double minDistance
Definition imgproc.hpp:2131
CV_EXPORTS_W void preCornerDetect(InputArray src, OutputArray dst, int ksize, int borderType=BORDER_DEFAULT)
Calculates a feature map for corner detection.
CV_EXPORTS_W 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)
Creates a smart pointer to a LineSegmentDetector object and initializes it.
LineSegmentDetectorModes
Variants of Line Segment Detector.
Definition imgproc.hpp:493
CV_EXPORTS_W void Canny(InputArray image, OutputArray edges, double threshold1, double threshold2, int apertureSize=3, bool L2gradient=false)
Finds edges in an image using the Canny algorithm .
CV_EXPORTS OutputArray corners
Definition imgproc.hpp:2130
@ HOUGH_MULTI_SCALE
Definition imgproc.hpp:487
@ HOUGH_PROBABILISTIC
Definition imgproc.hpp:484
@ HOUGH_GRADIENT_ALT
variation of HOUGH_GRADIENT to get better accuracy
Definition imgproc.hpp:489
@ HOUGH_GRADIENT
basically 21HT, described in
Definition imgproc.hpp:488
@ HOUGH_STANDARD
Definition imgproc.hpp:479
@ LSD_REFINE_NONE
No refinement applied.
Definition imgproc.hpp:494
@ LSD_REFINE_ADV
Definition imgproc.hpp:496
@ LSD_REFINE_STD
Standard refinement is applied. E.g. breaking arches into smaller straighter line approximations.
Definition imgproc.hpp:495
CV_EXPORTS_W Mat getGaborKernel(Size ksize, double sigma, double theta, double lambd, double gamma, double psi=CV_PI *0.5, int ktype=CV_64F)
Returns Gabor filter coefficients.
CV_EXPORTS_W void pyrDown(InputArray src, OutputArray dst, const Size &dstsize=Size(), int borderType=BORDER_DEFAULT)
Blurs an image and downsamples it.
CV_EXPORTS_W void bilateralFilter(InputArray src, OutputArray dst, int d, double sigmaColor, double sigmaSpace, int borderType=BORDER_DEFAULT)
Applies the bilateral filter to an image.
CV_EXPORTS_W void pyrMeanShiftFiltering(InputArray src, OutputArray dst, double sp, double sr, int maxLevel=1, TermCriteria termcrit=TermCriteria(TermCriteria::MAX_ITER+TermCriteria::EPS, 5, 1))
Performs initial step of meanshift segmentation of an image.
CV_EXPORTS_W void erode(InputArray src, OutputArray dst, InputArray kernel, Point anchor=Point(-1,-1), int iterations=1, int borderType=BORDER_CONSTANT, const Scalar &borderValue=morphologyDefaultBorderValue())
Erodes an image by using a specific structuring element.
CV_EXPORTS_W void getDerivKernels(OutputArray kx, OutputArray ky, int dx, int dy, int ksize, bool normalize=false, int ktype=CV_32F)
Returns filter coefficients for computing spatial image derivatives.
CV_EXPORTS_W void filter2D(InputArray src, OutputArray dst, int ddepth, InputArray kernel, Point anchor=Point(-1,-1), double delta=0, int borderType=BORDER_DEFAULT)
Convolves an image with the kernel.
CV_EXPORTS_W void sepFilter2D(InputArray src, OutputArray dst, int ddepth, InputArray kernelX, InputArray kernelY, Point anchor=Point(-1,-1), double delta=0, int borderType=BORDER_DEFAULT)
Applies a separable linear filter to an image.
CV_EXPORTS_W Mat getStructuringElement(int shape, Size ksize, Point anchor=Point(-1,-1))
Returns a structuring element of the specified size and shape for morphological operations.
CV_EXPORTS_W Mat getGaussianKernel(int ksize, double sigma, int ktype=CV_64F)
Returns Gaussian filter coefficients.
CV_EXPORTS_W void Sobel(InputArray src, OutputArray dst, int ddepth, int dx, int dy, int ksize=3, double scale=1, double delta=0, int borderType=BORDER_DEFAULT)
Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator.
CV_EXPORTS_W void morphologyEx(InputArray src, OutputArray dst, int op, InputArray kernel, Point anchor=Point(-1,-1), int iterations=1, int borderType=BORDER_CONSTANT, const Scalar &borderValue=morphologyDefaultBorderValue())
Performs advanced morphological transformations.
CV_EXPORTS_W void spatialGradient(InputArray src, OutputArray dx, OutputArray dy, int ksize=3, int borderType=BORDER_DEFAULT)
Calculates the first order image derivative in both x and y using a Sobel operator.
CV_EXPORTS_W void stackBlur(InputArray src, OutputArray dst, Size ksize)
Blurs an image using the stackBlur.
MorphTypes
type of morphological operation
Definition imgproc.hpp:216
CV_EXPORTS_W void GaussianBlur(InputArray src, OutputArray dst, Size ksize, double sigmaX, double sigmaY=0, int borderType=BORDER_DEFAULT)
Blurs an image using a Gaussian filter.
static Scalar morphologyDefaultBorderValue()
returns "magic" border value for erosion and dilation. It is automatically transformed to Scalar::all...
Definition imgproc.hpp:1483
CV_EXPORTS_W void boxFilter(InputArray src, OutputArray dst, int ddepth, Size ksize, Point anchor=Point(-1,-1), bool normalize=true, int borderType=BORDER_DEFAULT)
Blurs an image using the box filter.
CV_EXPORTS_W void sqrBoxFilter(InputArray src, OutputArray dst, int ddepth, Size ksize, Point anchor=Point(-1, -1), bool normalize=true, int borderType=BORDER_DEFAULT)
Calculates the normalized sum of squares of the pixel values overlapping the filter.
CV_EXPORTS_W void blur(InputArray src, OutputArray dst, Size ksize, Point anchor=Point(-1,-1), int borderType=BORDER_DEFAULT)
Blurs an image using the normalized box filter.
MorphShapes
shape of the structuring element
Definition imgproc.hpp:234
CV_EXPORTS_W void medianBlur(InputArray src, OutputArray dst, int ksize)
Blurs an image using the median filter.
SpecialFilter
Definition imgproc.hpp:211
CV_EXPORTS_W void pyrUp(InputArray src, OutputArray dst, const Size &dstsize=Size(), int borderType=BORDER_DEFAULT)
Upsamples an image and then blurs it.
CV_EXPORTS_W void Scharr(InputArray src, OutputArray dst, int ddepth, int dx, int dy, double scale=1, double delta=0, int borderType=BORDER_DEFAULT)
Calculates the first x- or y- image derivative using Scharr operator.
CV_EXPORTS_W void dilate(InputArray src, OutputArray dst, InputArray kernel, Point anchor=Point(-1,-1), int iterations=1, int borderType=BORDER_CONSTANT, const Scalar &borderValue=morphologyDefaultBorderValue())
Dilates an image by using a specific structuring element.
CV_EXPORTS void buildPyramid(InputArray src, OutputArrayOfArrays dst, int maxlevel, int borderType=BORDER_DEFAULT)
Constructs the Gaussian pyramid for an image.
CV_EXPORTS_W void Laplacian(InputArray src, OutputArray dst, int ddepth, int ksize=1, double scale=1, double delta=0, int borderType=BORDER_DEFAULT)
Calculates the Laplacian of an image.
@ MORPH_OPEN
Definition imgproc.hpp:219
@ MORPH_BLACKHAT
Definition imgproc.hpp:227
@ MORPH_DILATE
see dilate
Definition imgproc.hpp:218
@ MORPH_CLOSE
Definition imgproc.hpp:221
@ MORPH_GRADIENT
Definition imgproc.hpp:223
@ MORPH_ERODE
see erode
Definition imgproc.hpp:217
@ MORPH_HITMISS
Definition imgproc.hpp:229
@ MORPH_TOPHAT
Definition imgproc.hpp:225
@ MORPH_RECT
a rectangular structuring element:
Definition imgproc.hpp:235
@ MORPH_CROSS
Definition imgproc.hpp:236
@ MORPH_ELLIPSE
Definition imgproc.hpp:238
@ FILTER_SCHARR
Definition imgproc.hpp:212
InputArray int InputArray CV_IN_OUT Ptr< float > OutputArray flow
Definition imgproc.hpp:3388
InputArray int InputArray CV_IN_OUT Ptr< float > lowerBound
Definition imgproc.hpp:3388
CV_EXPORTS_W double compareHist(InputArray H1, InputArray H2, int method)
Compares two histograms.
InputArray int InputArray cost
Definition imgproc.hpp:3387
InputArray signature2
Definition imgproc.hpp:3386
CV_EXPORTS float EMD(InputArray signature1, InputArray signature2, int distType, InputArray cost=noArray(), float *lowerBound=0, OutputArray flow=noArray())
Computes the "minimal work" distance between two weighted point configurations.
HistCompMethods
Definition imgproc.hpp:505
CV_EXPORTS_W void equalizeHist(InputArray src, OutputArray dst)
Equalizes the histogram of a grayscale image.
InputArray int distType
Definition imgproc.hpp:3387
CV_EXPORTS_W Ptr< CLAHE > createCLAHE(double clipLimit=40.0, Size tileGridSize=Size(8, 8))
Creates a smart pointer to a cv::CLAHE class and initializes it.
CV_EXPORTS void calcBackProject(const Mat *images, int nimages, const int *channels, InputArray hist, OutputArray backProject, const float **ranges, double scale=1, bool uniform=true)
Calculates the back projection of a histogram.
CV_EXPORTS void calcHist(const Mat *images, int nimages, const int *channels, InputArray mask, OutputArray hist, int dims, const int *histSize, const float **ranges, bool uniform=true, bool accumulate=false)
Calculates a histogram of a set of arrays.
@ HISTCMP_CHISQR_ALT
Definition imgproc.hpp:526
@ HISTCMP_KL_DIV
Definition imgproc.hpp:529
@ HISTCMP_CORREL
Definition imgproc.hpp:511
@ HISTCMP_CHISQR
Definition imgproc.hpp:514
@ HISTCMP_HELLINGER
Synonym for HISTCMP_BHATTACHARYYA.
Definition imgproc.hpp:522
@ HISTCMP_BHATTACHARYYA
Definition imgproc.hpp:521
@ HISTCMP_INTERSECT
Definition imgproc.hpp:517
CV_EXPORTS_W void distanceTransform(InputArray src, OutputArray dst, int distanceType, int maskSize, int dstType=CV_32F)
OutputArray OutputArray sqsum
Definition imgproc.hpp:2883
OutputArray OutputArray int int maskSize
Definition imgproc.hpp:3565
DistanceTransformLabelTypes
distanceTransform algorithm flags
Definition imgproc.hpp:372
OutputArray OutputArray OutputArray tilted
Definition imgproc.hpp:2883
CV_EXPORTS_W int floodFill(InputOutputArray image, InputOutputArray mask, Point seedPoint, Scalar newVal, CV_OUT Rect *rect=0, Scalar loDiff=Scalar(), Scalar upDiff=Scalar(), int flags=4)
Fills a connected component with the given color.
OutputArray dst
Definition imgproc.hpp:3564
OutputArray OutputArray int int int labelType
Definition imgproc.hpp:3566
CV_EXPORTS_W void integral(InputArray src, OutputArray sum, int sdepth=-1)
CV_EXPORTS_W void adaptiveThreshold(InputArray src, OutputArray dst, double maxValue, int adaptiveMethod, int thresholdType, int blockSize, double C)
Applies an adaptive threshold to an array.
OutputArray OutputArray int distanceType
Definition imgproc.hpp:3565
OutputArray sum
Definition imgproc.hpp:2882
DistanceTypes
Definition imgproc.hpp:304
AdaptiveThresholdTypes
Definition imgproc.hpp:337
OutputArray OutputArray labels
Definition imgproc.hpp:3565
OutputArray OutputArray OutputArray int sdepth
Definition imgproc.hpp:2884
ThresholdTypes
Definition imgproc.hpp:324
DistanceTransformMasks
Mask size for distance transform.
Definition imgproc.hpp:316
FloodFillFlags
floodfill algorithm flags
Definition imgproc.hpp:381
OutputArray OutputArray OutputArray int int sqdepth
Definition imgproc.hpp:2884
CV_EXPORTS_W void blendLinear(InputArray src1, InputArray src2, InputArray weights1, InputArray weights2, OutputArray dst)
GrabCutClasses
class of the pixel in GrabCut algorithm
Definition imgproc.hpp:349
GrabCutModes
GrabCut algorithm flags.
Definition imgproc.hpp:357
@ DIST_LABEL_PIXEL
Definition imgproc.hpp:377
@ DIST_LABEL_CCOMP
Definition imgproc.hpp:375
@ DIST_C
distance = max(|x1-x2|,|y1-y2|)
Definition imgproc.hpp:308
@ DIST_L12
L1-L2 metric: distance = 2(sqrt(1+x*x/2) - 1))
Definition imgproc.hpp:309
@ DIST_USER
User defined distance.
Definition imgproc.hpp:305
@ DIST_WELSCH
distance = c^2/2(1-exp(-(x/c)^2)), c = 2.9846
Definition imgproc.hpp:311
@ DIST_HUBER
distance = |x|<c ? x^2/2 : c(|x|-c/2), c=1.345
Definition imgproc.hpp:312
@ DIST_L1
distance = |x1-x2| + |y1-y2|
Definition imgproc.hpp:306
@ DIST_FAIR
distance = c^2(|x|/c-log(1+|x|/c)), c = 1.3998
Definition imgproc.hpp:310
@ DIST_L2
the simple euclidean distance
Definition imgproc.hpp:307
@ ADAPTIVE_THRESH_MEAN_C
Definition imgproc.hpp:340
@ ADAPTIVE_THRESH_GAUSSIAN_C
Definition imgproc.hpp:345
@ THRESH_TOZERO
Definition imgproc.hpp:328
@ THRESH_BINARY
Definition imgproc.hpp:325
@ THRESH_BINARY_INV
Definition imgproc.hpp:326
@ THRESH_TRIANGLE
flag, use Triangle algorithm to choose the optimal threshold value
Definition imgproc.hpp:332
@ THRESH_TOZERO_INV
Definition imgproc.hpp:329
@ THRESH_MASK
Definition imgproc.hpp:330
@ THRESH_OTSU
flag, use Otsu algorithm to choose the optimal threshold value
Definition imgproc.hpp:331
@ THRESH_TRUNC
Definition imgproc.hpp:327
@ DIST_MASK_3
mask=3
Definition imgproc.hpp:317
@ DIST_MASK_PRECISE
Definition imgproc.hpp:319
@ DIST_MASK_5
mask=5
Definition imgproc.hpp:318
@ FLOODFILL_MASK_ONLY
Definition imgproc.hpp:388
@ FLOODFILL_FIXED_RANGE
Definition imgproc.hpp:384
@ GC_FGD
an obvious foreground (object) pixel
Definition imgproc.hpp:351
@ GC_BGD
an obvious background pixels
Definition imgproc.hpp:350
@ GC_PR_FGD
a possible foreground pixel
Definition imgproc.hpp:353
@ GC_PR_BGD
a possible background pixel
Definition imgproc.hpp:352
@ GC_INIT_WITH_RECT
Definition imgproc.hpp:360
@ GC_EVAL_FREEZE_MODEL
Definition imgproc.hpp:368
@ GC_INIT_WITH_MASK
Definition imgproc.hpp:364
@ GC_EVAL
Definition imgproc.hpp:366
CV_EXPORTS_W void accumulate(InputArray src, InputOutputArray dst, InputArray mask=noArray())
Adds an image to the accumulator image.
CV_EXPORTS_W void divSpectrums(InputArray a, InputArray b, OutputArray c, int flags, bool conjB=false)
Performs the per-element division of the first Fourier spectrum by the second Fourier spectrum.
CV_EXPORTS_W void accumulateSquare(InputArray src, InputOutputArray dst, InputArray mask=noArray())
Adds the square of a source image to the accumulator image.
CV_EXPORTS_W void accumulateWeighted(InputArray src, InputOutputArray dst, double alpha, InputArray mask=noArray())
Updates a running average.
CV_EXPORTS_W void createHanningWindow(OutputArray dst, Size winSize, int type)
This function computes a Hanning window coefficients in two dimensions.
CV_EXPORTS_W void accumulateProduct(InputArray src1, InputArray src2, InputOutputArray dst, InputArray mask=noArray())
Adds the per-element product of two input images to the accumulator image.
CV_EXPORTS_W Point2d phaseCorrelate(InputArray src1, InputArray src2, InputArray window=noArray(), CV_OUT double *response=0)
The function is used to detect translational shifts that occur between two images.
TemplateMatchModes
type of the template matching operation
Definition imgproc.hpp:3834
CV_EXPORTS_W void matchTemplate(InputArray image, InputArray templ, OutputArray result, int method, InputArray mask=noArray())
Compares a template against overlapped image regions.
@ TM_SQDIFF_NORMED
Definition imgproc.hpp:3839
@ TM_CCORR
Definition imgproc.hpp:3846
@ TM_SQDIFF
Definition imgproc.hpp:3835
@ TM_CCOEFF
Definition imgproc.hpp:3857
@ TM_CCOEFF_NORMED
Definition imgproc.hpp:3869
@ TM_CCORR_NORMED
Definition imgproc.hpp:3850
CV_EXPORTS_W void watershed(InputArray image, InputOutputArray markers)
Performs a marker-based image segmentation using the watershed algorithm.
CV_EXPORTS_W void grabCut(InputArray img, InputOutputArray mask, Rect rect, InputOutputArray bgdModel, InputOutputArray fgdModel, int iterCount, int mode=GC_EVAL)
Runs the GrabCut algorithm.
CV_EXPORTS void HuMoments(const Moments &moments, double hu[7])
Calculates seven Hu invariants.
CV_EXPORTS_W bool isContourConvex(InputArray contour)
Tests a contour convexity.
CV_EXPORTS_W void findContours(InputArray image, OutputArrayOfArrays contours, OutputArray hierarchy, int mode, int method, Point offset=Point())
Finds contours in a binary image.
CV_EXPORTS_W void approxPolyDP(InputArray curve, OutputArray approxCurve, double epsilon, bool closed)
Approximates a polygonal curve(s) with the specified precision.
CV_EXPORTS_W void minEnclosingCircle(InputArray points, CV_OUT Point2f &center, CV_OUT float &radius)
Finds a circle of the minimum area enclosing a 2D point set.
CV_EXPORTS_W Ptr< GeneralizedHoughBallard > createGeneralizedHoughBallard()
Creates a smart pointer to a cv::GeneralizedHoughBallard class and initializes it.
CV_EXPORTS_W Rect boundingRect(InputArray array)
Calculates the up-right bounding rectangle of a point set or non-zero pixels of gray-scale image.
CV_EXPORTS_W void boxPoints(RotatedRect box, OutputArray points)
Finds the four vertices of a rotated rect. Useful to draw the rotated rectangle.
CV_EXPORTS_W double contourArea(InputArray contour, bool oriented=false)
Calculates a contour area.
CV_EXPORTS_W RotatedRect fitEllipseAMS(InputArray points)
Fits an ellipse around a set of 2D points.
CV_EXPORTS_W void convexityDefects(InputArray contour, InputArray convexhull, OutputArray convexityDefects)
Finds the convexity defects of a contour.
CV_EXPORTS_W double minEnclosingTriangle(InputArray points, CV_OUT OutputArray triangle)
Finds a triangle of minimum area enclosing a 2D point set and returns its area.
CV_EXPORTS_W double pointPolygonTest(InputArray contour, Point2f pt, bool measureDist)
Performs a point-in-contour test.
ContourApproximationModes
the contour approximation algorithm
Definition imgproc.hpp:439
OutputArray int int ltype
Definition imgproc.hpp:3937
OutputArray int connectivity
Definition imgproc.hpp:3937
CV_EXPORTS_W RotatedRect fitEllipse(InputArray points)
Fits an ellipse around a set of 2D points.
CV_EXPORTS_W Ptr< GeneralizedHoughGuil > createGeneralizedHoughGuil()
Creates a smart pointer to a cv::GeneralizedHoughGuil class and initializes it.
ConnectedComponentsAlgorithmsTypes
connected components algorithm
Definition imgproc.hpp:411
RetrievalModes
mode of the contour retrieval algorithm
Definition imgproc.hpp:422
CV_EXPORTS_W int connectedComponentsWithStats(InputArray image, OutputArray labels, OutputArray stats, OutputArray centroids, int connectivity=8, int ltype=CV_32S)
OutputArray OutputArray stats
Definition imgproc.hpp:3975
CV_EXPORTS_W float intersectConvexConvex(InputArray p1, InputArray p2, OutputArray p12, bool handleNested=true)
Finds intersection of two convex polygons.
OutputArray OutputArray OutputArray centroids
Definition imgproc.hpp:3975
CV_EXPORTS_W RotatedRect fitEllipseDirect(InputArray points)
Fits an ellipse around a set of 2D points.
CV_EXPORTS_W int rotatedRectangleIntersection(const RotatedRect &rect1, const RotatedRect &rect2, OutputArray intersectingRegion)
Finds out if there is any intersection between two rotated rectangles.
RectanglesIntersectTypes
types of intersection between rectangles
Definition imgproc.hpp:881
CV_EXPORTS_W void convexHull(InputArray points, OutputArray hull, bool clockwise=false, bool returnPoints=true)
Finds the convex hull of a point set.
CV_EXPORTS_W int connectedComponents(InputArray image, OutputArray labels, int connectivity=8, int ltype=CV_32S)
CV_EXPORTS_W double matchShapes(InputArray contour1, InputArray contour2, int method, double parameter)
Compares two shapes.
ConnectedComponentsTypes
connected components statistics
Definition imgproc.hpp:397
OutputArray int int int ccltype
Definition imgproc.hpp:3937
CV_EXPORTS_W void findContoursLinkRuns(InputArray image, OutputArrayOfArrays contours, OutputArray hierarchy)
Find contours using link runs algorithm.
CV_EXPORTS_W RotatedRect minAreaRect(InputArray points)
Finds a rotated rectangle of the minimum area enclosing the input 2D point set.
CV_EXPORTS_W void fitLine(InputArray points, OutputArray line, int distType, double param, double reps, double aeps)
Fits a line to a 2D or 3D point set.
CV_EXPORTS_W double arcLength(InputArray curve, bool closed)
Calculates a contour perimeter or a curve length.
ShapeMatchModes
Shape matching methods.
Definition imgproc.hpp:461
@ CHAIN_APPROX_SIMPLE
Definition imgproc.hpp:446
@ CHAIN_APPROX_TC89_KCOS
Definition imgproc.hpp:450
@ CHAIN_APPROX_TC89_L1
Definition imgproc.hpp:448
@ CHAIN_APPROX_NONE
Definition imgproc.hpp:443
@ CCL_SAUF
Same as CCL_WU. It is preferable to use the flag with the name of the algorithm (CCL_SAUF) rather tha...
Definition imgproc.hpp:416
@ CCL_GRANA
BBDT algorithm for 8-way connectivity, SAUF algorithm for 4-way connectivity. The parallel implement...
Definition imgproc.hpp:414
@ CCL_WU
SAUF algorithm for 8-way connectivity, SAUF algorithm for 4-way connectivity. The parallel implement...
Definition imgproc.hpp:413
@ CCL_SPAGHETTI
Same as CCL_BOLELLI. It is preferable to use the flag with the name of the algorithm (CCL_SPAGHETTI) ...
Definition imgproc.hpp:418
@ CCL_DEFAULT
Spaghetti algorithm for 8-way connectivity, Spaghetti4C algorithm for 4-way connectivity.
Definition imgproc.hpp:412
@ CCL_BOLELLI
Spaghetti algorithm for 8-way connectivity, Spaghetti4C algorithm for 4-way connectivity....
Definition imgproc.hpp:415
@ CCL_BBDT
Same as CCL_GRANA. It is preferable to use the flag with the name of the algorithm (CCL_BBDT) rather ...
Definition imgproc.hpp:417
@ RETR_LIST
Definition imgproc.hpp:427
@ RETR_CCOMP
Definition imgproc.hpp:432
@ RETR_EXTERNAL
Definition imgproc.hpp:425
@ RETR_TREE
Definition imgproc.hpp:434
@ RETR_FLOODFILL
Definition imgproc.hpp:435
@ INTERSECT_NONE
No intersection.
Definition imgproc.hpp:882
@ INTERSECT_FULL
One of the rectangle is fully enclosed in the other.
Definition imgproc.hpp:884
@ INTERSECT_PARTIAL
There is a partial intersection.
Definition imgproc.hpp:883
@ CC_STAT_LEFT
Definition imgproc.hpp:398
@ CC_STAT_AREA
The total area (in pixels) of the connected component.
Definition imgproc.hpp:404
@ CC_STAT_TOP
Definition imgproc.hpp:400
@ CC_STAT_MAX
Max enumeration value. Used internally only for memory allocation.
Definition imgproc.hpp:406
@ CC_STAT_HEIGHT
The vertical size of the bounding box.
Definition imgproc.hpp:403
@ CC_STAT_WIDTH
The horizontal size of the bounding box.
Definition imgproc.hpp:402
@ CONTOURS_MATCH_I1
Definition imgproc.hpp:462
@ CONTOURS_MATCH_I3
Definition imgproc.hpp:464
@ CONTOURS_MATCH_I2
Definition imgproc.hpp:463
WarpPolarMode
Specify the polar mapping mode.
Definition imgproc.hpp:285
CV_EXPORTS_W void warpAffine(InputArray src, OutputArray dst, InputArray M, Size dsize, int flags=INTER_LINEAR, int borderMode=BORDER_CONSTANT, const Scalar &borderValue=Scalar())
Applies an affine transformation to an image.
CV_EXPORTS_W Mat getPerspectiveTransform(InputArray src, InputArray dst, int solveMethod=DECOMP_LU)
Calculates a perspective transform from four pairs of the corresponding points.
CV_EXPORTS_W void linearPolar(InputArray src, OutputArray dst, Point2f center, double maxRadius, int flags)
Remaps an image to polar coordinates space.
CV_EXPORTS Mat getAffineTransform(const Point2f src[], const Point2f dst[])
Calculates an affine transform from three pairs of the corresponding points.
CV_EXPORTS_W void remap(InputArray src, OutputArray dst, InputArray map1, InputArray map2, int interpolation, int borderMode=BORDER_CONSTANT, const Scalar &borderValue=Scalar())
Applies a generic geometrical transformation to an image.
InterpolationFlags
interpolation algorithm
Definition imgproc.hpp:248
InterpolationMasks
Definition imgproc.hpp:290
CV_EXPORTS_W void warpPerspective(InputArray src, OutputArray dst, InputArray M, Size dsize, int flags=INTER_LINEAR, int borderMode=BORDER_CONSTANT, const Scalar &borderValue=Scalar())
Applies a perspective transformation to an image.
CV_EXPORTS Matx23d getRotationMatrix2D_(Point2f center, double angle, double scale)
CV_EXPORTS_W void warpPolar(InputArray src, OutputArray dst, Size dsize, Point2f center, double maxRadius, int flags)
Remaps an image to polar or semilog-polar coordinates space.
CV_EXPORTS_W void resize(InputArray src, OutputArray dst, Size dsize, double fx=0, double fy=0, int interpolation=INTER_LINEAR)
Resizes an image.
CV_EXPORTS_W void getRectSubPix(InputArray image, Size patchSize, Point2f center, OutputArray patch, int patchType=-1)
Retrieves a pixel rectangle from an image with sub-pixel accuracy.
CV_EXPORTS_W void convertMaps(InputArray map1, InputArray map2, OutputArray dstmap1, OutputArray dstmap2, int dstmap1type, bool nninterpolation=false)
Converts image transformation maps from one representation to another.
CV_EXPORTS_W void logPolar(InputArray src, OutputArray dst, Point2f center, double M, int flags)
Remaps an image to semilog-polar coordinates space.
CV_EXPORTS_W void invertAffineTransform(InputArray M, OutputArray iM)
Inverts an affine transformation.
CV_EXPORTS_W Mat getRotationMatrix2D(Point2f center, double angle, double scale)
Calculates an affine matrix of 2D rotation.
Definition imgproc.hpp:2582
@ WARP_POLAR_LINEAR
Remaps an image to/from polar space.
Definition imgproc.hpp:286
@ WARP_POLAR_LOG
Remaps an image to/from semilog-polar space.
Definition imgproc.hpp:287
@ INTER_MAX
Definition imgproc.hpp:267
@ INTER_CUBIC
Definition imgproc.hpp:254
@ WARP_RELATIVE_MAP
Definition imgproc.hpp:278
@ WARP_FILL_OUTLIERS
Definition imgproc.hpp:270
@ INTER_NEAREST_EXACT
Definition imgproc.hpp:265
@ WARP_INVERSE_MAP
Definition imgproc.hpp:277
@ INTER_NEAREST
Definition imgproc.hpp:250
@ INTER_LINEAR_EXACT
Definition imgproc.hpp:262
@ INTER_LANCZOS4
Definition imgproc.hpp:260
@ INTER_LINEAR
Definition imgproc.hpp:252
@ INTER_AREA
Definition imgproc.hpp:258
@ INTER_TAB_SIZE
Definition imgproc.hpp:293
@ INTER_BITS2
Definition imgproc.hpp:292
@ INTER_BITS
Definition imgproc.hpp:291
@ INTER_TAB_SIZE2
Definition imgproc.hpp:294
const IplImage * image
Definition videoio_c.h:131
T max(T... args)
T min(T... args)
"black box" representation of the file storage associated with a file on disk.
Definition calib3d.hpp:441
int y
Definition types_c.h:937
int x
Definition types_c.h:936
Definition cvstd_wrapper.hpp:74
Definition imgproc.hpp:1311
Definition imgproc.hpp:1299
int firstEdge
Definition imgproc.hpp:1305
bool isfree() const
bool isvirtual() const
int type
Definition imgproc.hpp:1306
Vertex(Point2f pt, bool isvirtual, int firstEdge=0)
Point2f pt
Definition imgproc.hpp:1307