public class opencv_cudafilters extends opencv_cudafilters
| Modifier and Type | Class and Description |
|---|---|
static class |
opencv_cudafilters.Filter
\addtogroup cudafilters
\{
|
| Constructor and Description |
|---|
opencv_cudafilters() |
| Modifier and Type | Method and Description |
|---|---|
static opencv_cudafilters.Filter |
createBoxFilter(int srcType,
int dstType,
opencv_core.Size ksize) |
static opencv_cudafilters.Filter |
createBoxFilter(int srcType,
int dstType,
opencv_core.Size ksize,
opencv_core.Point anchor,
int borderMode,
opencv_core.Scalar borderVal)
\brief Creates a normalized 2D box filter.
|
static opencv_cudafilters.Filter |
createBoxMaxFilter(int srcType,
opencv_core.Size ksize) |
static opencv_cudafilters.Filter |
createBoxMaxFilter(int srcType,
opencv_core.Size ksize,
opencv_core.Point anchor,
int borderMode,
opencv_core.Scalar borderVal)
\brief Creates the maximum filter.
|
static opencv_cudafilters.Filter |
createBoxMinFilter(int srcType,
opencv_core.Size ksize) |
static opencv_cudafilters.Filter |
createBoxMinFilter(int srcType,
opencv_core.Size ksize,
opencv_core.Point anchor,
int borderMode,
opencv_core.Scalar borderVal)
\brief Creates the minimum filter.
|
static opencv_cudafilters.Filter |
createColumnSumFilter(int srcType,
int dstType,
int ksize) |
static opencv_cudafilters.Filter |
createColumnSumFilter(int srcType,
int dstType,
int ksize,
int anchor,
int borderMode,
opencv_core.Scalar borderVal)
\brief Creates a vertical 1D box filter.
|
static opencv_cudafilters.Filter |
createDerivFilter(int srcType,
int dstType,
int dx,
int dy,
int ksize) |
static opencv_cudafilters.Filter |
createDerivFilter(int srcType,
int dstType,
int dx,
int dy,
int ksize,
boolean normalize,
double scale,
int rowBorderMode,
int columnBorderMode)
\brief Creates a generalized Deriv operator.
|
static opencv_cudafilters.Filter |
createGaussianFilter(int srcType,
int dstType,
opencv_core.Size ksize,
double sigma1) |
static opencv_cudafilters.Filter |
createGaussianFilter(int srcType,
int dstType,
opencv_core.Size ksize,
double sigma1,
double sigma2,
int rowBorderMode,
int columnBorderMode)
\brief Creates a Gaussian filter.
|
static opencv_cudafilters.Filter |
createLaplacianFilter(int srcType,
int dstType) |
static opencv_cudafilters.Filter |
createLaplacianFilter(int srcType,
int dstType,
int ksize,
double scale,
int borderMode,
opencv_core.Scalar borderVal)
\brief Creates a Laplacian operator.
|
static opencv_cudafilters.Filter |
createLinearFilter(int srcType,
int dstType,
opencv_core.GpuMat kernel) |
static opencv_cudafilters.Filter |
createLinearFilter(int srcType,
int dstType,
opencv_core.GpuMat kernel,
opencv_core.Point anchor,
int borderMode,
opencv_core.Scalar borderVal) |
static opencv_cudafilters.Filter |
createLinearFilter(int srcType,
int dstType,
opencv_core.Mat kernel) |
static opencv_cudafilters.Filter |
createLinearFilter(int srcType,
int dstType,
opencv_core.Mat kernel,
opencv_core.Point anchor,
int borderMode,
opencv_core.Scalar borderVal)
\brief Creates a non-separable linear 2D filter.
|
static opencv_cudafilters.Filter |
createLinearFilter(int srcType,
int dstType,
opencv_core.UMat kernel) |
static opencv_cudafilters.Filter |
createLinearFilter(int srcType,
int dstType,
opencv_core.UMat kernel,
opencv_core.Point anchor,
int borderMode,
opencv_core.Scalar borderVal) |
static opencv_cudafilters.Filter |
createMedianFilter(int srcType,
int windowSize) |
static opencv_cudafilters.Filter |
createMedianFilter(int srcType,
int windowSize,
int partition)
\}
|
static opencv_cudafilters.Filter |
createMorphologyFilter(int op,
int srcType,
opencv_core.GpuMat kernel) |
static opencv_cudafilters.Filter |
createMorphologyFilter(int op,
int srcType,
opencv_core.GpuMat kernel,
opencv_core.Point anchor,
int iterations) |
static opencv_cudafilters.Filter |
createMorphologyFilter(int op,
int srcType,
opencv_core.Mat kernel) |
static opencv_cudafilters.Filter |
createMorphologyFilter(int op,
int srcType,
opencv_core.Mat kernel,
opencv_core.Point anchor,
int iterations)
\brief Creates a 2D morphological filter.
|
static opencv_cudafilters.Filter |
createMorphologyFilter(int op,
int srcType,
opencv_core.UMat kernel) |
static opencv_cudafilters.Filter |
createMorphologyFilter(int op,
int srcType,
opencv_core.UMat kernel,
opencv_core.Point anchor,
int iterations) |
static opencv_cudafilters.Filter |
createRowSumFilter(int srcType,
int dstType,
int ksize) |
static opencv_cudafilters.Filter |
createRowSumFilter(int srcType,
int dstType,
int ksize,
int anchor,
int borderMode,
opencv_core.Scalar borderVal)
\brief Creates a horizontal 1D box filter.
|
static opencv_cudafilters.Filter |
createScharrFilter(int srcType,
int dstType,
int dx,
int dy) |
static opencv_cudafilters.Filter |
createScharrFilter(int srcType,
int dstType,
int dx,
int dy,
double scale,
int rowBorderMode,
int columnBorderMode)
\brief Creates a vertical or horizontal Scharr operator.
|
static opencv_cudafilters.Filter |
createSeparableLinearFilter(int srcType,
int dstType,
opencv_core.GpuMat rowKernel,
opencv_core.GpuMat columnKernel) |
static opencv_cudafilters.Filter |
createSeparableLinearFilter(int srcType,
int dstType,
opencv_core.GpuMat rowKernel,
opencv_core.GpuMat columnKernel,
opencv_core.Point anchor,
int rowBorderMode,
int columnBorderMode) |
static opencv_cudafilters.Filter |
createSeparableLinearFilter(int srcType,
int dstType,
opencv_core.Mat rowKernel,
opencv_core.Mat columnKernel) |
static opencv_cudafilters.Filter |
createSeparableLinearFilter(int srcType,
int dstType,
opencv_core.Mat rowKernel,
opencv_core.Mat columnKernel,
opencv_core.Point anchor,
int rowBorderMode,
int columnBorderMode)
\brief Creates a separable linear filter.
|
static opencv_cudafilters.Filter |
createSeparableLinearFilter(int srcType,
int dstType,
opencv_core.UMat rowKernel,
opencv_core.UMat columnKernel) |
static opencv_cudafilters.Filter |
createSeparableLinearFilter(int srcType,
int dstType,
opencv_core.UMat rowKernel,
opencv_core.UMat columnKernel,
opencv_core.Point anchor,
int rowBorderMode,
int columnBorderMode) |
static opencv_cudafilters.Filter |
createSobelFilter(int srcType,
int dstType,
int dx,
int dy) |
static opencv_cudafilters.Filter |
createSobelFilter(int srcType,
int dstType,
int dx,
int dy,
int ksize,
double scale,
int rowBorderMode,
int columnBorderMode)
\brief Creates a Sobel operator.
|
map@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createBoxFilter(int srcType, int dstType, @ByVal opencv_core.Size ksize, @ByVal(nullValue="cv::Point(-1,-1)") opencv_core.Point anchor, int borderMode, @ByVal(nullValue="cv::Scalar::all(0)") opencv_core.Scalar borderVal)
srcType - Input image type. Only CV_8UC1, CV_8UC4 and CV_32FC1 are supported for now.dstType - Output image type. Only the same type as src is supported for now.ksize - Kernel size.anchor - Anchor point. The default value Point(-1, -1) means that the anchor is at the kernel
center.borderMode - Pixel extrapolation method. For details, see borderInterpolate .borderVal - Default border value.
\sa boxFilter
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createBoxFilter(int srcType, int dstType, @ByVal opencv_core.Size ksize)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createLinearFilter(int srcType, int dstType, @ByVal opencv_core.Mat kernel, @ByVal(nullValue="cv::Point(-1,-1)") opencv_core.Point anchor, int borderMode, @ByVal(nullValue="cv::Scalar::all(0)") opencv_core.Scalar borderVal)
srcType - Input image type. Supports CV_8U , CV_16U and CV_32F one and four channel image.dstType - Output image type. Only the same type as src is supported for now.kernel - 2D array of filter coefficients.anchor - Anchor point. The default value Point(-1, -1) means that the anchor is at the kernel
center.borderMode - Pixel extrapolation method. For details, see borderInterpolate .borderVal - Default border value.
\sa filter2D
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createLinearFilter(int srcType, int dstType, @ByVal opencv_core.Mat kernel)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createLinearFilter(int srcType, int dstType, @ByVal opencv_core.UMat kernel, @ByVal(nullValue="cv::Point(-1,-1)") opencv_core.Point anchor, int borderMode, @ByVal(nullValue="cv::Scalar::all(0)") opencv_core.Scalar borderVal)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createLinearFilter(int srcType, int dstType, @ByVal opencv_core.UMat kernel)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createLinearFilter(int srcType, int dstType, @ByVal opencv_core.GpuMat kernel, @ByVal(nullValue="cv::Point(-1,-1)") opencv_core.Point anchor, int borderMode, @ByVal(nullValue="cv::Scalar::all(0)") opencv_core.Scalar borderVal)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createLinearFilter(int srcType, int dstType, @ByVal opencv_core.GpuMat kernel)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createLaplacianFilter(int srcType, int dstType, int ksize, double scale, int borderMode, @ByVal(nullValue="cv::Scalar::all(0)") opencv_core.Scalar borderVal)
srcType - Input image type. Supports CV_8U , CV_16U and CV_32F one and four channel image.dstType - Output image type. Only the same type as src is supported for now.ksize - Aperture size used to compute the second-derivative filters (see getDerivKernels). It
must be positive and odd. Only ksize = 1 and ksize = 3 are supported.scale - Optional scale factor for the computed Laplacian values. By default, no scaling is
applied (see getDerivKernels ).borderMode - Pixel extrapolation method. For details, see borderInterpolate .borderVal - Default border value.
\sa Laplacian
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createLaplacianFilter(int srcType, int dstType)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createSeparableLinearFilter(int srcType, int dstType, @ByVal opencv_core.Mat rowKernel, @ByVal opencv_core.Mat columnKernel, @ByVal(nullValue="cv::Point(-1,-1)") opencv_core.Point anchor, int rowBorderMode, int columnBorderMode)
srcType - Source array type.dstType - Destination array type.rowKernel - Horizontal filter coefficients. Support kernels with size \<= 32 .columnKernel - Vertical filter coefficients. Support kernels with size \<= 32 .anchor - Anchor position within the kernel. Negative values mean that anchor is positioned at
the aperture center.rowBorderMode - Pixel extrapolation method in the vertical direction For details, see
borderInterpolate.columnBorderMode - Pixel extrapolation method in the horizontal direction.
\sa sepFilter2D
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createSeparableLinearFilter(int srcType, int dstType, @ByVal opencv_core.Mat rowKernel, @ByVal opencv_core.Mat columnKernel)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createSeparableLinearFilter(int srcType, int dstType, @ByVal opencv_core.UMat rowKernel, @ByVal opencv_core.UMat columnKernel, @ByVal(nullValue="cv::Point(-1,-1)") opencv_core.Point anchor, int rowBorderMode, int columnBorderMode)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createSeparableLinearFilter(int srcType, int dstType, @ByVal opencv_core.UMat rowKernel, @ByVal opencv_core.UMat columnKernel)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createSeparableLinearFilter(int srcType, int dstType, @ByVal opencv_core.GpuMat rowKernel, @ByVal opencv_core.GpuMat columnKernel, @ByVal(nullValue="cv::Point(-1,-1)") opencv_core.Point anchor, int rowBorderMode, int columnBorderMode)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createSeparableLinearFilter(int srcType, int dstType, @ByVal opencv_core.GpuMat rowKernel, @ByVal opencv_core.GpuMat columnKernel)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createDerivFilter(int srcType, int dstType, int dx, int dy, int ksize, @Cast(value="bool") boolean normalize, double scale, int rowBorderMode, int columnBorderMode)
srcType - Source image type.dstType - Destination array type.dx - Derivative order in respect of x.dy - Derivative order in respect of y.ksize - Aperture size. See getDerivKernels for details.normalize - Flag indicating whether to normalize (scale down) the filter coefficients or not.
See getDerivKernels for details.scale - Optional scale factor for the computed derivative values. By default, no scaling is
applied. For details, see getDerivKernels .rowBorderMode - Pixel extrapolation method in the vertical direction. For details, see
borderInterpolate.columnBorderMode - Pixel extrapolation method in the horizontal direction.@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createDerivFilter(int srcType, int dstType, int dx, int dy, int ksize)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createSobelFilter(int srcType, int dstType, int dx, int dy, int ksize, double scale, int rowBorderMode, int columnBorderMode)
srcType - Source image type.dstType - Destination array type.dx - Derivative order in respect of x.dy - Derivative order in respect of y.ksize - Size of the extended Sobel kernel. Possible values are 1, 3, 5 or 7.scale - Optional scale factor for the computed derivative values. By default, no scaling is
applied. For details, see getDerivKernels .rowBorderMode - Pixel extrapolation method in the vertical direction. For details, see
borderInterpolate.columnBorderMode - Pixel extrapolation method in the horizontal direction.
\sa Sobel
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createSobelFilter(int srcType, int dstType, int dx, int dy)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createScharrFilter(int srcType, int dstType, int dx, int dy, double scale, int rowBorderMode, int columnBorderMode)
srcType - Source image type.dstType - Destination array type.dx - Order of the derivative x.dy - Order of the derivative y.scale - Optional scale factor for the computed derivative values. By default, no scaling is
applied. See getDerivKernels for details.rowBorderMode - Pixel extrapolation method in the vertical direction. For details, see
borderInterpolate.columnBorderMode - Pixel extrapolation method in the horizontal direction.
\sa Scharr
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createScharrFilter(int srcType, int dstType, int dx, int dy)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createGaussianFilter(int srcType, int dstType, @ByVal opencv_core.Size ksize, double sigma1, double sigma2, int rowBorderMode, int columnBorderMode)
srcType - Source image type.dstType - Destination array type.ksize - Aperture size. See getGaussianKernel for details.sigma1 - Gaussian sigma in the horizontal direction. See getGaussianKernel for details.sigma2 - Gaussian sigma in the vertical direction. If 0, then
\f$\texttt{sigma2}\leftarrow\texttt{sigma1}\f$ .rowBorderMode - Pixel extrapolation method in the vertical direction. For details, see
borderInterpolate.columnBorderMode - Pixel extrapolation method in the horizontal direction.
\sa GaussianBlur
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createGaussianFilter(int srcType, int dstType, @ByVal opencv_core.Size ksize, double sigma1)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createMorphologyFilter(int op, int srcType, @ByVal opencv_core.Mat kernel, @ByVal(nullValue="cv::Point(-1, -1)") opencv_core.Point anchor, int iterations)
op - Type of morphological operation. The following types are possible:
- **MORPH_ERODE** erode
- **MORPH_DILATE** dilate
- **MORPH_OPEN** opening
- **MORPH_CLOSE** closing
- **MORPH_GRADIENT** morphological gradient
- **MORPH_TOPHAT** "top hat"
- **MORPH_BLACKHAT** "black hat"srcType - Input/output image type. Only CV_8UC1, CV_8UC4, CV_32FC1 and CV_32FC4 are supported.kernel - 2D 8-bit structuring element for the morphological operation.anchor - Anchor position within the structuring element. Negative values mean that the anchor
is at the center.iterations - Number of times erosion and dilation to be applied.
\sa morphologyEx
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createMorphologyFilter(int op, int srcType, @ByVal opencv_core.Mat kernel)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createMorphologyFilter(int op, int srcType, @ByVal opencv_core.UMat kernel, @ByVal(nullValue="cv::Point(-1, -1)") opencv_core.Point anchor, int iterations)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createMorphologyFilter(int op, int srcType, @ByVal opencv_core.UMat kernel)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createMorphologyFilter(int op, int srcType, @ByVal opencv_core.GpuMat kernel, @ByVal(nullValue="cv::Point(-1, -1)") opencv_core.Point anchor, int iterations)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createMorphologyFilter(int op, int srcType, @ByVal opencv_core.GpuMat kernel)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createBoxMaxFilter(int srcType, @ByVal opencv_core.Size ksize, @ByVal(nullValue="cv::Point(-1, -1)") opencv_core.Point anchor, int borderMode, @ByVal(nullValue="cv::Scalar::all(0)") opencv_core.Scalar borderVal)
srcType - Input/output image type. Only CV_8UC1 and CV_8UC4 are supported.ksize - Kernel size.anchor - Anchor point. The default value (-1) means that the anchor is at the kernel center.borderMode - Pixel extrapolation method. For details, see borderInterpolate .borderVal - Default border value.@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createBoxMaxFilter(int srcType, @ByVal opencv_core.Size ksize)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createBoxMinFilter(int srcType, @ByVal opencv_core.Size ksize, @ByVal(nullValue="cv::Point(-1, -1)") opencv_core.Point anchor, int borderMode, @ByVal(nullValue="cv::Scalar::all(0)") opencv_core.Scalar borderVal)
srcType - Input/output image type. Only CV_8UC1 and CV_8UC4 are supported.ksize - Kernel size.anchor - Anchor point. The default value (-1) means that the anchor is at the kernel center.borderMode - Pixel extrapolation method. For details, see borderInterpolate .borderVal - Default border value.@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createBoxMinFilter(int srcType, @ByVal opencv_core.Size ksize)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createRowSumFilter(int srcType, int dstType, int ksize, int anchor, int borderMode, @ByVal(nullValue="cv::Scalar::all(0)") opencv_core.Scalar borderVal)
srcType - Input image type. Only CV_8UC1 type is supported for now.dstType - Output image type. Only CV_32FC1 type is supported for now.ksize - Kernel size.anchor - Anchor point. The default value (-1) means that the anchor is at the kernel center.borderMode - Pixel extrapolation method. For details, see borderInterpolate .borderVal - Default border value.@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createRowSumFilter(int srcType, int dstType, int ksize)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createColumnSumFilter(int srcType, int dstType, int ksize, int anchor, int borderMode, @ByVal(nullValue="cv::Scalar::all(0)") opencv_core.Scalar borderVal)
srcType - Input image type. Only CV_8UC1 type is supported for now.dstType - Output image type. Only CV_32FC1 type is supported for now.ksize - Kernel size.anchor - Anchor point. The default value (-1) means that the anchor is at the kernel center.borderMode - Pixel extrapolation method. For details, see borderInterpolate .borderVal - Default border value.@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createColumnSumFilter(int srcType, int dstType, int ksize)
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createMedianFilter(int srcType, int windowSize, int partition)
///////////////////////////// Median Filtering //////////////////////////////
/** \brief Performs median filtering for each point of the source image.
srcType - type of of source image. Only CV_8UC1 images are supported for now.windowSize - Size of the kernerl used for the filtering. Uses a (windowSize x windowSize) filter.partition - Specifies 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.
@Namespace(value="cv::cuda") @opencv_core.Ptr public static opencv_cudafilters.Filter createMedianFilter(int srcType, int windowSize)
Copyright © 2018. All rights reserved.