OpenCV  2.4.13.3
Open Source Computer Vision
imgproc/imgproc.hpp File Reference

Classes

class  cv::BaseRowFilter
 
class  cv::BaseColumnFilter
 
class  cv::BaseFilter
 
class  cv::FilterEngine
 
class  cv::GeneralizedHough
 
class  cv::CLAHE
 
class  cv::Moments
 raster image moments More...
 
class  cv::Subdiv2D
 
struct  cv::Subdiv2D::Vertex
 
struct  cv::Subdiv2D::QuadEdge
 

Namespaces

 cv
 

Enumerations

enum  {
  cv::BORDER_REPLICATE =IPL_BORDER_REPLICATE, cv::BORDER_CONSTANT =IPL_BORDER_CONSTANT, cv::BORDER_REFLECT =IPL_BORDER_REFLECT, cv::BORDER_WRAP =IPL_BORDER_WRAP,
  cv::BORDER_REFLECT_101 =IPL_BORDER_REFLECT_101, cv::BORDER_REFLECT101 =BORDER_REFLECT_101, cv::BORDER_TRANSPARENT =IPL_BORDER_TRANSPARENT, cv::BORDER_DEFAULT =BORDER_REFLECT_101,
  cv::BORDER_ISOLATED =16
}
 various border interpolation methods More...
 
enum  {
  cv::KERNEL_GENERAL =0, cv::KERNEL_SYMMETRICAL =1, cv::KERNEL_ASYMMETRICAL =2, cv::KERNEL_SMOOTH =4,
  cv::KERNEL_INTEGER =8
}
 type of the kernel More...
 
enum  {
  cv::MORPH_ERODE =CV_MOP_ERODE, cv::MORPH_DILATE =CV_MOP_DILATE, cv::MORPH_OPEN =CV_MOP_OPEN, cv::MORPH_CLOSE =CV_MOP_CLOSE,
  cv::MORPH_GRADIENT =CV_MOP_GRADIENT, cv::MORPH_TOPHAT =CV_MOP_TOPHAT, cv::MORPH_BLACKHAT =CV_MOP_BLACKHAT, cv::MORPH_HITMISS
}
 type of morphological operation More...
 
enum  { cv::MORPH_RECT =0, cv::MORPH_CROSS =1, cv::MORPH_ELLIPSE =2 }
 shape of the structuring element More...
 
enum  { cv::GHT_POSITION = 0, cv::GHT_SCALE = 1, cv::GHT_ROTATION = 2 }
 
enum  {
  cv::INTER_NEAREST =CV_INTER_NN, cv::INTER_LINEAR =CV_INTER_LINEAR, cv::INTER_CUBIC =CV_INTER_CUBIC, cv::INTER_AREA =CV_INTER_AREA,
  cv::INTER_LANCZOS4 =CV_INTER_LANCZOS4, cv::INTER_MAX =7, cv::WARP_INVERSE_MAP =CV_WARP_INVERSE_MAP
}
 interpolation algorithm More...
 
enum  { cv::INTER_BITS =5, cv::INTER_BITS2 =INTER_BITS*2, cv::INTER_TAB_SIZE =(1<<INTER_BITS), cv::INTER_TAB_SIZE2 =INTER_TAB_SIZE*INTER_TAB_SIZE }
 
enum  {
  cv::THRESH_BINARY =CV_THRESH_BINARY, cv::THRESH_BINARY_INV =CV_THRESH_BINARY_INV, cv::THRESH_TRUNC =CV_THRESH_TRUNC, cv::THRESH_TOZERO =CV_THRESH_TOZERO,
  cv::THRESH_TOZERO_INV =CV_THRESH_TOZERO_INV, cv::THRESH_MASK =CV_THRESH_MASK, cv::THRESH_OTSU =CV_THRESH_OTSU
}
 type of the threshold operation More...
 
enum  { cv::ADAPTIVE_THRESH_MEAN_C =0, cv::ADAPTIVE_THRESH_GAUSSIAN_C =1 }
 adaptive threshold algorithm More...
 
enum  { cv::PROJ_SPHERICAL_ORTHO = 0, cv::PROJ_SPHERICAL_EQRECT = 1 }
 
enum  { cv::GC_BGD = 0, cv::GC_FGD = 1, cv::GC_PR_BGD = 2, cv::GC_PR_FGD = 3 }
 class of the pixel in GrabCut algorithm More...
 
enum  { cv::GC_INIT_WITH_RECT = 0, cv::GC_INIT_WITH_MASK = 1, cv::GC_EVAL = 2 }
 GrabCut algorithm flags. More...
 
enum  { cv::DIST_LABEL_CCOMP = 0, cv::DIST_LABEL_PIXEL = 1 }
 
enum  { cv::FLOODFILL_FIXED_RANGE = 1 << 16, cv::FLOODFILL_MASK_ONLY = 1 << 17 }
 
