Commit eee3a351 authored by Anatoly Baksheev's avatar Anatoly Baksheev

uploadConstant function for gpu

parent ec4ce050
......@@ -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)) ); }
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment