OpenCV  3.4.10
Open Source Computer Vision
Classes | Enumerations | Functions
cv::cuda Namespace Reference

Classes

class  BackgroundSubtractorFGD
 The class discriminates between foreground and background pixels by building and maintaining a model of the background. More...
 
class  BackgroundSubtractorGMG
 Background/Foreground Segmentation Algorithm. More...
 
class  BackgroundSubtractorMOG
 Gaussian Mixture-based Background/Foreground Segmentation Algorithm. More...
 
class  BackgroundSubtractorMOG2
 Gaussian Mixture-based Background/Foreground Segmentation Algorithm. More...
 
class  BroxOpticalFlow
 Class computing the optical flow for two images using Brox et al Optical Flow algorithm ([30]). More...
 
class  BufferPool
 BufferPool for use with CUDA streams. More...
 
class  CannyEdgeDetector
 Base class for Canny Edge Detector. : More...
 
class  CascadeClassifier
 Cascade classifier class used for object detection. Supports HAAR and LBP cascades. : More...
 
class  CLAHE
 Base class for Contrast Limited Adaptive Histogram Equalization. : More...
 
class  Convolution
 Base class for convolution (or cross-correlation) operator. : More...
 
class  CornernessCriteria
 Base class for Cornerness Criteria computation. : More...
 
class  CornersDetector
 Base class for Corners Detector. : More...
 
class  DenseOpticalFlow
 Base interface for dense optical flow algorithms. More...
 
class  DensePyrLKOpticalFlow
 Class used for calculating a dense optical flow. More...
 
class  DescriptorMatcher
 Abstract base class for matching keypoint descriptors. More...
 
class  DeviceInfo
 Class providing functionality for querying the specified GPU properties. More...
 
class  DFT
 Base class for DFT operator as a cv::Algorithm. : More...
 
class  DisparityBilateralFilter
 Class refining a disparity map using joint bilateral filtering. : More...
 
class  Event
 
struct  EventAccessor
 Class that enables getting cudaEvent_t from cuda::Event. More...
 
class  FarnebackOpticalFlow
 Class computing a dense optical flow using the Gunnar Farneback's algorithm. More...
 
class  FastFeatureDetector
 Wrapping class for feature detection using the FAST method. More...
 
class  FastOpticalFlowBM
 
class  Feature2DAsync
 Abstract base class for CUDA asynchronous 2D image feature detectors and descriptor extractors. More...
 
struct  FGDParams
 
class  Filter
 Common interface for all CUDA filters : More...
 
class  GpuMat
 Base storage class for GPU memory with reference counting. More...
 
class  HOG
 The class implements Histogram of Oriented Gradients ([43]) object detector. More...
 
class  HostMem
 Class with reference counting wrapping special memory type allocation functions from CUDA. More...
 
class  HoughCirclesDetector
 Base class for circles detector algorithm. : More...
 
class  HoughLinesDetector
 Base class for lines detector algorithm. : More...
 
class  HoughSegmentDetector
 Base class for line segments detector algorithm. : More...
 
class  ImagePyramid
 
class  LookUpTable
 Base class for transform using lookup table. More...
 
class  OpticalFlowDual_TVL1
 Implementation of the Zach, Pock and Bischof Dual TV-L1 Optical Flow method. More...
 
class  ORB
 Class implementing the ORB (oriented BRIEF) keypoint detector and descriptor extractor. More...
 
class  SparseOpticalFlow
 Base interface for sparse optical flow algorithms. More...
 
class  SparsePyrLKOpticalFlow
 Class used for calculating a sparse optical flow. More...
 
class  StereoBeliefPropagation
 Class computing stereo correspondence using the belief propagation algorithm. : More...
 
class  StereoBM
 Class computing stereo correspondence (disparity map) using the block matching algorithm. : More...
 
class  StereoConstantSpaceBP
 Class computing stereo correspondence using the constant space belief propagation algorithm. : More...
 
class  Stream
 This class encapsulates a queue of asynchronous calls. More...
 
struct  StreamAccessor
 Class that enables getting cudaStream_t from cuda::Stream. More...
 
class  SURF_CUDA
 Class used for extracting Speeded Up Robust Features (SURF) from an image. : More...
 
class  TargetArchs
 Class providing a set of static methods to check what NVIDIA* card architecture the CUDA module was built for. More...
 
class  TemplateMatching
 Base class for Template Matching. : More...
 

Enumerations

enum  AlphaCompTypes {
  ALPHA_OVER,
  ALPHA_IN,
  ALPHA_OUT,
  ALPHA_ATOP,
  ALPHA_XOR,
  ALPHA_PLUS,
  ALPHA_OVER_PREMUL,
  ALPHA_IN_PREMUL,
  ALPHA_OUT_PREMUL,
  ALPHA_ATOP_PREMUL,
  ALPHA_XOR_PREMUL,
  ALPHA_PLUS_PREMUL,
  ALPHA_PREMUL
}
 
enum  DemosaicTypes {
  COLOR_BayerBG2BGR_MHT = 256,
  COLOR_BayerGB2BGR_MHT = 257,
  COLOR_BayerRG2BGR_MHT = 258,
  COLOR_BayerGR2BGR_MHT = 259,
  COLOR_BayerBG2RGB_MHT = COLOR_BayerRG2BGR_MHT,
  COLOR_BayerGB2RGB_MHT = COLOR_BayerGR2BGR_MHT,
  COLOR_BayerRG2RGB_MHT = COLOR_BayerBG2BGR_MHT,
  COLOR_BayerGR2RGB_MHT = COLOR_BayerGB2BGR_MHT,
  COLOR_BayerBG2GRAY_MHT = 260,
  COLOR_BayerGB2GRAY_MHT = 261,
  COLOR_BayerRG2GRAY_MHT = 262,
  COLOR_BayerGR2GRAY_MHT = 263
}
 
enum  FeatureSet {
  FEATURE_SET_COMPUTE_10 = 10,
  FEATURE_SET_COMPUTE_11 = 11,
  FEATURE_SET_COMPUTE_12 = 12,
  FEATURE_SET_COMPUTE_13 = 13,
  FEATURE_SET_COMPUTE_20 = 20,
  FEATURE_SET_COMPUTE_21 = 21,
  FEATURE_SET_COMPUTE_30 = 30,
  FEATURE_SET_COMPUTE_32 = 32,
  FEATURE_SET_COMPUTE_35 = 35,
  FEATURE_SET_COMPUTE_50 = 50,
  GLOBAL_ATOMICS = FEATURE_SET_COMPUTE_11,
  SHARED_ATOMICS = FEATURE_SET_COMPUTE_12,
  NATIVE_DOUBLE = FEATURE_SET_COMPUTE_13,
  WARP_SHUFFLE_FUNCTIONS = FEATURE_SET_COMPUTE_30,
  DYNAMIC_PARALLELISM = FEATURE_SET_COMPUTE_35
}
 Enumeration providing CUDA computing features. More...
 

Functions

void abs (InputArray src, OutputArray dst, Stream &stream=Stream::Null())
 Computes an absolute value of each matrix element. More...
 
void absdiff (InputArray src1, InputArray src2, OutputArray dst, Stream &stream=Stream::Null())
 Computes per-element absolute difference of two matrices (or of a matrix and scalar). More...
 
Scalar absSum (InputArray src, InputArray mask=noArray())
 Returns the sum of absolute values for matrix elements. More...
 
void add (InputArray src1, InputArray src2, OutputArray dst, InputArray mask=noArray(), int dtype=-1, Stream &stream=Stream::Null())
 Computes a matrix-matrix or matrix-scalar sum. More...
 
void addWeighted (InputArray src1, double alpha, InputArray src2, double beta, double gamma, OutputArray dst, int dtype=-1, Stream &stream=Stream::Null())
 Computes the weighted sum of two arrays. More...
 
void alphaComp (InputArray img1, InputArray img2, OutputArray dst, int alpha_op, Stream &stream=Stream::Null())
 Composites two images using alpha opacity values contained in each image. More...
 
void bilateralFilter (InputArray src, OutputArray dst, int kernel_size, float sigma_color, float sigma_spatial, int borderMode=BORDER_DEFAULT, Stream &stream=Stream::Null())
 Performs bilateral filtering of passed image. More...
 
void bitwise_and (InputArray src1, InputArray src2, OutputArray dst, InputArray mask=noArray(), Stream &stream=Stream::Null())
 Performs a per-element bitwise conjunction of two matrices (or of matrix and scalar). More...
 
void bitwise_not (InputArray src, OutputArray dst, InputArray mask=noArray(), Stream &stream=Stream::Null())
 Performs a per-element bitwise inversion. More...
 
void bitwise_or (InputArray src1, InputArray src2, OutputArray dst, InputArray mask=noArray(), Stream &stream=Stream::Null())
 Performs a per-element bitwise disjunction of two matrices (or of matrix and scalar). More...
 
void bitwise_xor (InputArray src1, InputArray src2, OutputArray dst, InputArray mask=noArray(), Stream &stream=Stream::Null())
 Performs a per-element bitwise exclusive or operation of two matrices (or of matrix and scalar). More...
 
void blendLinear (InputArray img1, InputArray img2, InputArray weights1, InputArray weights2, OutputArray result, Stream &stream=Stream::Null())
 Performs linear blending of two images. More...
 
void buildWarpAffineMaps (InputArray M, bool inverse, Size dsize, OutputArray xmap, OutputArray ymap, Stream &stream=Stream::Null())
 Builds transformation maps for affine transformation. More...
 
void buildWarpPerspectiveMaps (InputArray M, bool inverse, Size dsize, OutputArray xmap, OutputArray ymap, Stream &stream=Stream::Null())
 Builds transformation maps for perspective transformation. More...
 
void calcAbsSum (InputArray src, OutputArray dst, InputArray mask=noArray(), Stream &stream=Stream::Null())
 
void calcHist (InputArray src, OutputArray hist, Stream &stream=Stream::Null())
 Calculates histogram for one channel 8-bit image. More...
 
void calcHist (InputArray src, InputArray mask, OutputArray hist, Stream &stream=Stream::Null())
 Calculates histogram for one channel 8-bit image confined in given mask. More...
 
void calcNorm (InputArray src, OutputArray dst, int normType, InputArray mask=noArray(), Stream &stream=Stream::Null())
 
void calcNormDiff (InputArray src1, InputArray src2, OutputArray dst, int normType=NORM_L2, Stream &stream=Stream::Null())
 
void calcOpticalFlowBM (const GpuMat &prev, const GpuMat &curr, Size block_size, Size shift_size, Size max_range, bool use_previous, GpuMat &velx, GpuMat &vely, GpuMat &buf, Stream &stream=Stream::Null())
 Calculates optical flow for 2 images using block matching algorithm */. More...
 
void calcSqrSum (InputArray src, OutputArray dst, InputArray mask=noArray(), Stream &stream=Stream::Null())
 
void calcSum (InputArray src, OutputArray dst, InputArray mask=noArray(), Stream &stream=Stream::Null())
 
void cartToPolar (InputArray x, InputArray y, OutputArray magnitude, OutputArray angle, bool angleInDegrees=false, Stream &stream=Stream::Null())
 Converts Cartesian coordinates into polar. More...
 
void compare (InputArray src1, InputArray src2, OutputArray dst, int cmpop, Stream &stream=Stream::Null())
 Compares elements of two matrices (or of a matrix and scalar). More...
 
void connectivityMask (const GpuMat &image, GpuMat &mask, const cv::Scalar &lo, const cv::Scalar &hi, Stream &stream=Stream::Null())
 compute mask for Generalized Flood fill componetns labeling. More...
 
void convertFp16 (InputArray _src, OutputArray _dst, Stream &stream=Stream::Null())
 Converts an array to half precision floating number. More...
 
void copyMakeBorder (InputArray src, OutputArray dst, int top, int bottom, int left, int right, int borderType, Scalar value=Scalar(), Stream &stream=Stream::Null())
 Forms a border around an image. More...
 
int countNonZero (InputArray src)
 Counts non-zero matrix elements. More...
 
void countNonZero (InputArray src, OutputArray dst, Stream &stream=Stream::Null())
 
Ptr< cuda::BackgroundSubtractorFGDcreateBackgroundSubtractorFGD (const FGDParams &params=FGDParams())
 Creates FGD Background Subtractor. More...
 
Ptr< cuda::BackgroundSubtractorGMGcreateBackgroundSubtractorGMG (int initializationFrames=120, double decisionThreshold=0.8)
 Creates GMG Background Subtractor. More...
 
Ptr< cuda::BackgroundSubtractorMOGcreateBackgroundSubtractorMOG (int history=200, int nmixtures=5, double backgroundRatio=0.7, double noiseSigma=0)
 Creates mixture-of-gaussian background subtractor. More...
 
Ptr< cuda::BackgroundSubtractorMOG2createBackgroundSubtractorMOG2 (int history=500, double varThreshold=16, bool detectShadows=true)
 Creates MOG2 Background Subtractor. More...
 
Ptr< FiltercreateBoxFilter (int srcType, int dstType, Size ksize, Point anchor=Point(-1,-1), int borderMode=BORDER_DEFAULT, Scalar borderVal=Scalar::all(0))
 Creates a normalized 2D box filter. More...
 
Ptr< FiltercreateBoxMaxFilter (int srcType, Size ksize, Point anchor=Point(-1, -1), int borderMode=BORDER_DEFAULT, Scalar borderVal=Scalar::all(0))
 Creates the maximum filter. More...
 
Ptr< FiltercreateBoxMinFilter (int srcType, Size ksize, Point anchor=Point(-1, -1), int borderMode=BORDER_DEFAULT, Scalar borderVal=Scalar::all(0))
 Creates the minimum filter. More...
 
