C# Class OpenCvSharp.Gpu.Cv2Gpu

Functions of OpenCV GPU module
Exibir arquivo Open project: shimat/opencvsharp Class Usage Examples

Public Methods

Method Description
CreateContinuous ( Size size, MatType type ) : GpuMat

Creates continuous GPU matrix

CreateContinuous ( int rows, int cols, MatType type ) : GpuMat

Creates continuous GPU matrix

CreateContinuous ( Size size, MatType type, GpuMat m ) : void

Creates continuous GPU matrix

CreateContinuous ( int rows, int cols, MatType type, GpuMat m ) : void

Creates continuous GPU matrix

EnsureSizeIsEnough ( Size size, MatType type, GpuMat m ) : void

Ensures that size of the given matrix is not less than (rows, cols) size and matrix type is match specified one too

EnsureSizeIsEnough ( int rows, int cols, MatType type, GpuMat m ) : void

Ensures that size of the given matrix is not less than (rows, cols) size and matrix type is match specified one too

GetCudaEnabledDeviceCount ( ) : int

Returns the number of installed CUDA-enabled devices. Use this function before any other GPU functions calls. If OpenCV is compiled without GPU support, this function returns 0.

GetDevice ( ) : int

Returns the current device index set by SetDevice() or initialized by default.

PrintCudaDeviceInfo ( int device ) : void

PrintShortCudaDeviceInfo ( int device ) : void

RegisterPageLocked ( Mat m ) : void

Page-locks the matrix m memory and maps it for the device(s)

ResetDevice ( ) : void

Explicitly destroys and cleans up all resources associated with the current device in the current process. Any subsequent API call to this device will reinitialize the device.

SetDevice ( int device ) : int

Sets a device and initializes it for the current thread.

ThrowIfGpuNotAvailable ( ) : void

UnregisterPageLocked ( Mat m ) : void

Unmaps the memory of matrix m, and makes it pageable again.

Method Details

CreateContinuous() public static method

Creates continuous GPU matrix
public static CreateContinuous ( Size size, MatType type ) : GpuMat
size Size Number of rows and columns in a 2D array.
type MatType Array type.
return GpuMat

CreateContinuous() public static method

Creates continuous GPU matrix
public static CreateContinuous ( int rows, int cols, MatType type ) : GpuMat
rows int Number of rows in a 2D array.
cols int Number of columns in a 2D array.
type MatType Array type.
return GpuMat

CreateContinuous() public static method

Creates continuous GPU matrix
public static CreateContinuous ( Size size, MatType type, GpuMat m ) : void
size Size Number of rows and columns in a 2D array.
type MatType Array type.
m GpuMat
return void

CreateContinuous() public static method

Creates continuous GPU matrix
public static CreateContinuous ( int rows, int cols, MatType type, GpuMat m ) : void
rows int Number of rows in a 2D array.
cols int Number of columns in a 2D array.
type MatType Array type.
m GpuMat
return void

EnsureSizeIsEnough() public static method

Ensures that size of the given matrix is not less than (rows, cols) size and matrix type is match specified one too
public static EnsureSizeIsEnough ( Size size, MatType type, GpuMat m ) : void
size Size Number of rows and columns in a 2D array.
type MatType Array type.
m GpuMat
return void

EnsureSizeIsEnough() public static method

Ensures that size of the given matrix is not less than (rows, cols) size and matrix type is match specified one too
public static EnsureSizeIsEnough ( int rows, int cols, MatType type, GpuMat m ) : void
rows int Number of rows in a 2D array.
cols int Number of columns in a 2D array.
type MatType Array type.
m GpuMat
return void

GetCudaEnabledDeviceCount() public static method

Returns the number of installed CUDA-enabled devices. Use this function before any other GPU functions calls. If OpenCV is compiled without GPU support, this function returns 0.
public static GetCudaEnabledDeviceCount ( ) : int
return int

GetDevice() public static method

Returns the current device index set by SetDevice() or initialized by default.
public static GetDevice ( ) : int
return int

PrintCudaDeviceInfo() public static method

public static PrintCudaDeviceInfo ( int device ) : void
device int
return void

PrintShortCudaDeviceInfo() public static method

public static PrintShortCudaDeviceInfo ( int device ) : void
device int
return void

RegisterPageLocked() public static method

Page-locks the matrix m memory and maps it for the device(s)
public static RegisterPageLocked ( Mat m ) : void
m Mat
return void

ResetDevice() public static method

Explicitly destroys and cleans up all resources associated with the current device in the current process. Any subsequent API call to this device will reinitialize the device.
public static ResetDevice ( ) : void
return void

SetDevice() public static method

Sets a device and initializes it for the current thread.
public static SetDevice ( int device ) : int
device int System index of a GPU device starting with 0.
return int

ThrowIfGpuNotAvailable() public static method

public static ThrowIfGpuNotAvailable ( ) : void
return void

UnregisterPageLocked() public static method

Unmaps the memory of matrix m, and makes it pageable again.
public static UnregisterPageLocked ( Mat m ) : void
m Mat
return void