C# Class Emgu.CV.GPU.GpuInvoke

This class wraps the functional calls to the opencv_gpu module
Show file Open project: genecyber/PredatorCV Class Usage Examples

Public Methods

Method Description
Flip ( IntPtr src, IntPtr dst, CvEnum flipType ) : void

Flips the GpuMat<Byte> in one of different 3 ways (row and column indices are 0-based).

GetDeviceName ( int deviceId ) : String

Get the name of the device associated with the specific ID

GetGpuMemInfo ( ulong &free, ulong &total ) : void

Get the free and total amount of GPU memory on the current devide

HistEven ( IntPtr src, int histSize, int lowerLevel, int upperLevel ) : GpuMat

Calculates histogram with evenly distributed bins for signle channel source.

Private Methods

Method Description
Absdiff ( IntPtr a, IntPtr b, IntPtr c ) : void
Absdiff ( IntPtr a, MCvScalar scalar, IntPtr c ) : void
Add ( IntPtr a, IntPtr b, IntPtr c ) : void
Add ( IntPtr a, MCvScalar scalar, IntPtr c ) : void
BitwiseAnd ( IntPtr src1, IntPtr src2, IntPtr dst, IntPtr mask, IntPtr stream ) : void
BitwiseNot ( IntPtr src, IntPtr dst, IntPtr mask, IntPtr stream ) : void
BitwiseOr ( IntPtr src1, IntPtr src2, IntPtr dst, IntPtr mask, IntPtr stream ) : void
BitwiseXor ( IntPtr src1, IntPtr src2, IntPtr dst, IntPtr mask, IntPtr stream ) : void
CartToPolar ( IntPtr x, IntPtr y, IntPtr magnitude, IntPtr angle, [ angleInDegrees, IntPtr stream ) : void
Compare ( IntPtr a, IntPtr b, IntPtr c, CvEnum cmpop ) : void
ConvertTo ( IntPtr src, IntPtr dst, double scale, double shift, IntPtr stream ) : void
Copy ( IntPtr src, IntPtr dst, IntPtr mask ) : void
CountNonZero ( IntPtr src ) : int
CvtColor ( IntPtr src, IntPtr dst, CvEnum code, IntPtr stream ) : void
Dilate ( IntPtr src, IntPtr dst, IntPtr kernel, Point anchor, int iterations ) : void
Divide ( IntPtr a, IntPtr b, IntPtr c ) : void
Divide ( IntPtr a, MCvScalar scalar, IntPtr c ) : void
Erode ( IntPtr src, IntPtr dst, IntPtr kernel, Point anchor, int iterations ) : void
Exp ( IntPtr src, IntPtr dst ) : void
Filter2D ( IntPtr src, IntPtr dst, IntPtr kernel, Point anchor ) : void
GaussianBlur ( IntPtr src, IntPtr dst, Size ksize, double sigma1, double sigma2 ) : void
GetComputeCapability ( int deviceId, int &major, int &minor ) : void
GetCudaEnabledDeviceCount ( ) : int
GetDevice ( ) : int
GetNumberOfSMs ( int device ) : int
GpuInvoke ( ) : System
GpuMatCreate ( int rows, int cols, int type ) : IntPtr
GpuMatCreateDefault ( ) : IntPtr
GpuMatCreateFromArr ( IntPtr arr ) : IntPtr
GpuMatDownload ( IntPtr gpuMat, IntPtr arr ) : void
GpuMatGetChannels ( IntPtr gpuMat ) : int
GpuMatGetSize ( IntPtr gpuMat ) : Size
GpuMatRelease ( IntPtr &mat ) : void
GpuMatSetTo ( IntPtr mat, MCvScalar value, IntPtr mask, IntPtr stream ) : void
GpuMatUpload ( IntPtr gpuMat, IntPtr arr ) : void
HasAtomicsSupport ( int device ) : bool
HasNativeDoubleSupport ( int device ) : bool
LUT ( IntPtr src, IntPtr lut, IntPtr dst ) : void
Laplacian ( IntPtr src, IntPtr dst, int ksize, double scale ) : void
Log ( IntPtr src, IntPtr dst ) : void
Magnitude ( IntPtr x, IntPtr y, IntPtr magnitude, IntPtr stream ) : void
MagnitudeSqr ( IntPtr x, IntPtr y, IntPtr magnitude, IntPtr stream ) : void
MeanStdDev ( IntPtr mtx, MCvScalar &mean, MCvScalar &stddev ) : void
Merge ( IntPtr srcArr, IntPtr dst, IntPtr stream ) : void
MinMaxLoc ( IntPtr gpuMat, double &minVal, double &maxVal, Point &minLoc, Point &maxLoc, IntPtr mask ) : void
Multiply ( IntPtr a, IntPtr b, IntPtr c ) : void
Multiply ( IntPtr a, MCvScalar scalar, IntPtr c ) : void
Norm ( IntPtr src1, IntPtr src2, Emgu normType ) : double
Phase ( IntPtr x, IntPtr y, IntPtr angle, [ angleInDegrees, IntPtr stream ) : void
PolarToCart ( IntPtr magnitude, IntPtr angle, IntPtr x, IntPtr y, [ angleInDegrees, IntPtr stream ) : void
Remap ( IntPtr src, IntPtr dst, IntPtr xmap, IntPtr ymap ) : void
Reshape ( IntPtr src, int newCn, int newRows ) : IntPtr
Resize ( IntPtr src, IntPtr dst, CvEnum interpolation ) : void
Sobel ( IntPtr src, IntPtr dst, int dx, int dy, int ksize, double scale ) : void
Split ( IntPtr src, IntPtr dstArray, IntPtr stream ) : void
Subtract ( IntPtr a, IntPtr b, IntPtr c ) : void
Subtract ( IntPtr a, MCvScalar scalar, IntPtr c ) : void
WarpAffine ( IntPtr src, IntPtr dst, IntPtr M, CvEnum flags ) : void
WarpPerspective ( IntPtr src, IntPtr dst, IntPtr M, CvEnum flags ) : void
getGpuMemInfo ( UIntPtr &free, UIntPtr &total ) : void
gpuGetDeviceName ( int device, [ buffer, int maxSizeInBytes ) : void
gpuMatFlip ( IntPtr src, IntPtr dst, int flipMode ) : void
gpuMatHistEven ( IntPtr src, int histSize, int lowerLevel, int upperLevel ) : IntPtr

Method Details

Flip() public static method

Flips the GpuMat<Byte> in one of different 3 ways (row and column indices are 0-based).
public static Flip ( IntPtr src, IntPtr dst, CvEnum flipType ) : void
src System.IntPtr Source array.
dst System.IntPtr Destination array.
flipType CvEnum Specifies how to flip the array.
return void

GetDeviceName() public static method

Get the name of the device associated with the specific ID
public static GetDeviceName ( int deviceId ) : String
deviceId int The id of the cuda device
return String

GetGpuMemInfo() public static method

Get the free and total amount of GPU memory on the current devide
public static GetGpuMemInfo ( ulong &free, ulong &total ) : void
free ulong The free amount of GPU memory
total ulong The total amount of GPU memory
return void

HistEven() public static method

Calculates histogram with evenly distributed bins for signle channel source.
public static HistEven ( IntPtr src, int histSize, int lowerLevel, int upperLevel ) : GpuMat
src System.IntPtr The source GpuMat. Supports CV_8UC1, CV_16UC1 and CV_16SC1 types.
histSize int The size of histogram (number of levels)
lowerLevel int The lower level
upperLevel int The upper level
return GpuMat