Ptr< CannyEdgeDetectorcreateCannyEdgeDetector (double low_thresh, double high_thresh, int apperture_size=3, bool L2gradient=false)
 Creates implementation for cuda::CannyEdgeDetector . More...
 
Ptr< cuda::CLAHEcreateCLAHE (double clipLimit=40.0, Size tileGridSize=Size(8, 8))
 Creates implementation for cuda::CLAHE . More...
 
Ptr< FiltercreateColumnSumFilter (int srcType, int dstType, int ksize, int anchor=-1, int borderMode=BORDER_DEFAULT, Scalar borderVal=Scalar::all(0))
 Creates a vertical 1D box filter. More...
 
void createContinuous (int rows, int cols, int type, OutputArray arr)
 Creates a continuous matrix. More...
 
Ptr< ConvolutioncreateConvolution (Size user_block_size=Size())
 Creates implementation for cuda::Convolution . More...
 
Ptr< FiltercreateDerivFilter (int srcType, int dstType, int dx, int dy, int ksize, bool normalize=false, double scale=1, int rowBorderMode=BORDER_DEFAULT, int columnBorderMode=-1)
 Creates a generalized Deriv operator. More...
 
Ptr< DFTcreateDFT (Size dft_size, int flags)
 Creates implementation for cuda::DFT. More...
 
Ptr< cuda::DisparityBilateralFiltercreateDisparityBilateralFilter (int ndisp=64, int radius=3, int iters=1)
 Creates DisparityBilateralFilter object. More...
 
Ptr< FiltercreateGaussianFilter (int srcType, int dstType, Size ksize, double sigma1, double sigma2=0, int rowBorderMode=BORDER_DEFAULT, int columnBorderMode=-1)
 Creates a Gaussian filter. More...
 
Ptr< GeneralizedHoughBallardcreateGeneralizedHoughBallard ()
 Creates implementation for generalized hough transform from [10] . More...
 
Ptr< GeneralizedHoughGuilcreateGeneralizedHoughGuil ()
 Creates implementation for generalized hough transform from [85] . More...
 
Ptr< CornersDetectorcreateGoodFeaturesToTrackDetector (int srcType, int maxCorners=1000, double qualityLevel=0.01, double minDistance=0.0, int blockSize=3, bool useHarrisDetector=false, double harrisK=0.04)
 Creates implementation for cuda::CornersDetector . More...
 
Ptr< CornernessCriteriacreateHarrisCorner (int srcType, int blockSize, int ksize, double k, int borderType=BORDER_REFLECT101)
 Creates implementation for Harris cornerness criteria. More...
 
Ptr< HoughCirclesDetectorcreateHoughCirclesDetector (float dp, float minDist, int cannyThreshold, int votesThreshold, int minRadius, int maxRadius, int maxCircles=4096)
 Creates implementation for cuda::HoughCirclesDetector . More...
 
Ptr< HoughLinesDetectorcreateHoughLinesDetector (float rho, float theta, int threshold, bool doSort=false, int maxLines=4096)
 Creates implementation for cuda::HoughLinesDetector . More...
 
Ptr< HoughSegmentDetectorcreateHoughSegmentDetector (float rho, float theta, int minLineLength, int maxLineGap, int maxLines=4096)
 Creates implementation for cuda::HoughSegmentDetector . More...
 
Ptr< ImagePyramidcreateImagePyramid (InputArray img, int nLayers=-1, Stream &stream=Stream::Null())
 
Ptr< FiltercreateLaplacianFilter (int srcType, int dstType, int ksize=1, double scale=1, int borderMode=BORDER_DEFAULT, Scalar borderVal=Scalar::all(0))
 Creates a Laplacian operator. More...
 
Ptr< FiltercreateLinearFilter (int srcType, int dstType, InputArray kernel, Point anchor=Point(-1,-1), int borderMode=BORDER_DEFAULT, Scalar borderVal=Scalar::all(0))
 Creates a non-separable linear 2D filter. More...
 
Ptr< LookUpTablecreateLookUpTable (InputArray lut)
 Creates implementation for cuda::LookUpTable . More...
 
Ptr< FiltercreateMedianFilter (int srcType, int windowSize, int partition=128)
 Performs median filtering for each point of the source image. More...
 
Ptr< CornernessCriteriacreateMinEigenValCorner (int srcType, int blockSize, int ksize, int borderType=BORDER_REFLECT101)
 Creates implementation for the minimum eigen value of a 2x2 derivative covariation matrix (the cornerness criteria). More...
 
Ptr< FiltercreateMorphologyFilter (int op, int srcType, InputArray kernel, Point anchor=Point(-1, -1), int iterations=1)
 Creates a 2D morphological filter. More...
 
