C# Class OpenCvSharp.Gpu.Cv2Gpu

Functions of OpenCV GPU module
Afficher le fichier Open project: shimat/opencvsharp Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat GpuMat

CreateContinuous() public static méthode

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.
Résultat GpuMat

CreateContinuous() public static méthode

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
Résultat void

CreateContinuous() public static méthode

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
Résultat void

EnsureSizeIsEnough() public static méthode

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
Résultat void

EnsureSizeIsEnough() public static méthode

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
Résultat void

GetCudaEnabledDeviceCount() public static méthode

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
Résultat int

GetDevice() public static méthode

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

PrintCudaDeviceInfo() public static méthode

public static PrintCudaDeviceInfo ( int device ) : void
device int
Résultat void

PrintShortCudaDeviceInfo() public static méthode

public static PrintShortCudaDeviceInfo ( int device ) : void
device int
Résultat void

RegisterPageLocked() public static méthode

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

ResetDevice() public static méthode

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
Résultat void

SetDevice() public static méthode

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.
Résultat int

ThrowIfGpuNotAvailable() public static méthode

public static ThrowIfGpuNotAvailable ( ) : void
Résultat void

UnregisterPageLocked() public static méthode

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