﻿OclInvoke Members
http://www.emgu.com

The OclInvoke type exposes the following members.

# Methods

NameDescription
Absdiff(IntPtr, MCvScalar, IntPtr)
Computes element-wise absolute difference of OclMat and scalar (c = abs(a - s)).
Absdiff(IntPtr, IntPtr, IntPtr)
Computes element-wise absolute difference of two OclMats (c = abs(a - b)).
Adds scalar to a matrix (c = a + scalar)
Adds one matrix to another (c = a + b).
Computes the weighted sum of two arrays (dst = alpha*src1 + beta*src2 + gamma)
BilateralFilter
Applies bilateral filter to the image. Supports 8UC1 8UC4 data types.
BitwiseAnd(IntPtr, MCvScalar, IntPtr, IntPtr)
Calculates per-element bit-wise logical and of a OclMat and a scalar: dst(I)=src1(I) & scalar In the case of a floating-point OclMat its bit representation is used for the operation.
BitwiseAnd(IntPtr, IntPtr, IntPtr, IntPtr)
Calculates per-element bit-wise logical and of two OclMats: dst(I)=src1(I) & src2(I) if mask(I)!=0 In the case of floating-point OclMats their bit representations are used for the operation. All the OclMats must have the same type, except the mask, and the same size
BitwiseNot
Calculates per-element bit-wise logical not dst(I)=~src(I) if mask(I)!=0 In the case of floating-point OclMats their bit representations are used for the operation. All the OclMats must have the same type, except the mask, and the same size
BitwiseOr(IntPtr, MCvScalar, IntPtr, IntPtr)
Calculates per-element bit-wise logical or a OclMat and a scalar: dst(I)=src1(I) | scalar In the case of a floating-point OclMat its bit representation is used for the operation.
BitwiseOr(IntPtr, IntPtr, IntPtr, IntPtr)
Calculates per-element bit-wise logical or of two OclMats: dst(I)=src1(I) | src2(I) if mask(I)!=0 In the case of floating-point OclMats their bit representations are used for the operation. All the OclMats must have the same type, except the mask, and the same size
BitwiseXor(IntPtr, MCvScalar, IntPtr, IntPtr)
Calculates per-element bit-wise logical conjunction of a OclMat and a scalar: dst(I)=src1(I)^scalar In the case of a floating-point OclMat its bit representation is used for the operation.
BitwiseXor(IntPtr, IntPtr, IntPtr, IntPtr)
Calculates per-element bit-wise logical conjunction of two OclMats: dst(I)=src1(I)^src2(I) if mask(I)!=0 In the case of floating-point OclMats their bit representations are used for the operation. All the OclMats must have the same type, except the mask, and the same size
CalcHist
Calculates histogram of one or more arrays.
Canny
Finds the edges on the input image and marks them in the output image edges using the Canny algorithm. The smallest of threshold1 and threshold2 is used for edge linking, the largest - to find initial segments of strong edges.
CartToPolar
Calculates the magnitude and angle of 2d vectors. Supports only CV_32F and CV_64F data types.
Compare
Compares elements of two OclMats (c = a <cmpop> b). Supports all types except CV_8SC1,CV_8SC2,CV8SC3,CV_8SC4 types
ConvertTo
This function has several different purposes and thus has several synonyms. It copies one OclMat to another with optional scaling, which is performed first, and/or optional type conversion, performed after: dst(I)=src(I)*scale + (shift,shift,...) All the channels of multi-channel OclMats are processed independently. The type conversion is done with rounding and saturation, that is if a result of scaling + conversion can not be represented exactly by a value of destination OclMat element type, it is set to the nearest representable value on the real axis. In case of scale=1, shift=0 no prescaling is done. This is a specially optimized case and it has the appropriate convertTo synonym.
Copy
Copy the source OclMat to destination OclMat, using an optional mask.
CopyMakeBorder
Copies a 2D array to a larger destination array and pads borders with the given constant.
CornerHarris
Runs the Harris edge detector on image. Similarly to cvCornerMinEigenVal and cvCornerEigenValsAndVecs, for each pixel it calculates 2x2 gradient covariation matrix M over block_size x block_size neighborhood. Then, it stores det(M) - k*trace(M)^2 to the destination image. Corners in the image can be found as local maxima of the destination image.
CountNonZero
Counts non-zero array elements
CvtColor
Converts image from one color space to another
Dilate
Dilate the image (applies the local maximum operator). Supports CV_8UC1, CV_8UC4 type.
Divide(Double, IntPtr, IntPtr)
Computes element-wise weighted reciprocal of an array (c = scale/ b).
Divide(IntPtr, IntPtr, IntPtr, Double)
Computes element-wise quotient of the two OclMat (c = scale * a / b).
EqualizeHist
The algorithm normalizes brightness and increases contrast of the image
Erode
Erodes the image (applies the local minimum operator). Supports CV_8UC1, CV_8UC4 type.
Exp
Computes exponent of each matrix element (b = exp(a))
Filter2D
Applies arbitrary linear filter to the image. In-place operation is supported. When the aperture is partially outside the image, the function interpolates outlier pixel values from the nearest pixels that is inside the image
Flip
Flips the OclMat in one of different 3 ways (row and column indices are 0-based).
GaussianBlur
Smooths the OclMat using Gaussian filter.
Gemm
Performs generalized matrix multiplication: dst = alpha*op(src1)*op(src2) + beta*op(src3), where op(X) is X or XT
GetDevice
HoughCircles(OclImage<(Of <<'(Gray, Byte>)>>), Single, Single, Int32, Int32, Int32, Int32, Int32)
Finds circles in a grayscale image using the Hough transform.
HoughCircles(IntPtr, IntPtr, HOUGH_TYPE, Single, Single, Int32, Int32, Int32, Int32, Int32)
Finds circles in a grayscale image using the Hough transform.
Integral
Computes the integral image and integral for the squared image
Laplacian
Applies Laplacian operator to the OclMat
Log
Computes natural logarithm of absolute value of each matrix element: b = log(abs(a))
LUT
Transforms 8-bit unsigned integers using lookup table: dst(i)=lut(src(i)). Destination OclMat will have the depth type as lut and the same channels number as source. Supports CV_8UC1, CV_8UC3 types.
MatchTemplate
This function is similiar to cvCalcBackProjectPatch. It slids through image, compares overlapped patches of size wxh with templ using the specified method and stores the comparison results to result
MeanShiftFiltering
Performs mean-shift filtering for each point of the source image. It maps each point of the source image into another point, and as the result we have new color and new position of each point.
MeanShiftProc
Performs mean-shift procedure and stores information about processed points (i.e. their colors and positions) into two images.
MeanShiftSegmentation
Performs mean-shift segmentation of the source image and eleminates small segments.
MeanStdDev
Computes mean value and standard deviation
Merge
Makes multi-channel OclMat out of several single-channel OclMats
MinMaxLoc
Finds minimum and maximum element values and their positions. The extremums are searched over the whole OclMat or, if mask is not IntPtr.Zero, in the specified OclMat region.
MorphologyEx(IntPtr, IntPtr, CV_MORPH_OP, IntPtr, Point, Int32)
Applies an advanced morphological operation to the image Supports CV_8UC1, CV_8UC4 type.
MorphologyEx(IntPtr, IntPtr, CV_MORPH_OP, IntPtr, Point, Int32, BORDER_TYPE, MCvScalar)
Applies an advanced morphological operation to the image Supports CV_8UC1, CV_8UC4 type.
Multiply(IntPtr, Double, IntPtr)
Multiplies OclMat to a scalar (c = a * scalar).
Multiply(IntPtr, IntPtr, IntPtr, Double)
Computes element-wise product of the two OclMat: c = scale * a * b.
Norm
Computes norm of the difference between two OclMats
OclMatCreate
Create a OclMat of the specified size
OclMatCreateFromArr
Convert a CvArr to an OclMat
OclMatGetChannels
Get the number of channels in the OclMat
OclMatGetSize
Get the OclMat size: width == number of columns, height == number of rows
OclMatGetType
Get the OclMat type.
OclMatGetWholeSize
Get the OclMat wholeSize: width == wholecols, height == wholerows
OclMatIsContinuous
Returns true iff the OclMat data is continuous (i.e. when there are no gaps between successive rows).
OclMatIsEmpty
Check if the OclMat is empty
OclMatRelease
Release the OclMat
OclMatReshape
Reshape the src OclMat
OclMatSetTo
Copies scalar value to every selected element of the destination OclMat: arr(I)=value if mask(I)!=0
Pefroms blocking upload data to OclMat.
PolarToCart
The function polarToCart computes the cartesian coordinates of each 2D vector represented by the corresponding elements of magnitude and angle. Supports only CV_32F and CV_64F data types.
Pow
The function pow raises every element of the input array to power. Supports only CV_32FC1 and CV_64FC1 data type.
PyrDown
Performs downsampling step of Gaussian pyramid decomposition.
PyrUp
Performs up-sampling step of Gaussian pyramid decomposition.
Resize
Resizes the image.
SetDevice
Sobel
Applies generalized Sobel operator to the image
Split
Copies each plane of a multi-channel OclMat to a dedicated OclMat
Subtract(IntPtr, MCvScalar, IntPtr, IntPtr)
Computes element-wise weighted product of the two arrays (c = scale * a * b)
Subtract(IntPtr, IntPtr, IntPtr, IntPtr)
Subtracts one matrix from another (c = a - b).