void createOpticalFlowNeedleMap (const GpuMat &u, const GpuMat &v, GpuMat &vertex, GpuMat &colors)
 
Ptr< FiltercreateRowSumFilter (int srcType, int dstType, int ksize, int anchor=-1, int borderMode=BORDER_DEFAULT, Scalar borderVal=Scalar::all(0))
 Creates a horizontal 1D box filter. More...
 
Ptr< FiltercreateScharrFilter (int srcType, int dstType, int dx, int dy, double scale=1, int rowBorderMode=BORDER_DEFAULT, int columnBorderMode=-1)
 Creates a vertical or horizontal Scharr operator. More...
 
Ptr< FiltercreateSeparableLinearFilter (int srcType, int dstType, InputArray rowKernel, InputArray columnKernel, Point anchor=Point(-1,-1), int rowBorderMode=BORDER_DEFAULT, int columnBorderMode=-1)
 Creates a separable linear filter. More...
 
Ptr< FiltercreateSobelFilter (int srcType, int dstType, int dx, int dy, int ksize=3, double scale=1, int rowBorderMode=BORDER_DEFAULT, int columnBorderMode=-1)
 Creates a Sobel operator. More...
 
Ptr< cuda::StereoBeliefPropagationcreateStereoBeliefPropagation (int ndisp=64, int iters=5, int levels=5, int msg_type=CV_32F)
 Creates StereoBeliefPropagation object. More...
 
Ptr< cuda::StereoBMcreateStereoBM (int numDisparities=64, int blockSize=19)
 Creates StereoBM object. More...
 
Ptr< cuda::StereoConstantSpaceBPcreateStereoConstantSpaceBP (int ndisp=128, int iters=8, int levels=4, int nr_plane=4, int msg_type=CV_32F)
 Creates StereoConstantSpaceBP object. More...
 
Ptr< TemplateMatchingcreateTemplateMatching (int srcType, int method, Size user_block_size=Size())
 Creates implementation for cuda::TemplateMatching . More...
 
void cvtColor (InputArray src, OutputArray dst, int code, int dcn=0, Stream &stream=Stream::Null())
 Converts an image from one color space to another. More...
 
void demosaicing (InputArray src, OutputArray dst, int code, int dcn=-1, Stream &stream=Stream::Null())
 Converts an image from Bayer pattern to RGB or grayscale. More...
 
bool deviceSupports (FeatureSet feature_set)
 checks whether current device supports the given feature More...
 
void dft (InputArray src, OutputArray dst, Size dft_size, int flags=0, Stream &stream=Stream::Null())
 Performs a forward or inverse discrete Fourier transform (1D or 2D) of the floating point matrix. More...
 
void divide (InputArray src1, InputArray src2, OutputArray dst, double scale=1, int dtype=-1, Stream &stream=Stream::Null())
 Computes a matrix-matrix or matrix-scalar division. More...
 
void drawColorDisp (InputArray src_disp, OutputArray dst_disp, int ndisp, Stream &stream=Stream::Null())
 Colors a disparity image. More...
 
void ensureSizeIsEnough (int rows, int cols, int type, OutputArray arr)
 Ensures that the size of a matrix is big enough and the matrix has a proper type. More...
 
void equalizeHist (InputArray src, OutputArray dst, Stream &stream=Stream::Null())
 Equalizes the histogram of a grayscale image. More...
 
void evenLevels (OutputArray levels, int nLevels, int lowerLevel, int upperLevel, Stream &stream=Stream::Null())
 Computes levels with even distribution. More...
 
void exp (InputArray src, OutputArray dst, Stream &stream=Stream::Null())
 Computes an exponent of each matrix element. More...
 
void fastNlMeansDenoising (InputArray src, OutputArray dst, float h, int search_window=21, int block_size=7, Stream &stream=Stream::Null())
 Perform image denoising using Non-local Means Denoising algorithm http://www.ipol.im/pub/algo/bcm_non_local_means_denoising with several computational optimizations. Noise expected to be a gaussian white noise. More...
 
void fastNlMeansDenoisingColored (InputArray src, OutputArray dst, float h_luminance, float photo_render, int search_window=21, int block_size=7, Stream &stream=Stream::Null())
 Modification of fastNlMeansDenoising function for colored images. More...
 
void findMinMax (InputArray src, OutputArray dst, InputArray mask=noArray(), Stream &stream=Stream::Null())
 
void findMinMaxLoc (InputArray src, OutputArray minMaxVals, OutputArray loc, InputArray mask=noArray(), Stream &stream=Stream::Null())
 
void flip (InputArray src, OutputArray dst, int flipCode, Stream &stream=Stream::Null())
 Flips a 2D matrix around vertical, horizontal, or both axes. More...
 
