uploadConstant function for gpu

This commit is contained in:
Anatoly Baksheev
2010-08-24 09:15:45 +00:00
parent ec4ce050f9
commit eee3a35133

View File

@@ -67,6 +67,10 @@ namespace cv
extern "C" void convert_to(const DevMem2D& src, int sdepth, DevMem2D dst, int ddepth, int channels, double alpha, double beta, const cudaStream_t & stream = 0);
}
template<class T>
inline void uploadConstant(const char* name, const T& value) { cudaSafeCall( cudaMemcpyToSymbol(name, &value, sizeof(T)) ); }
}
}