C# 클래스 OpenCvSharp.Gpu.Cv2Gpu

Functions of OpenCV GPU module
파일 보기 프로젝트 열기: shimat/opencvsharp 1 사용 예제들

공개 메소드들

메소드 설명
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