void gammaCorrection (InputArray src, OutputArray dst, bool forward=true, Stream &stream=Stream::Null())
 Routines for correcting image color gamma. More...
 
void gemm (InputArray src1, InputArray src2, double alpha, InputArray src3, double beta, OutputArray dst, int flags=0, Stream &stream=Stream::Null())
 Performs generalized matrix multiplication. More...
 
int getCudaEnabledDeviceCount ()
 Returns the number of installed CUDA-enabled devices. More...
 
int getDevice ()
 Returns the current device index set by cuda::setDevice or initialized by default. More...
 
void graphcut (GpuMat &terminals, GpuMat &leftTransp, GpuMat &rightTransp, GpuMat &top, GpuMat &bottom, GpuMat &labels, GpuMat &buf, Stream &stream=Stream::Null())
 performs labeling via graph cuts of a 2D regular 4-connected graph. More...
 
void graphcut (GpuMat &terminals, GpuMat &leftTransp, GpuMat &rightTransp, GpuMat &top, GpuMat &topLeft, GpuMat &topRight, GpuMat &bottom, GpuMat &bottomLeft, GpuMat &bottomRight, GpuMat &labels, GpuMat &buf, Stream &stream=Stream::Null())
 performs labeling via graph cuts of a 2D regular 8-connected graph. More...
 
void histEven (InputArray src, OutputArray hist, int histSize, int lowerLevel, int upperLevel, Stream &stream=Stream::Null())
 Calculates a histogram with evenly distributed bins. More...
 
void histEven (InputArray src, GpuMat hist[4], int histSize[4], int lowerLevel[4], int upperLevel[4], Stream &stream=Stream::Null())
 
void histRange (InputArray src, OutputArray hist, InputArray levels, Stream &stream=Stream::Null())
 Calculates a histogram with bins determined by the levels array. More...
 
void histRange (InputArray src, GpuMat hist[4], const GpuMat levels[4], Stream &stream=Stream::Null())
 
void integral (InputArray src, OutputArray sum, Stream &stream=Stream::Null())
 Computes an integral image. More...
 
void interpolateFrames (const GpuMat &frame0, const GpuMat &frame1, const GpuMat &fu, const GpuMat &fv, const GpuMat &bu, const GpuMat &bv, float pos, GpuMat &newFrame, GpuMat &buf, Stream &stream=Stream::Null())
 Interpolates frames (images) using provided optical flow (displacement field). More...
 
void labelComponents (const GpuMat &mask, GpuMat &components, int flags=0, Stream &stream=Stream::Null())
 performs connected componnents labeling. More...
 
void log (InputArray src, OutputArray dst, Stream &stream=Stream::Null())
 Computes a natural logarithm of absolute value of each matrix element. More...
 
void lshift (InputArray src, Scalar_< int > val, OutputArray dst, Stream &stream=Stream::Null())
 Performs pixel by pixel right left of an image by a constant value. More...
 
void magnitude (InputArray xy, OutputArray magnitude, Stream &stream=Stream::Null())
 Computes magnitudes of complex matrix elements. More...
 
void magnitude (InputArray x, InputArray y, OutputArray magnitude, Stream &stream=Stream::Null())
 
void magnitudeSqr (InputArray xy, OutputArray magnitude, Stream &stream=Stream::Null())
 Computes squared magnitudes of complex matrix elements. More...
 
void magnitudeSqr (InputArray x, InputArray y, OutputArray magnitude, Stream &stream=Stream::Null())
 
void max (InputArray src1, InputArray src2, OutputArray dst, Stream &stream=Stream::Null())
 Computes the per-element maximum of two matrices (or a matrix and a scalar). More...
 
void meanShiftFiltering (InputArray src, OutputArray dst, int sp, int sr, TermCriteria criteria=TermCriteria(TermCriteria::MAX_ITER+TermCriteria::EPS, 5, 1), Stream &stream=Stream::Null())
 Performs mean-shift filtering for each point of the source image. More...
 
void meanShiftProc (InputArray src, OutputArray dstr, OutputArray dstsp, int sp, int sr, TermCriteria criteria=TermCriteria(TermCriteria::MAX_ITER+TermCriteria::EPS, 5, 1), Stream &stream=Stream::Null())
 Performs a mean-shift procedure and stores information about processed points (their colors and positions) in two images. More...
 
void meanShiftSegmentation (InputArray src, OutputArray dst, int sp, int sr, int minsize, TermCriteria criteria=TermCriteria(TermCriteria::MAX_ITER+TermCriteria::EPS, 5, 1), Stream &stream=Stream::Null())
 Performs a mean-shift segmentation of the source image and eliminates small segments. More...
 
