Table of Contents

Class Cv2.XImgProc

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

cv::ximgproc functions

public static class Cv2.XImgProc
Inheritance
Cv2.XImgProc
Inherited Members

Methods

AMFilter(InputArray, InputArray, OutputArray, double, double, bool)

Simple one-line Adaptive Manifold Filter call.

AnisotropicDiffusion(InputArray, OutputArray, float, float, int)

Performs anisotropic diffusian on an image. The function applies Perona-Malik anisotropic diffusion to an image.

BilateralTextureFilter(InputArray, OutputArray, int, int, double, double)

Applies the bilateral texture filter to an image. It performs structure-preserving texture filter. For more details about this filter see @cite Cho2014.

BrightEdges(Mat, Mat, int, int, int)
ColorMatchTemplate(InputArray, InputArray, OutputArray)

Compares a color template against overlapped color image regions.

ComputeBadPixelPercent(InputArray, InputArray, Rect, int)

Function for computing the percent of "bad" pixels in the disparity map (pixels where error is higher than a specified threshold).

ComputeMSE(InputArray, InputArray, Rect)

Function for computing mean square error for disparity maps.

ContourSampling(InputArray, OutputArray, int)

Contour sampling.

CovarianceEstimation(InputArray, OutputArray, int, int)

Computes the estimated covariance matrix of an image using the sliding window forumlation.

CreateAMFilter(double, double, bool)

Factory method, create instance of AdaptiveManifoldFilter and produce some initialization routines.

CreateContourFitting(int, int)

Creates a ContourFitting algorithm object.

CreateDTFilter(InputArray, double, double, EdgeAwareFiltersList, int)

Factory method, create instance of DTFilter and produce initialization routines.

CreateDisparityWLSFilter(StereoMatcher)

Convenience factory method that creates an instance of DisparityWLSFilter and sets up all the relevant filter parameters automatically based on the matcher instance. Currently supports only StereoBM and StereoSGBM.

CreateDisparityWLSFilterGeneric(bool)

More generic factory method, creates an instance of DisparityWLSFilter and executes basic initialization routines. When using this method you will need to set up the ROI, matchers and other parameters by yourself.

CreateEdgeAwareInterpolator()

Factory method that creates an instance of the EdgeAwareInterpolator.

CreateEdgeBoxes(float, float, float, float, int, float, float, float, float, float, float, float)

Creates a EdgeBoxes

CreateEdgeDrawing()

Creates a smart pointer to an EdgeDrawing object and initializes it.

CreateFastGlobalSmootherFilter(InputArray, double, double, double, int)

Factory method, create instance of FastGlobalSmootherFilter and execute the initialization routines.

CreateFastLineDetector(int, float, double, double, int, bool)

Creates a smart pointer to a FastLineDetector object and initializes it

CreateGuidedFilter(InputArray, int, double)

Factory method, create instance of GuidedFilter and produce initialization routines.

CreateQuaternionImage(InputArray, OutputArray)

creates a quaternion image.

CreateRFFeatureGetter()

Creates a RFFeatureGetter

CreateRICInterpolator()

Factory method that creates an instance of the RICInterpolator.

CreateRightMatcher(StereoMatcher)

Convenience method to set up the matcher for computing the right-view disparity map that is required in case of filtering with confidence.

CreateScanSegment(int, int, int, int, bool)

Initializes a ScanSegment object.

CreateStructuredEdgeDetection(string, RFFeatureGetter?)

Creates a StructuredEdgeDetection

CreateSuperpixelLSC(InputArray, int, float)

Class implementing the LSC (Linear Spectral Clustering) superpixels.

The function initializes a SuperpixelLSC object for the input image. It sets the parameters of superpixel algorithm, which are: region_size and ruler.It preallocate some buffers for future computing iterations over the given image.An example of LSC is illustrated in the following picture. For enhanced results it is recommended for color images to preprocess image with little gaussian blur with a small 3 x 3 kernel and additional conversion into CieLAB color space.

CreateSuperpixelSEEDS(int, int, int, int, int, int, int, bool)

Initializes a SuperpixelSEEDS object.

The function initializes a SuperpixelSEEDS object for the input image. It stores the parameters of the image: image_width, image_height and image_channels.It also sets the parameters of the SEEDS superpixel algorithm, which are: num_superpixels, num_levels, use_prior, histogram_bins and double_step.