enum  {
  cv::COLOR_BGR2BGRA =0, cv::COLOR_RGB2RGBA =COLOR_BGR2BGRA, cv::COLOR_BGRA2BGR =1, cv::COLOR_RGBA2RGB =COLOR_BGRA2BGR,
  cv::COLOR_BGR2RGBA =2, cv::COLOR_RGB2BGRA =COLOR_BGR2RGBA, cv::COLOR_RGBA2BGR =3, cv::COLOR_BGRA2RGB =COLOR_RGBA2BGR,
  cv::COLOR_BGR2RGB =4, cv::COLOR_RGB2BGR =COLOR_BGR2RGB, cv::COLOR_BGRA2RGBA =5, cv::COLOR_RGBA2BGRA =COLOR_BGRA2RGBA,
  cv::COLOR_BGR2GRAY =6, cv::COLOR_RGB2GRAY =7, cv::COLOR_GRAY2BGR =8, cv::COLOR_GRAY2RGB =COLOR_GRAY2BGR,
  cv::COLOR_GRAY2BGRA =9, cv::COLOR_GRAY2RGBA =COLOR_GRAY2BGRA, cv::COLOR_BGRA2GRAY =10, cv::COLOR_RGBA2GRAY =11,
  cv::COLOR_BGR2BGR565 =12, cv::COLOR_RGB2BGR565 =13, cv::COLOR_BGR5652BGR =14, cv::COLOR_BGR5652RGB =15,
  cv::COLOR_BGRA2BGR565 =16, cv::COLOR_RGBA2BGR565 =17, cv::COLOR_BGR5652BGRA =18, cv::COLOR_BGR5652RGBA =19,
  cv::COLOR_GRAY2BGR565 =20, cv::COLOR_BGR5652GRAY =21, cv::COLOR_BGR2BGR555 =22, cv::COLOR_RGB2BGR555 =23,
  cv::COLOR_BGR5552BGR =24, cv::COLOR_BGR5552RGB =25, cv::COLOR_BGRA2BGR555 =26, cv::COLOR_RGBA2BGR555 =27,
  cv::COLOR_BGR5552BGRA =28, cv::COLOR_BGR5552RGBA =29, cv::COLOR_GRAY2BGR555 =30, cv::COLOR_BGR5552GRAY =31,
  cv::COLOR_BGR2XYZ =32, cv::COLOR_RGB2XYZ =33, cv::COLOR_XYZ2BGR =34, cv::COLOR_XYZ2RGB =35,
  cv::COLOR_BGR2YCrCb =36, cv::COLOR_RGB2YCrCb =37, cv::COLOR_YCrCb2BGR =38, cv::COLOR_YCrCb2RGB =39,
  cv::COLOR_BGR2HSV =40, cv::COLOR_RGB2HSV =41, cv::COLOR_BGR2Lab =44, cv::COLOR_RGB2Lab =45,
  cv::COLOR_BayerBG2BGR =46, cv::COLOR_BayerGB2BGR =47, cv::COLOR_BayerRG2BGR =48, cv::COLOR_BayerGR2BGR =49,
  cv::COLOR_BayerBG2RGB =COLOR_BayerRG2BGR, cv::COLOR_BayerGB2RGB =COLOR_BayerGR2BGR, cv::COLOR_BayerRG2RGB =COLOR_BayerBG2BGR, cv::COLOR_BayerGR2RGB =COLOR_BayerGB2BGR,
  cv::COLOR_BGR2Luv =50, cv::COLOR_RGB2Luv =51, cv::COLOR_BGR2HLS =52, cv::COLOR_RGB2HLS =53,
  cv::COLOR_HSV2BGR =54, cv::COLOR_HSV2RGB =55, cv::COLOR_Lab2BGR =56, cv::COLOR_Lab2RGB =57,
  cv::COLOR_Luv2BGR =58, cv::COLOR_Luv2RGB =59, cv::COLOR_HLS2BGR =60, cv::COLOR_HLS2RGB =61,
  cv::COLOR_BayerBG2BGR_VNG =62, cv::COLOR_BayerGB2BGR_VNG =63, cv::COLOR_BayerRG2BGR_VNG =64, cv::COLOR_BayerGR2BGR_VNG =65,
  cv::COLOR_BayerBG2RGB_VNG =COLOR_BayerRG2BGR_VNG, cv::COLOR_BayerGB2RGB_VNG =COLOR_BayerGR2BGR_VNG, cv::COLOR_BayerRG2RGB_VNG =COLOR_BayerBG2BGR_VNG, cv::COLOR_BayerGR2RGB_VNG =COLOR_BayerGB2BGR_VNG,
  cv::COLOR_BGR2HSV_FULL = 66, cv::COLOR_RGB2HSV_FULL = 67, cv::COLOR_BGR2HLS_FULL = 68, cv::COLOR_RGB2HLS_FULL = 69,
  cv::COLOR_HSV2BGR_FULL = 70, cv::COLOR_HSV2RGB_FULL = 71, cv::COLOR_HLS2BGR_FULL = 72, cv::COLOR_HLS2RGB_FULL = 73,
  cv::COLOR_LBGR2Lab = 74, cv::COLOR_LRGB2Lab = 75, cv::COLOR_LBGR2Luv = 76, cv::COLOR_LRGB2Luv = 77,
  cv::COLOR_Lab2LBGR = 78, cv::COLOR_Lab2LRGB = 79, cv::COLOR_Luv2LBGR = 80, cv::COLOR_Luv2LRGB = 81,
  cv::COLOR_BGR2YUV = 82, cv::COLOR_RGB2YUV = 83, cv::COLOR_YUV2BGR = 84, cv::COLOR_YUV2RGB = 85,
  cv::COLOR_BayerBG2GRAY = 86, cv::COLOR_BayerGB2GRAY = 87, cv::COLOR_BayerRG2GRAY = 88, cv::COLOR_BayerGR2GRAY = 89,
  cv::COLOR_YUV2RGB_NV12 = 90, cv::COLOR_YUV2BGR_NV12 = 91, cv::COLOR_YUV2RGB_NV21 = 92, cv::COLOR_YUV2BGR_NV21 = 93,
  cv::COLOR_YUV420sp2RGB = COLOR_YUV2RGB_NV21, cv::COLOR_YUV420sp2BGR = COLOR_YUV2BGR_NV21, cv::COLOR_YUV2RGBA_NV12 = 94, cv::COLOR_YUV2BGRA_NV12 = 95,
  cv::COLOR_YUV2RGBA_NV21 = 96, cv::COLOR_YUV2BGRA_NV21 = 97, cv::COLOR_YUV420sp2RGBA = COLOR_YUV2RGBA_NV21, cv::COLOR_YUV420sp2BGRA = COLOR_YUV2BGRA_NV21,
  cv::COLOR_YUV2RGB_YV12 = 98, cv::COLOR_YUV2BGR_YV12 = 99, cv::COLOR_YUV2RGB_IYUV = 100, cv::COLOR_YUV2BGR_IYUV = 101,
  cv::COLOR_YUV2RGB_I420 = COLOR_YUV2RGB_IYUV, cv::COLOR_YUV2BGR_I420 = COLOR_YUV2BGR_IYUV, cv::COLOR_YUV420p2RGB = COLOR_YUV2RGB_YV12, cv::COLOR_YUV420p2BGR = COLOR_YUV2BGR_YV12,
  cv::COLOR_YUV2RGBA_YV12 = 102, cv::COLOR_YUV2BGRA_YV12 = 103, cv::COLOR_YUV2RGBA_IYUV = 104, cv::COLOR_YUV2BGRA_IYUV = 105,
  cv::COLOR_YUV2RGBA_I420 = COLOR_YUV2RGBA_IYUV, cv::COLOR_YUV2BGRA_I420 = COLOR_YUV2BGRA_IYUV, cv::COLOR_YUV420p2RGBA = COLOR_YUV2RGBA_YV12, cv::COLOR_YUV420p2BGRA = COLOR_YUV2BGRA_YV12,
  cv::COLOR_YUV2GRAY_420 = 106, cv::COLOR_YUV2GRAY_NV21 = COLOR_YUV2GRAY_420, cv::COLOR_YUV2GRAY_NV12 = COLOR_YUV2GRAY_420, cv::COLOR_YUV2GRAY_YV12 = COLOR_YUV2GRAY_420,
  cv::COLOR_YUV2GRAY_IYUV = COLOR_YUV2GRAY_420, cv::COLOR_YUV2GRAY_I420 = COLOR_YUV2GRAY_420, cv::COLOR_YUV420sp2GRAY = COLOR_YUV2GRAY_420, cv::COLOR_YUV420p2GRAY = COLOR_YUV2GRAY_420,
  cv::COLOR_YUV2RGB_UYVY = 107, cv::COLOR_YUV2BGR_UYVY = 108, cv::COLOR_YUV2RGB_Y422 = COLOR_YUV2RGB_UYVY, cv::COLOR_YUV2BGR_Y422 = COLOR_YUV2BGR_UYVY,
  cv::COLOR_YUV2RGB_UYNV = COLOR_YUV2RGB_UYVY, cv::COLOR_YUV2BGR_UYNV = COLOR_YUV2BGR_UYVY, cv::COLOR_YUV2RGBA_UYVY = 111, cv::COLOR_YUV2BGRA_UYVY = 112,
  cv::COLOR_YUV2RGBA_Y422 = COLOR_YUV2RGBA_UYVY, cv::COLOR_YUV2BGRA_Y422 = COLOR_YUV2BGRA_UYVY, cv::COLOR_YUV2RGBA_UYNV = COLOR_YUV2RGBA_UYVY, cv::COLOR_YUV2BGRA_UYNV = COLOR_YUV2BGRA_UYVY,
  cv::COLOR_YUV2RGB_YUY2 = 115, cv::COLOR_YUV2BGR_YUY2 = 116, cv::COLOR_YUV2RGB_YVYU = 117, cv::COLOR_YUV2BGR_YVYU = 118,
  cv::COLOR_YUV2RGB_YUYV = COLOR_YUV2RGB_YUY2, cv::COLOR_YUV2BGR_YUYV = COLOR_YUV2BGR_YUY2, cv::COLOR_YUV2RGB_YUNV = COLOR_YUV2RGB_YUY2, cv::COLOR_YUV2BGR_YUNV = COLOR_YUV2BGR_YUY2,
  cv::COLOR_YUV2RGBA_YUY2 = 119, cv::COLOR_YUV2BGRA_YUY2 = 120, cv::COLOR_YUV2RGBA_YVYU = 121, cv::COLOR_YUV2BGRA_YVYU = 122,
  cv::COLOR_YUV2RGBA_YUYV = COLOR_YUV2RGBA_YUY2, cv::COLOR_YUV2BGRA_YUYV = COLOR_YUV2BGRA_YUY2, cv::COLOR_YUV2RGBA_YUNV = COLOR_YUV2RGBA_YUY2, cv::COLOR_YUV2BGRA_YUNV = COLOR_YUV2BGRA_YUY2,
  cv::COLOR_YUV2GRAY_UYVY = 123, cv::COLOR_YUV2GRAY_YUY2 = 124, cv::COLOR_YUV2GRAY_Y422 = COLOR_YUV2GRAY_UYVY, cv::COLOR_YUV2GRAY_UYNV = COLOR_YUV2GRAY_UYVY,
  cv::COLOR_YUV2GRAY_YVYU = COLOR_YUV2GRAY_YUY2, cv::COLOR_YUV2GRAY_YUYV = COLOR_YUV2GRAY_YUY2, cv::COLOR_YUV2GRAY_YUNV = COLOR_YUV2GRAY_YUY2, cv::COLOR_RGBA2mRGBA = 125,
  cv::COLOR_mRGBA2RGBA = 126, cv::COLOR_RGB2YUV_I420 = 127, cv::COLOR_BGR2YUV_I420 = 128, cv::COLOR_RGB2YUV_IYUV = COLOR_RGB2YUV_I420,
  cv::COLOR_BGR2YUV_IYUV = COLOR_BGR2YUV_I420, cv::COLOR_RGBA2YUV_I420 = 129, cv::COLOR_BGRA2YUV_I420 = 130, cv::COLOR_RGBA2YUV_IYUV = COLOR_RGBA2YUV_I420,
  cv::COLOR_BGRA2YUV_IYUV = COLOR_BGRA2YUV_I420, cv::COLOR_RGB2YUV_YV12 = 131, cv::COLOR_BGR2YUV_YV12 = 132, cv::COLOR_RGBA2YUV_YV12 = 133,
  cv::COLOR_BGRA2YUV_YV12 = 134, cv::COLOR_COLORCVT_MAX = 135
}
 
