The GpuInvoke type exposes the following methods.
Methods
![]() ![]() | ![]() ![]() | ![]() ![]() | ![]() ![]() |
Member | Description | |
---|---|---|
![]() ![]() | Absdiff(IntPtr, MCvScalar, IntPtr) |
Computes element-wise absolute difference of array and scalar (c = abs(a - s)).
Supports only CV_32FC1 type.
|
![]() ![]() | Absdiff(IntPtr, IntPtr, IntPtr) |
Computes element-wise absolute difference of two arrays (c = abs(a - b)).
Supports CV_8UC1, CV_8UC4, CV_32SC1, CV_32FC1 types.
|
![]() ![]() | Add(IntPtr, MCvScalar, IntPtr) |
Adds scalar to a matrix (c = a + scalar)
Supports CV_32FC1 and CV_32FC2 type
|
![]() ![]() | Add(IntPtr, IntPtr, IntPtr) |
Adds one matrix to another (c = a + b).
Supports CV_8UC1, CV_8UC4, CV_32SC1, CV_32FC1 types.
|
![]() ![]() | BitwiseAnd(IntPtr, IntPtr, IntPtr, IntPtr, IntPtr) |
Calculates per-element bit-wise logical and of two arrays:
dst(I)=src1(I) & src2(I) if mask(I)!=0
In the case of floating-point arrays their bit representations are used for the operation. All the arrays must have the same type, except the mask, and the same size
|
![]() ![]() | BitwiseNot(IntPtr, IntPtr, IntPtr, IntPtr) |
Calculates per-element bit-wise logical not
dst(I)=~src(I) if mask(I)!=0
In the case of floating-point arrays their bit representations are used for the operation. All the arrays must have the same type, except the mask, and the same size
|
![]() ![]() | BitwiseOr(IntPtr, IntPtr, IntPtr, IntPtr, IntPtr) |
Calculates per-element bit-wise logical or of two arrays:
dst(I)=src1(I) | src2(I) if mask(I)!=0
In the case of floating-point arrays their bit representations are used for the operation. All the arrays must have the same type, except the mask, and the same size
|
![]() ![]() | BitwiseXor(IntPtr, IntPtr, IntPtr, IntPtr, IntPtr) |
Calculates per-element bit-wise logical conjunction of two arrays:
dst(I)=src1(I)^src2(I) if mask(I)!=0
In the case of floating-point arrays their bit representations are used for the operation. All the arrays must have the same type, except the mask, and the same size
|
![]() ![]() | CartToPolar(IntPtr, IntPtr, IntPtr, IntPtr, Boolean, IntPtr) |
Converts Cartesian coordinates to polar
|
![]() ![]() | Compare(IntPtr, IntPtr, IntPtr, CMP_TYPE) |
Compares elements of two arrays (c = a <cmpop> b).
Supports CV_8UC4, CV_32FC1 types
|
![]() ![]() | ConvertTo(IntPtr, IntPtr, Double, Double, IntPtr) |
This function has several different purposes and thus has several synonyms. It copies one array 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 arrays 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 array 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(IntPtr, IntPtr, IntPtr) |
Copy the source GpuMat to destination GpuMat, using an optional mask.
|
![]() ![]() | CountNonZero(IntPtr) |
Counts non-zero array elements
|
![]() ![]() | CvtColor(IntPtr, IntPtr, COLOR_CONVERSION, IntPtr) |
Converts image from one color space to another
|
![]() ![]() | Dilate(IntPtr, IntPtr, IntPtr, Point, Int32) |
Dilate the image (applies the local maximum operator).
Supports CV_8UC1, CV_8UC4 type.
|
![]() ![]() | Divide(IntPtr, MCvScalar, IntPtr) |
computes element-wise quotient of a GpuMat and scalar (c = a / scalar).
Supports CV_32FC1 and CV_32FC2 type.
|
![]() ![]() | Divide(IntPtr, IntPtr, IntPtr) |
Computes element-wise quotient of the two GpuMat (c = a / b).
Supports CV_8UC1, CV_8UC4, CV_32SC1, CV_32FC1 types.
|
![]() ![]() | Erode(IntPtr, IntPtr, IntPtr, Point, Int32) |
Erodes the image (applies the local minimum operator).
Supports CV_8UC1, CV_8UC4 type.
|
![]() ![]() | Exp(IntPtr, IntPtr) |
Computes exponent of each matrix element (b = exp(a))
|
![]() ![]() | Filter2D(IntPtr, IntPtr, IntPtr, Point) |
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(IntPtr, IntPtr, FLIP) |
Flips the GpuMat<Byte> in one of different 3 ways (row and column indices are 0-based).
|
![]() ![]() | GaussianBlur(IntPtr, IntPtr, Size, Double, Double) |
Smooths the GpuMat using Gaussian filter.
|
![]() ![]() | GetComputeCapability(Int32, Int32%, Int32%) |
Get the compute capability of the device
|
![]() ![]() | GetCudaEnabledDeviceCount()()()() |
Get the number of Cuda enabled devices
|
![]() ![]() | GetDevice()()()() |
Get the current Cuda device
|
![]() ![]() | GetDeviceName(Int32) |
Get the name of the device associated with the specific ID
|
![]() ![]() | GetGpuMemInfo(UInt64%, UInt64%) |
Get the free and total amount of GPU memory on the current devide
|
![]() ![]() | GetNumberOfSMs(Int32) |
Get the number of multiprocessors on device
|
![]() ![]() | GpuMatCreate(Int32, Int32, Int32) |
Create a GpuMat of the specified size
|
![]() ![]() | GpuMatCreateFromArr(IntPtr) |
Convert a CvArr to a GpuMat
|
![]() ![]() | GpuMatDownload(IntPtr, IntPtr) |
Downloads data from device to host memory. Blocking calls.
|
![]() ![]() | GpuMatGetChannels(IntPtr) |
Get the number of channels in the GpuMat
|
![]() ![]() | GpuMatGetSize(IntPtr) |
Get the GpuMat size:
width == number of columns, height == number of rows
|
![]() ![]() | GpuMatRelease(IntPtr%) |
Release the GpuMat
|
![]() ![]() | GpuMatSetTo(IntPtr, MCvScalar, IntPtr, IntPtr) |
Copies scalar value to every selected element of the destination GpuMat:
arr(I)=value if mask(I)!=0
|
![]() ![]() | GpuMatUpload(IntPtr, IntPtr) |
Pefroms blocking upload data to GpuMat.
|
![]() ![]() | HasAtomicsSupport(Int32) |
Check if the device has atomic support
|
![]() ![]() | HasNativeDoubleSupport(Int32) |
Check if the device has native double support
|
![]() ![]() | HistEven(IntPtr, Int32, Int32, Int32) |
Calculates histogram with evenly distributed bins for signle channel source.
|
![]() ![]() | Laplacian(IntPtr, IntPtr, Int32, Double) |
Applies Laplacian operator to the GpuMat
|
![]() ![]() | Log(IntPtr, IntPtr) |
Computes natural logarithm of absolute value of each matrix element: b = log(abs(a))
|
![]() ![]() | LUT(IntPtr, IntPtr, IntPtr) |
Transforms 8-bit unsigned integers using lookup table: dst(i)=lut(src(i)).
Destination array will have the depth type as lut and the same channels number as source.
Supports CV_8UC1, CV_8UC3 types.
|
![]() ![]() | Magnitude(IntPtr, IntPtr, IntPtr, IntPtr) |
Computes magnitude of each (x(i), y(i)) vector
|
![]() ![]() | MagnitudeSqr(IntPtr, IntPtr, IntPtr, IntPtr) |
Computes squared magnitude of each (x(i), y(i)) vector
|
![]() ![]() | MeanStdDev(IntPtr, MCvScalar%, MCvScalar%) |
Computes mean value and standard deviation
|
![]() ![]() | Merge(IntPtr, IntPtr, IntPtr) |
Makes multi-channel array out of several single-channel arrays
|
![]() ![]() | MinMaxLoc(IntPtr, Double%, Double%, Point%, Point%, IntPtr) |
Finds minimum and maximum element values and their positions. The extremums are searched over the whole array or, if mask is not IntPtr.Zero, in the specified array region.
|
![]() ![]() | Multiply(IntPtr, MCvScalar, IntPtr) |
Multiplies GpuMat to a scalar (c = a * scalar).
Supports CV_32FC1 and CV_32FC2 type.
|
![]() ![]() | Multiply(IntPtr, IntPtr, IntPtr) |
Computes element-wise product of the two GpuMat (c = a * b).
Supports CV_8UC1, CV_8UC4, CV_32SC1, CV_32FC1 types.
|
![]() ![]() | Norm(IntPtr, IntPtr, NORM_TYPE) |
Computes norm of the difference between two arrays
|
![]() ![]() | Phase(IntPtr, IntPtr, IntPtr, Boolean, IntPtr) |
Computes angle (angle(i)) of each (x(i), y(i)) vector
|
![]() ![]() | PolarToCart(IntPtr, IntPtr, IntPtr, IntPtr, Boolean, IntPtr) |
Converts polar coordinates to Cartesian
|
![]() ![]() | Remap(IntPtr, IntPtr, IntPtr, IntPtr) |
DST[x,y] = SRC[xmap[x,y],ymap[x,y]] with bilinear interpolation.
|
![]() ![]() | Reshape(IntPtr, Int32, Int32) |
Changes shape of GpuMat without copying data.
|
![]() ![]() | Resize(IntPtr, IntPtr, INTER) |
Resizes the image.
supports CV_8UC1, CV_8UC4 types.
|
![]() ![]() | Sobel(IntPtr, IntPtr, Int32, Int32, Int32, Double) |
Applies generalized Sobel operator to the image
|
![]() ![]() | Split(IntPtr, IntPtr, IntPtr) |
Copies each plane of a multi-channel array to a dedicated array
|
![]() ![]() | Subtract(IntPtr, MCvScalar, IntPtr) |
Subtracts one matrix from another (c = a - scalar).
Supports CV_32FC1 and CV_32FC2 type.
|
![]() ![]() | Subtract(IntPtr, IntPtr, IntPtr) |
Subtracts one matrix from another (c = a - b).
Supports CV_8UC1, CV_8UC4, CV_32SC1, CV_32FC1 types
|
![]() ![]() | WarpAffine(IntPtr, IntPtr, IntPtr, INTER) |
Warps the image using affine transformation
|
![]() ![]() | WarpPerspective(IntPtr, IntPtr, IntPtr, INTER) |
Warps the image using perspective transformation
|