void meanStdDev (InputArray mtx, Scalar &mean, Scalar &stddev)
 Computes a mean value and a standard deviation of matrix elements. More...
 
void meanStdDev (InputArray mtx, OutputArray dst, Stream &stream=Stream::Null())
 
void merge (const GpuMat *src, size_t n, OutputArray dst, Stream &stream=Stream::Null())
 Makes a multi-channel matrix out of several single-channel matrices. More...
 
void merge (const std::vector< GpuMat > &src, OutputArray dst, Stream &stream=Stream::Null())
 
void min (InputArray src1, InputArray src2, OutputArray dst, Stream &stream=Stream::Null())
 Computes the per-element minimum of two matrices (or a matrix and a scalar). More...
 
void minMax (InputArray src, double *minVal, double *maxVal, InputArray mask=noArray())
 Finds global minimum and maximum matrix elements and returns their values. More...
 
void minMaxLoc (InputArray src, double *minVal, double *maxVal, Point *minLoc, Point *maxLoc, InputArray mask=noArray())
 Finds global minimum and maximum matrix elements and returns their values with locations. More...
 
void mulAndScaleSpectrums (InputArray src1, InputArray src2, OutputArray dst, int flags, float scale, bool conjB=false, Stream &stream=Stream::Null())
 Performs a per-element multiplication of two Fourier spectrums and scales the result. More...
 
void mulSpectrums (InputArray src1, InputArray src2, OutputArray dst, int flags, bool conjB=false, Stream &stream=Stream::Null())
 Performs a per-element multiplication of two Fourier spectrums. More...
 
void multiply (InputArray src1, InputArray src2, OutputArray dst, double scale=1, int dtype=-1, Stream &stream=Stream::Null())
 Computes a matrix-matrix or matrix-scalar per-element product. More...
 
void nonLocalMeans (InputArray src, OutputArray dst, float h, int search_window=21, int block_size=7, int borderMode=BORDER_DEFAULT, Stream &stream=Stream::Null())
 Performs pure non local means denoising without any simplification, and thus it is not fast. More...
 
double norm (InputArray src1, int normType, InputArray mask=noArray())
 Returns the norm of a matrix (or difference of two matrices). More...
 
double norm (InputArray src1, InputArray src2, int normType=NORM_L2)
 Returns the difference of two matrices. More...
 
void normalize (InputArray src, OutputArray dst, double alpha, double beta, int norm_type, int dtype, InputArray mask=noArray(), Stream &stream=Stream::Null())
 Normalizes the norm or value range of an array. More...
 
void phase (InputArray x, InputArray y, OutputArray angle, bool angleInDegrees=false, Stream &stream=Stream::Null())
 Computes polar angles of complex matrix elements. More...
 
void polarToCart (InputArray magnitude, InputArray angle, OutputArray x, OutputArray y, bool angleInDegrees=false, Stream &stream=Stream::Null())
 Converts polar coordinates into Cartesian. More...
 
void pow (InputArray src, double power, OutputArray dst, Stream &stream=Stream::Null())
 Raises every matrix element to a power. More...
 
void printCudaDeviceInfo (int device)
 
void printShortCudaDeviceInfo (int device)
 
void projectPoints (const GpuMat &src, const Mat &rvec, const Mat &tvec, const Mat &camera_mat, const Mat &dist_coef, GpuMat &dst, Stream &stream=Stream::Null())
 
void pyrDown (InputArray src, OutputArray dst, Stream &stream=Stream::Null())
 Smoothes an image and downsamples it. More...
 
void pyrUp (InputArray src, OutputArray dst, Stream &stream=Stream::Null())
 Upsamples an image and then smoothes it. More...
 
void rectStdDev (InputArray src, InputArray sqr, OutputArray dst, Rect rect, Stream &stream=Stream::Null())
 Computes a standard deviation of integral images. More...
 
void reduce (InputArray mtx, OutputArray vec, int dim, int reduceOp, int dtype=-1, Stream &stream=Stream::Null())
 Reduces a matrix to a vector. More...
 
void registerPageLocked (Mat &m)
 Page-locks the memory of matrix and maps it for the device(s). More...
 
void remap (InputArray src, OutputArray dst, InputArray xmap, InputArray ymap, int interpolation, int borderMode=BORDER_CONSTANT, Scalar borderValue=Scalar(), Stream &stream=Stream::Null())
 Applies a generic geometrical transformation to an image. More...
 
void reprojectImageTo3D (InputArray disp, OutputArray xyzw, InputArray Q, int dst_cn=4, Stream &stream=Stream::Null())
 Reprojects a disparity image to 3D space. More...
 
