C# Класс OpenCvSharp.Gpu.Cv2Gpu

Functions of OpenCV GPU module
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

CreateContinuous() публичный статический Метод

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.
Результат GpuMat

CreateContinuous() публичный статический Метод

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.
Результат GpuMat

CreateContinuous() публичный статический Метод

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
Результат void

CreateContinuous() публичный статический Метод

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
Результат void

EnsureSizeIsEnough() публичный статический Метод

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
Результат void

EnsureSizeIsEnough() публичный статический Метод

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
Результат void

GetCudaEnabledDeviceCount() публичный статический Метод

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
Результат int

GetDevice() публичный статический Метод

Returns the current device index set by SetDevice() or initialized by default.
public static GetDevice ( ) : int
Результат int

PrintCudaDeviceInfo() публичный статический Метод

public static PrintCudaDeviceInfo ( int device ) : void
device int
Результат void

PrintShortCudaDeviceInfo() публичный статический Метод

public static PrintShortCudaDeviceInfo ( int device ) : void
device int
Результат void

RegisterPageLocked() публичный статический Метод

Page-locks the matrix m memory and maps it for the device(s)
public static RegisterPageLocked ( Mat m ) : void
m Mat
Результат void

ResetDevice() публичный статический Метод

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
Результат void

SetDevice() публичный статический Метод

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.
Результат int

ThrowIfGpuNotAvailable() публичный статический Метод

public static ThrowIfGpuNotAvailable ( ) : void
Результат void

UnregisterPageLocked() публичный статический Метод

Unmaps the memory of matrix m, and makes it pageable again.
public static UnregisterPageLocked ( Mat m ) : void
m Mat
Результат void