mirror of
https://github.com/hybridgroup/gocv
synced 2025-08-25 08:41:04 +08:00
initial cuda implementation
This commit is contained in:
33
cuda/cuda.cpp
Normal file
33
cuda/cuda.cpp
Normal file
@@ -0,0 +1,33 @@
|
||||
#include "cuda.h"
|
||||
|
||||
GpuMat GpuMat_New() {
|
||||
return new cv::cuda::GpuMat();
|
||||
}
|
||||
|
||||
void GpuMat_Upload(GpuMat m,Mat data){
|
||||
m->upload(*data);
|
||||
}
|
||||
|
||||
void GpuMat_Download(GpuMat m,Mat dst){
|
||||
m->download(*dst);
|
||||
}
|
||||
|
||||
int GpuMat_Empty(GpuMat m){
|
||||
return m->empty();
|
||||
}
|
||||
|
||||
void GpuMat_Close(GpuMat m){
|
||||
delete m;
|
||||
}
|
||||
|
||||
void PrintCudaDeviceInfo(int device){
|
||||
cv::cuda::printCudaDeviceInfo(device);
|
||||
}
|
||||
|
||||
void PrintShortCudaDeviceInfo(int device){
|
||||
cv::cuda::printShortCudaDeviceInfo(device);
|
||||
}
|
||||
|
||||
int GetCudaEnabledDeviceCount(){
|
||||
return cv::cuda::getCudaEnabledDeviceCount();
|
||||
}
|
Reference in New Issue
Block a user