enum  {
  cv::TM_SQDIFF =0, cv::TM_SQDIFF_NORMED =1, cv::TM_CCORR =2, cv::TM_CCORR_NORMED =3,
  cv::TM_CCOEFF =4, cv::TM_CCOEFF_NORMED =5
}
 type of the template matching operation More...
 
enum  {
  cv::RETR_EXTERNAL =CV_RETR_EXTERNAL, cv::RETR_LIST =CV_RETR_LIST, cv::RETR_CCOMP =CV_RETR_CCOMP, cv::RETR_TREE =CV_RETR_TREE,
  cv::RETR_FLOODFILL =CV_RETR_FLOODFILL
}
 mode of the contour retrieval algorithm More...
 
enum  { cv::CHAIN_APPROX_NONE =CV_CHAIN_APPROX_NONE, cv::CHAIN_APPROX_SIMPLE =CV_CHAIN_APPROX_SIMPLE, cv::CHAIN_APPROX_TC89_L1 =CV_CHAIN_APPROX_TC89_L1, cv::CHAIN_APPROX_TC89_KCOS =CV_CHAIN_APPROX_TC89_KCOS }
 the contour approximation algorithm More...
 

Functions

int cv::borderInterpolate (int p, int len, int borderType)
 1D interpolation function: returns coordinate of the "donor" pixel for the specified location p. More...
 