The number of levels in num_levels defines the amount of block levels that the algorithm use in the optimization.The initialization is a grid, in which the superpixels are equally distributed through the width and the height of the image.The larger blocks correspond to the superpixel size, and the levels with smaller blocks are formed by dividing the larger blocks into 2 x 2 blocks of pixels, recursively until the smaller block level. An example of initialization of 4 block levels is illustrated in the following figure.

DTFilter(InputArray, InputArray, OutputArray, double, double, EdgeAwareFiltersList, int)

Simple one-line Domain Transform filter call. If you have multiple images to filter with the same guided image then use DTFilter interface to avoid extra computations on initialization stage.

EdgePreservingFilter(InputArray, OutputArray, int, double)

Smoothes an image using the Edge-Preserving filter.

FastBilateralSolverFilter(InputArray, InputArray, InputArray, OutputArray, double, double, double, double, int, double)

Simple one-line Fast Bilateral Solver filter call. If you have multiple images to filter with the same guide then use FastBilateralSolverFilter interface to avoid extra computations.

FastGlobalSmootherFilter(InputArray, InputArray, OutputArray, double, double, double, int)

Simple one-line Fast Global Smoother filter call. If you have multiple images to filter with the same guide then use FastGlobalSmootherFilter interface to avoid extra computations.

FastHoughTransform(InputArray, OutputArray, MatType, AngleRangeOption, HoughOP, HoughDeskewOption)

Calculates 2D Fast Hough transform of an image.

FindEllipses(InputArray, OutputArray, float, float, float)

Finds ellipses fastly in an image using projective invariant pruning.

FourierDescriptor(InputArray, OutputArray, int, int)

Fourier descriptors for planar closed curves.

GetDisparityVis(InputArray, OutputArray, double)

Function for creating a disparity map visualization (clamped CV_8U image).

GradientDericheX(InputArray, OutputArray, double, double)

Applies X Deriche filter to an image.

GradientDericheY(InputArray, OutputArray, double, double)

Applies Y Deriche filter to an image.

GradientPaillouX(InputArray, OutputArray, double, double)

Applies Paillou filter to an image.

GradientPaillouY(InputArray, OutputArray, double, double)

Applies Paillou filter to an image.

GuidedFilter(InputArray, InputArray, OutputArray, int, double, int)

Simple one-line Guided Filter call.

If you have multiple images to filter with the same guided image then use GuidedFilter interface to avoid extra computations on initialization stage.

HoughPoint2Line(Point, InputArray, AngleRangeOption, HoughDeskewOption, RulesOption)

Calculates coordinates of line segment corresponded by point in Hough space.

JointBilateralFilter(InputArray, InputArray, OutputArray, int, double, double, BorderTypes)

Applies the joint bilateral filter to an image.

L0Smooth(InputArray, OutputArray, double, double)

Global image smoothing via L0 gradient minimization.

NiblackThreshold(InputArray, OutputArray, double, ThresholdTypes, int, double, LocalBinarizationMethods, double)

Applies Niblack thresholding to input image.

PeiLinNormalization(InputArray)

Calculates an affine transformation that normalize given image using Pei&Lin Normalization.

PeiLinNormalization(InputArray, OutputArray)

Calculates an affine transformation that normalize given image using Pei&Lin Normalization.

QConj(InputArray, OutputArray)

calculates conjugate of a quaternion image.

QDft(InputArray, OutputArray, DftFlags, bool)

Performs a forward or inverse Discrete quaternion Fourier transform of a 2D quaternion array.

QMultiply(InputArray, InputArray, OutputArray)

Calculates the per-element quaternion product of two arrays

QUnitary(InputArray, OutputArray)

divides each element by its modulus.

RadonTransform(InputArray, OutputArray, double, double, double, bool, bool)

Calculate Radon Transform of an image.

ReadGT(string, OutputArray)

Function for reading ground truth disparity maps. Supports basic Middlebury and MPI-Sintel formats. Note that the resulting disparity map is scaled by 16.

RollingGuidanceFilter(InputArray, OutputArray, int, double, double, int, BorderTypes)

Applies the rolling guidance filter to an image.

Thinning(InputArray, OutputArray, ThinningTypes)

Applies a binary blob thinning operation, to achieve a skeletization of the input image. The function transforms a binary blob image into a skeletized form using the technique of Zhang-Suen.

TransformFD(InputArray, InputArray, OutputArray, bool)

Transform a contour using Fourier descriptors.

WeightedMedianFilter(InputArray, InputArray, OutputArray, int, double, WMFWeightType, InputArray)

Applies weighted median filter to an image.