void resetDevice ()
 Explicitly destroys and cleans up all resources associated with the current device in the current process. More...
 
void resize (InputArray src, OutputArray dst, Size dsize, double fx=0, double fy=0, int interpolation=INTER_LINEAR, Stream &stream=Stream::Null())
 Resizes an image. More...
 
void rotate (InputArray src, OutputArray dst, Size dsize, double angle, double xShift=0, double yShift=0, int interpolation=INTER_LINEAR, Stream &stream=Stream::Null())
 Rotates an image around the origin (0,0) and then shifts it. More...
 
void rshift (InputArray src, Scalar_< int > val, OutputArray dst, Stream &stream=Stream::Null())
 Performs pixel by pixel right shift of an image by a constant value. More...
 
static void scaleAdd (InputArray src1, double alpha, InputArray src2, OutputArray dst, Stream &stream=Stream::Null())
 adds scaled array to another one (dst = alpha*src1 + src2) More...
 
void setBufferPoolConfig (int deviceId, size_t stackSize, int stackCount)
 
void setBufferPoolUsage (bool on)
 BufferPool management (must be called before Stream creation) More...
 
void setDevice (int device)
 Sets a device and initializes it for the current thread. More...
 
void setGlDevice (int device=0)
 Sets a CUDA device and initializes it for the current thread with OpenGL interoperability. More...
 
void solvePnPRansac (const Mat &object, const Mat &image, const Mat &camera_mat, const Mat &dist_coef, Mat &rvec, Mat &tvec, bool use_extrinsic_guess=false, int num_iters=100, float max_dist=8.0, int min_inlier_count=100, std::vector< int > *inliers=NULL)
 Finds the object pose from 3D-2D point correspondences. More...
 
void split (InputArray src, GpuMat *dst, Stream &stream=Stream::Null())
 Copies each plane of a multi-channel matrix into an array. More...
 
void split (InputArray src, std::vector< GpuMat > &dst, Stream &stream=Stream::Null())
 
void sqr (InputArray src, OutputArray dst, Stream &stream=Stream::Null())
 Computes a square value of each matrix element. More...
 
void sqrIntegral (InputArray src, OutputArray sqsum, Stream &stream=Stream::Null())
 Computes a squared integral image. More...
 
Scalar sqrSum (InputArray src, InputArray mask=noArray())
 Returns the squared sum of matrix elements. More...
 
void sqrt (InputArray src, OutputArray dst, Stream &stream=Stream::Null())
 Computes a square root of each matrix element. More...
 
void subtract (InputArray src1, InputArray src2, OutputArray dst, InputArray mask=noArray(), int dtype=-1, Stream &stream=Stream::Null())
 Computes a matrix-matrix or matrix-scalar difference. More...
 
Scalar sum (InputArray src, InputArray mask=noArray())
 Returns the sum of matrix elements. More...
 
void swapChannels (InputOutputArray image, const int dstOrder[4], Stream &stream=Stream::Null())
 Exchanges the color channels of an image in-place. More...
 
double threshold (InputArray src, OutputArray dst, double thresh, double maxval, int type, Stream &stream=Stream::Null())
 Applies a fixed-level threshold to each array element. More...
 
void transformPoints (const GpuMat &src, const Mat &rvec, const Mat &tvec, GpuMat &dst, Stream &stream=Stream::Null())
 
void transpose (InputArray src1, OutputArray dst, Stream &stream=Stream::Null())
 Transposes a matrix. More...
 
void unregisterPageLocked (Mat &m)
 Unmaps the memory of matrix and makes it pageable again. More...
 
void warpAffine (InputArray src, OutputArray dst, InputArray M, Size dsize, int flags=INTER_LINEAR, int borderMode=BORDER_CONSTANT, Scalar borderValue=Scalar(), Stream &stream=Stream::Null())
 Applies an affine transformation to an image. More...
 
void warpPerspective (InputArray src, OutputArray dst, InputArray M, Size dsize, int flags=INTER_LINEAR, int borderMode=BORDER_CONSTANT, Scalar borderValue=Scalar(), Stream &stream=Stream::Null())
 Applies a perspective transformation to an image. More...
 

Function Documentation

◆ createMedianFilter()

Ptr<Filter> cv::cuda::createMedianFilter ( int  srcType,
int  windowSize,
int  partition = 128 
)

Performs median filtering for each point of the source image.

Parameters
srcTypetype of of source image. Only CV_8UC1 images are supported for now.
windowSizeSize of the kernerl used for the filtering. Uses a (windowSize x windowSize) filter.
partitionSpecifies the parallel granularity of the workload. This parameter should be used GPU experts when optimizing performance.

Outputs an image that has been filtered using median-filtering formulation.