int cv::getKernelType (InputArray kernel, Point anchor)
 returns type (one of KERNEL_*) of 1D or 2D kernel specified by its coefficients. More...
 
Ptr< BaseRowFilter > cv::getLinearRowFilter (int srcType, int bufType, InputArray kernel, int anchor, int symmetryType)
 returns the primitive row filter with the specified kernel More...
 
Ptr< BaseColumnFilter > cv::getLinearColumnFilter (int bufType, int dstType, InputArray kernel, int anchor, int symmetryType, double delta=0, int bits=0)
 returns the primitive column filter with the specified kernel More...
 
Ptr< BaseFilter > cv::getLinearFilter (int srcType, int dstType, InputArray kernel, Point anchor=Point(-1,-1), double delta=0, int bits=0)
 returns 2D filter with the specified kernel More...
 
Ptr< FilterEngine > cv::createSeparableLinearFilter (int srcType, int dstType, InputArray rowKernel, InputArray columnKernel, Point anchor=Point(-1,-1), double delta=0, int rowBorderType=BORDER_DEFAULT, int columnBorderType=-1, const Scalar &borderValue=Scalar())
 returns the separable linear filter engine More...
 
Ptr< FilterEngine > cv::createLinearFilter (int srcType, int dstType, InputArray kernel, Point _anchor=Point(-1,-1), double delta=0, int rowBorderType=BORDER_DEFAULT, int columnBorderType=-1, const Scalar &borderValue=Scalar())
 returns the non-separable linear filter engine More...
 
Mat cv::getGaussianKernel (int ksize, double sigma, int ktype=CV_64F)
 returns the Gaussian kernel with the specified parameters More...
 
Ptr< FilterEngine > cv::createGaussianFilter (int type, Size ksize, double sigma1, double sigma2=0, int borderType=BORDER_DEFAULT)
 returns the Gaussian filter engine More...
 
void cv::getDerivKernels (OutputArray kx, OutputArray ky, int dx, int dy, int ksize, bool normalize=false, int ktype=CV_32F)
 initializes kernels of the generalized Sobel operator More...
 
Ptr< FilterEngine > cv::createDerivFilter (int srcType, int dstType, int dx, int dy, int ksize, int borderType=BORDER_DEFAULT)
 returns filter engine for the generalized Sobel operator More...
 
Ptr< BaseRowFilter > cv::getRowSumFilter (int srcType, int sumType, int ksize, int anchor=-1)
 returns horizontal 1D box filter More...
 
Ptr< BaseColumnFilter > cv::getColumnSumFilter (int sumType, int dstType, int ksize, int anchor=-1, double scale=1)
 returns vertical 1D box filter More...
 
Ptr< FilterEngine > cv::createBoxFilter (int srcType, int dstType, Size ksize, Point anchor=Point(-1,-1), bool normalize=true, int borderType=BORDER_DEFAULT)
 returns box filter engine More...
 
Mat cv::getGaborKernel (Size ksize, double sigma, double theta, double lambd, double gamma, double psi=CV_PI *0.5, int ktype=CV_64F)
 returns the Gabor kernel with the specified parameters More...
 
Ptr< BaseRowFilter > cv::getMorphologyRowFilter (int op, int type, int ksize, int anchor=-1)
 returns horizontal 1D morphological filter More...
 
Ptr< BaseColumnFilter > cv::getMorphologyColumnFilter (int op, int type, int ksize, int anchor=-1)
 returns vertical 1D morphological filter More...
 
Ptr< BaseFilter > cv::getMorphologyFilter (int op, int type, InputArray kernel, Point anchor=Point(-1,-1))
 returns 2D morphological filter More...
 
Ptr< FilterEngine > cv::createMorphologyFilter (int op, int type, InputArray kernel, Point anchor=Point(-1,-1), int rowBorderType=BORDER_CONSTANT, int columnBorderType=-1, const Scalar &borderValue=morphologyDefaultBorderValue())
 returns morphological filter engine. Only MORPH_ERODE and MORPH_DILATE are supported. More...
 
Mat cv::getStructuringElement (int shape, Size ksize, Point anchor=Point(-1,-1))
 returns structuring element of the specified shape and size More...
 
void cv::copyMakeBorder (InputArray src, OutputArray dst, int top, int bottom, int left, int right, int borderType, const Scalar &value=Scalar())
 copies 2D array to a larger destination array with extrapolation of the outer part of src using the specified border mode More...
 
void cv::medianBlur (InputArray src, OutputArray dst, int ksize)
 smooths the image using median filter. More...
 
void cv::GaussianBlur (InputArray src, OutputArray dst, Size ksize, double sigmaX, double sigmaY=0, int borderType=BORDER_DEFAULT)
 smooths the image using Gaussian filter. More...
 
void cv::bilateralFilter (InputArray src, OutputArray dst, int d, double sigmaColor, double sigmaSpace, int borderType=BORDER_DEFAULT)
 smooths the image using bilateral filter More...
 
void cv::adaptiveBilateralFilter (InputArray src, OutputArray dst, Size ksize, double sigmaSpace, double maxSigmaColor=20.0, Point anchor=Point(-1, -1), int borderType=BORDER_DEFAULT)
 smooths the image using adaptive bilateral filter More...
 
void cv::boxFilter (InputArray src, OutputArray dst, int ddepth, Size ksize, Point anchor=Point(-1,-1), bool normalize=true, int borderType=BORDER_DEFAULT)
 smooths the image using the box filter. Each pixel is processed in O(1) time More...
 
void cv::blur (InputArray src, OutputArray dst, Size ksize, Point anchor=Point(-1,-1), int borderType=BORDER_DEFAULT)
 a synonym for normalized box filter More...
 
void cv::filter2D (InputArray src, OutputArray dst, int ddepth, InputArray kernel, Point anchor=Point(-1,-1), double delta=0, int borderType=BORDER_DEFAULT)
 applies non-separable 2D linear filter to the image More...
 
void cv::sepFilter2D (InputArray src, OutputArray dst, int ddepth, InputArray kernelX, InputArray kernelY, Point anchor=Point(-1,-1), double delta=0, int borderType=BORDER_DEFAULT)
 applies separable 2D linear filter to the image More...
 
void cv::Sobel (InputArray src, OutputArray dst, int ddepth, int dx, int dy, int ksize=3, double scale=1, double delta=0, int borderType=BORDER_DEFAULT)
 applies generalized Sobel operator to the image More...
 
void cv::Scharr (InputArray src, OutputArray dst, int ddepth, int dx, int dy, double scale=1, double delta=0, int borderType=BORDER_DEFAULT)
 applies the vertical or horizontal Scharr operator to the image More...
 
void cv::Laplacian (InputArray src, OutputArray dst, int ddepth, int ksize=1, double scale=1, double delta=0, int borderType=BORDER_DEFAULT)
 applies Laplacian operator to the image More...
 
void cv::Canny (InputArray image, OutputArray edges, double threshold1, double threshold2, int apertureSize=3, bool L2gradient=false)
 applies Canny edge detector and produces the edge map. More...
 
void cv::cornerMinEigenVal (InputArray src, OutputArray dst, int blockSize, int ksize=3, int borderType=BORDER_DEFAULT)
 computes minimum eigen value of 2x2 derivative covariation matrix at each pixel - the cornerness criteria More...
 
void cv::cornerHarris (InputArray src, OutputArray dst, int blockSize, int ksize, double k, int borderType=BORDER_DEFAULT)
 computes Harris cornerness criteria at each image pixel More...
 
void cv::eigen2x2 (const float *a, float *e, int n)
 
void cv::cornerEigenValsAndVecs (InputArray src, OutputArray dst, int blockSize, int ksize, int borderType=BORDER_DEFAULT)
 computes both eigenvalues and the eigenvectors of 2x2 derivative covariation matrix at each pixel. The output is stored as 6-channel matrix. More...
 
void cv::preCornerDetect (InputArray src, OutputArray dst, int ksize, int borderType=BORDER_DEFAULT)
 computes another complex cornerness criteria at each pixel More...
 
void cv::cornerSubPix (InputArray image, InputOutputArray corners, Size winSize, Size zeroZone, TermCriteria criteria)
 adjusts the corner locations with sub-pixel accuracy to maximize the certain cornerness criteria More...
 
void cv::goodFeaturesToTrack (InputArray image, OutputArray corners, int maxCorners, double qualityLevel, double minDistance, InputArray mask=noArray(), int blockSize=3, bool useHarrisDetector=false, double k=0.04)
 finds the strong enough corners where the cornerMinEigenVal() or cornerHarris() report the local maxima More...
 
void cv::HoughLines (InputArray image, OutputArray lines, double rho, double theta, int threshold, double srn=0, double stn=0)
 finds lines in the black-n-white image using the standard or pyramid Hough transform More...
 
void cv::HoughLinesP (InputArray image, OutputArray lines, double rho, double theta, int threshold, double minLineLength=0, double maxLineGap=0)
 finds line segments in the black-n-white image using probabilistic Hough transform More...
 
void cv::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 the grayscale image using 2+1 gradient Hough transform More...
 
void cv::erode (InputArray src, OutputArray dst, InputArray kernel, Point anchor=Point(-1,-1), int iterations=1, int borderType=BORDER_CONSTANT, const Scalar &borderValue=morphologyDefaultBorderValue())
 erodes the image (applies the local minimum operator) More...
 
void cv::dilate (InputArray src, OutputArray dst, InputArray kernel, Point anchor=Point(-1,-1), int iterations=1, int borderType=BORDER_CONSTANT, const Scalar &borderValue=morphologyDefaultBorderValue())
 dilates the image (applies the local maximum operator) More...
 
void cv::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())
 applies an advanced morphological operation to the image More...
 
void cv::resize (InputArray src, OutputArray dst, Size dsize, double fx=0, double fy=0, int interpolation=INTER_LINEAR)
 resizes the image More...
 
void cv::warpAffine (InputArray src, OutputArray dst, InputArray M, Size dsize, int flags=INTER_LINEAR, int borderMode=BORDER_CONSTANT, const Scalar &borderValue=Scalar())
 warps the image using affine transformation More...
 
void cv::warpPerspective (InputArray src, OutputArray dst, InputArray M, Size dsize, int flags=INTER_LINEAR, int borderMode=BORDER_CONSTANT, const Scalar &borderValue=Scalar())
 warps the image using perspective transformation More...
 
void cv::remap (InputArray src, OutputArray dst, InputArray map1, InputArray map2, int interpolation, int borderMode=BORDER_CONSTANT, const Scalar &borderValue=Scalar())
 warps the image using the precomputed maps. The maps are stored in either floating-point or integer fixed-point format More...
 
void cv::convertMaps (InputArray map1, InputArray map2, OutputArray dstmap1, OutputArray dstmap2, int dstmap1type, bool nninterpolation=false)
 converts maps for remap from floating-point to fixed-point format or backwards More...
 
Mat cv::getRotationMatrix2D (Point2f center, double angle, double scale)
 returns 2x3 affine transformation matrix for the planar rotation. More...
 
Mat cv::getPerspectiveTransform (const Point2f src[], const Point2f dst[])
 returns 3x3 perspective transformation for the corresponding 4 point pairs. More...
 
Mat cv::getAffineTransform (const Point2f src[], const Point2f dst[])
 returns 2x3 affine transformation for the corresponding 3 point pairs. More...
 
void cv::invertAffineTransform (InputArray M, OutputArray iM)
 computes 2x3 affine transformation matrix that is inverse to the specified 2x3 affine transformation. More...
 
Mat cv::getPerspectiveTransform (InputArray src, InputArray dst)
 
Mat cv::getAffineTransform (InputArray src, InputArray dst)
 
void cv::getRectSubPix (InputArray image, Size patchSize, Point2f center, OutputArray patch, int patchType=-1)
 extracts rectangle from the image at sub-pixel location More...
 
void cv::integral (InputArray src, OutputArray sum, int sdepth=-1)
 computes the integral image More...
 
 cv::CV_EXPORTS_AS (integral2) void integral(InputArray src
 computes the integral image and integral for the squared image More...
 
 cv::CV_EXPORTS_AS (integral3) void integral(InputArray src
 computes the integral image, integral for the squared image and the tilted integral image More...
 
void cv::accumulate (InputArray src, InputOutputArray dst, InputArray mask=noArray())
 adds image to the accumulator (dst += src). Unlike cv::add, dst and src can have different types. More...
 
void cv::accumulateSquare (InputArray src, InputOutputArray dst, InputArray mask=noArray())
 adds squared src image to the accumulator (dst += src*src). More...
 
void cv::accumulateProduct (InputArray src1, InputArray src2, InputOutputArray dst, InputArray mask=noArray())
 adds product of the 2 images to the accumulator (dst += src1*src2). More...
 
void cv::accumulateWeighted (InputArray src, InputOutputArray dst, double alpha, InputArray mask=noArray())
 updates the running average (dst = dst*(1-alpha) + src*alpha) More...
 
double cv::PSNR (InputArray src1, InputArray src2)
 computes PSNR image/video quality metric More...
 
Point2d cv::phaseCorrelate (InputArray src1, InputArray src2, InputArray window=noArray())
 
Point2d cv::phaseCorrelateRes (InputArray src1, InputArray src2, InputArray window, CV_OUT double *response=0)
 
void cv::createHanningWindow (OutputArray dst, Size winSize, int type)
 
double cv::threshold (InputArray src, OutputArray dst, double thresh, double maxval, int type)
 applies fixed threshold to the image More...
 
void cv::adaptiveThreshold (InputArray src, OutputArray dst, double maxValue, int adaptiveMethod, int thresholdType, int blockSize, double C)
 applies variable (adaptive) threshold to the image More...
 
void cv::pyrDown (InputArray src, OutputArray dst, const Size &dstsize=Size(), int borderType=BORDER_DEFAULT)
 smooths and downsamples the image More...
 
void cv::pyrUp (InputArray src, OutputArray dst, const Size &dstsize=Size(), int borderType=BORDER_DEFAULT)
 upsamples and smoothes the image More...
 
void cv::buildPyramid (InputArray src, OutputArrayOfArrays dst, int maxlevel, int borderType=BORDER_DEFAULT)
 builds the gaussian pyramid using pyrDown() as a basic operation More...
 
void cv::undistort (InputArray src, OutputArray dst, InputArray cameraMatrix, InputArray distCoeffs, InputArray newCameraMatrix=noArray())
 corrects lens distortion for the given camera matrix and distortion coefficients More...
 
void cv::initUndistortRectifyMap (InputArray cameraMatrix, InputArray distCoeffs, InputArray R, InputArray newCameraMatrix, Size size, int m1type, OutputArray map1, OutputArray map2)
 initializes maps for cv::remap() to correct lens distortion and optionally rectify the image More...
 
float cv::initWideAngleProjMap (InputArray cameraMatrix, InputArray distCoeffs, Size imageSize, int destImageWidth, int m1type, OutputArray map1, OutputArray map2, int projType=PROJ_SPHERICAL_EQRECT, double alpha=0)
 initializes maps for cv::remap() for wide-angle More...
 
Mat cv::getDefaultNewCameraMatrix (InputArray cameraMatrix, Size imgsize=Size(), bool centerPrincipalPoint=false)
 returns the default new camera matrix (by default it is the same as cameraMatrix unless centerPricipalPoint=true) More...
 
void cv::undistortPoints (InputArray src, OutputArray dst, InputArray cameraMatrix, InputArray distCoeffs, InputArray R=noArray(), InputArray P=noArray())
 returns points' coordinates after lens distortion correction More...
 
void cv::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)
 computes the joint dense histogram for a set of images. More...
 
void cv::calcHist (const Mat *images, int nimages, const int *channels, InputArray mask, SparseMat &hist, int dims, const int *histSize, const float **ranges, bool uniform=true, bool accumulate=false)
 computes the joint sparse histogram for a set of images. More...
 
void cv::calcHist (InputArrayOfArrays images, const vector< int > &channels, InputArray mask, OutputArray hist, const vector< int > &histSize, const vector< float > &ranges, bool accumulate=false)
 
void cv::calcBackProject (const Mat *images, int nimages, const int *channels, InputArray hist, OutputArray backProject, const float **ranges, double scale=1, bool uniform=true)
 computes back projection for the set of images More...
 
void cv::calcBackProject (const Mat *images, int nimages, const int *channels, const SparseMat &hist, OutputArray backProject, const float **ranges, double scale=1, bool uniform=true)
 computes back projection for the set of images More...
 
void cv::calcBackProject (InputArrayOfArrays images, const vector< int > &channels, InputArray hist, OutputArray dst, const vector< float > &ranges, double scale)
 
double cv::compareHist (InputArray H1, InputArray H2, int method)
 compares two histograms stored in dense arrays More...
 
double cv::compareHist (const SparseMat &H1, const SparseMat &H2, int method)
 compares two histograms stored in sparse arrays More...
 
void cv::equalizeHist (InputArray src, OutputArray dst)
 normalizes the grayscale image brightness and contrast by normalizing its histogram More...
 
Ptr< CLAHE > cv::createCLAHE (double clipLimit=40.0, Size tileGridSize=Size(8, 8))
 
float cv::EMD (InputArray signature1, InputArray signature2, int distType, InputArray cost=noArray(), float *lowerBound=0, OutputArray flow=noArray())
 
void cv::watershed (InputArray image, InputOutputArray markers)
 segments the image using watershed algorithm More...
 
void cv::pyrMeanShiftFiltering (InputArray src, OutputArray dst, double sp, double sr, int maxLevel=1, TermCriteria termcrit=TermCriteria(TermCriteria::MAX_ITER+TermCriteria::EPS, 5, 1))
 filters image using meanshift algorithm More...
 
void cv::grabCut (InputArray img, InputOutputArray mask, Rect rect, InputOutputArray bgdModel, InputOutputArray fgdModel, int iterCount, int mode=GC_EVAL)
 segments the image using GrabCut algorithm More...
 
 cv::CV_EXPORTS_AS (distanceTransformWithLabels) void distanceTransform(InputArray src
 builds the discrete Voronoi diagram More...
 
void cv::distanceTransform (InputArray src, OutputArray dst, int distanceType, int maskSize)
 computes the distance transform map More...
 
int cv::floodFill (InputOutputArray image, Point seedPoint, Scalar newVal, CV_OUT Rect *rect=0, Scalar loDiff=Scalar(), Scalar upDiff=Scalar(), int flags=4)
 fills the semi-uniform image region starting from the specified seed point More...
 
int cv::floodFill (InputOutputArray image, InputOutputArray mask, Point seedPoint, Scalar newVal, CV_OUT Rect *rect=0, Scalar loDiff=Scalar(), Scalar upDiff=Scalar(), int flags=4)
 fills the semi-uniform image region and/or the mask starting from the specified seed point More...
 
void cv::cvtColor (InputArray src, OutputArray dst, int code, int dstCn=0)
 converts image from one color space to another More...
 
Moments cv::moments (InputArray array, bool binaryImage=false)
 computes moments of the rasterized shape or a vector of points More...
 
void cv::HuMoments (const Moments &moments, double hu[7])
 computes 7 Hu invariants from the moments More...
 
void cv::HuMoments (const Moments &m, CV_OUT OutputArray hu)
 
void cv::matchTemplate (InputArray image, InputArray templ, OutputArray result, int method)
 computes the proximity map for the raster template and the image where the template is searched for More...
 
void cv::findContours (InputOutputArray image, OutputArrayOfArrays contours, OutputArray hierarchy, int mode, int method, Point offset=Point())
 retrieves contours and the hierarchical information from black-n-white image. More...
 
void cv::findContours (InputOutputArray image, OutputArrayOfArrays contours, int mode, int method, Point offset=Point())
 retrieves contours from black-n-white image. More...
 
void cv::drawContours (InputOutputArray image, InputArrayOfArrays contours, int contourIdx, const Scalar &color, int thickness=1, int lineType=8, InputArray hierarchy=noArray(), int maxLevel=INT_MAX, Point offset=Point())
 draws contours in the image More...
 
void cv::approxPolyDP (InputArray curve, OutputArray approxCurve, double epsilon, bool closed)
 approximates contour or a curve using Douglas-Peucker algorithm More...
 
double cv::arcLength (InputArray curve, bool closed)
 computes the contour perimeter (closed=true) or a curve length More...
 
Rect cv::boundingRect (InputArray points)
 computes the bounding rectangle for a contour More...
 
double cv::contourArea (InputArray contour, bool oriented=false)
 computes the contour area More...
 
RotatedRect cv::minAreaRect (InputArray points)
 computes the minimal rotated rectangle for a set of points More...
 
void cv::minEnclosingCircle (InputArray points, CV_OUT Point2f &center, CV_OUT float &radius)
 computes the minimal enclosing circle for a set of points More...
 
double cv::matchShapes (InputArray contour1, InputArray contour2, int method, double parameter)
 matches two contours using one of the available algorithms More...
 
void cv::convexHull (InputArray points, OutputArray hull, bool clockwise=false, bool returnPoints=true)
 computes convex hull for a set of 2D points. More...
 
void cv::convexityDefects (InputArray contour, InputArray convexhull, OutputArray convexityDefects)
 computes the contour convexity defects More...
 
bool cv::isContourConvex (InputArray contour)
 returns true if the contour is convex. Does not support contours with self-intersection More...
 
float cv::intersectConvexConvex (InputArray _p1, InputArray _p2, OutputArray _p12, bool handleNested=true)
 finds intersection of two convex polygons More...
 
RotatedRect cv::fitEllipse (InputArray points)
 fits ellipse to the set of 2D points More...
 
void cv::fitLine (InputArray points, OutputArray line, int distType, double param, double reps, double aeps)
 fits line to the set of 2D points using M-estimator algorithm More...
 
double cv::pointPolygonTest (InputArray contour, Point2f pt, bool measureDist)
 checks if the point is inside the contour. Optionally computes the signed distance from the point to the contour boundary More...
 

Variables

OutputArray cv::sum
 
OutputArray OutputArray cv::sqsum
 
OutputArray OutputArray int cv::sdepth =-1 )
 
OutputArray OutputArray OutputArray cv::tilted
 
OutputArray cv::dst
 
OutputArray OutputArray cv::labels
 
OutputArray OutputArray int cv::distanceType
 
OutputArray OutputArray int int cv::maskSize
 
OutputArray OutputArray int int int cv::labelType =DIST_LABEL_CCOMP )